/* ============================================
   JQ Toldos — style.css
   Stack: HTML/CSS/JS vanilla (B22G standard)
   ============================================ */

:root {
  --c-primary: #0E3559;        /* azul oscuro - cielo/profesional */
  --c-primary-light: #1d4d7a;
  --c-accent: #F39912;         /* naranja sol - acento */
  --c-accent-dark: #d98300;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f8fb;
  --c-text: #1a2538;
  --c-text-soft: #5a6473;
  --c-border: #e4e8ee;
  --c-success: #25D366;        /* WhatsApp green */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(14,53,89,.06);
  --shadow-md: 0 8px 24px rgba(14,53,89,.10);
  --shadow-lg: 0 20px 50px rgba(14,53,89,.18);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;

  --container: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--c-accent);
  margin: 0 0 .8em;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .section-sub { font-size: 1.05rem; color: var(--c-text-soft); }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(243,153,18,.35);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(243,153,18,.45);
}

.btn-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.3); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ====== HEADER (modern glass + scroll-aware) ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(228,232,238,0);
  z-index: 100;
  transition: height .3s cubic-bezier(.4,0,.2,1), background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 24px rgba(14,53,89,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-text);
  text-decoration: none;
  position: relative;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.logo::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  width: 64px; height: 64px;
  background: radial-gradient(circle, rgba(243,153,18,.18) 0%, transparent 70%);
  transform: translateY(-50%) scale(0);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: -1;
}
.logo:hover { color: var(--c-text); transform: translateY(-1px); }
.logo:hover::before { transform: translateY(-50%) scale(1); }
.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform .6s cubic-bezier(.4,0,.2,1), filter .3s;
  filter: drop-shadow(0 2px 6px rgba(14,53,89,.12));
}
.logo .logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(14,53,89,.18));
  transition: width .3s ease, height .3s ease, filter .3s;
  overflow: visible;
}
.site-header.scrolled .logo img,
.site-header.scrolled .logo .logo-mark { width: 42px; height: 42px; }
.logo .logo-ring {
  transform-origin: 32px 30px;
  transform-box: fill-box;
  animation: logoOrbit 14s linear infinite;
}
@keyframes logoOrbit {
  0%   { transform: rotate(-18deg) scaleX(1); }
  50%  { transform: rotate(-18deg) scaleX(.92); }
  100% { transform: rotate(-18deg) scaleX(1); }
}
.logo:hover .logo-mark { filter: drop-shadow(0 6px 16px rgba(243,153,18,.45)); }
.logo:hover .logo-ring { animation-duration: 4s; stroke: #ffb13b; }
@media (prefers-reduced-motion: reduce) {
  .logo .logo-ring { animation: none; }
}
.logo:hover img { transform: rotate(360deg); }
.logo-text { letter-spacing: -.5px; line-height: 1; }
.logo-text strong { color: var(--c-accent); }

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--c-text);
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
  transition: color .2s;
}
.nav-list a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-list a:not(.nav-cta):hover { color: var(--c-primary); }
.nav-list a:not(.nav-cta):hover::after,
.nav-list a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-list a.active { color: var(--c-primary); font-weight: 600; }

.nav-cta {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  margin-left: 10px;
  box-shadow: 0 4px 14px rgba(243,153,18,.35);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, filter .25s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(243,153,18,.45), 0 0 0 4px rgba(243,153,18,.15);
  filter: brightness(1.05);
}
.nav-cta:active { transform: translateY(0); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all .25s;
}
.header-phone:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-border);
  color: var(--c-primary);
  transform: translateY(-1px);
}
.header-phone svg { transition: transform .3s; }
.header-phone:hover svg { transform: rotate(-12deg) scale(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(14,53,89,.85) 0%, rgba(14,53,89,.65) 100%),
    url('../img/ui/hero-toldos.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { color: var(--c-accent); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
  max-width: 600px;
}
.hero-sub strong { color: #fff; font-weight: 700; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}

/* ====== USPs ====== */
.usps { padding: 80px 0; background: var(--c-bg-alt); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.usp {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp h3 { margin-bottom: .5em; }
.usp p { color: var(--c-text-soft); font-size: .95rem; margin: 0; }

/* ====== CATALOG ====== */
.catalog { padding: 100px 0; }
.catalog-alt { background: var(--c-bg-alt); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover figure img { transform: scale(1.06); }
.card-body { padding: 24px; flex: 1; }
.card h3 { margin-bottom: .5em; color: var(--c-primary); }
.card p { color: var(--c-text-soft); font-size: .95rem; margin: 0; }

.card-cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-cta .card-body { text-align: center; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255,255,255,.9); margin-bottom: 1.5em; }

/* ====== GALLERY ====== */
.gallery { padding: 100px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .3s;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(14,53,89,.45) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ====== ABOUT ====== */
.about { padding: 100px 0; background: var(--c-bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.about-list li {
  padding: 10px 0;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.about-list li:last-child { border-bottom: none; }
.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* ====== ZONES ====== */
.zones { padding: 100px 0; }
.zones-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.zones-list li {
  background: var(--c-bg-alt);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--c-accent);
}
.zones-list strong {
  display: block;
  font-size: 1.1rem;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.zones-list span { font-size: .9rem; color: var(--c-text-soft); }

/* ====== FAQ ====== */
.faq { padding: 100px 0; background: var(--c-bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  padding: 22px 28px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--c-accent);
  transition: transform .25s;
  font-weight: 400;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 28px 24px;
  margin: 0;
  color: var(--c-text-soft);
  line-height: 1.7;
}

/* ====== CONTACT ====== */
.contact { padding: 100px 0; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%); color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.form-row > * { min-width: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.contact-info h2 { color: #fff; }
.contact-info .eyebrow { color: var(--c-accent); }
.contact-info p { color: rgba(255,255,255,.85); }
.contact-info strong { color: #fff; }

.contact-data {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.contact-data li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: rgba(255,255,255,.95);
  font-weight: 500;
}
.contact-data li svg { color: var(--c-accent); flex-shrink: 0; }
.contact-data a { color: #fff; }
.contact-data a:hover { color: var(--c-accent); }

.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  transition: all .25s;
}
.contact-social a:hover {
  background: var(--c-accent);
  color: #fff;
  transform: translateY(-3px);
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--c-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--c-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(243,153,18,.18);
}
.form-group textarea { resize: vertical; font-family: inherit; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--c-text-soft);
  margin: 18px 0;
}
.form-check input { margin-top: 4px; }
.form-check a { color: var(--c-primary); text-decoration: underline; }

.form-note {
  text-align: center;
  font-size: .85rem;
  color: var(--c-text-soft);
  margin: 12px 0 0;
}

/* Form steps + tip + status (form cualificador) */
.form-step {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-bg-alt);
  letter-spacing: -.01em;
}
.form-step:first-of-type { margin-top: 0; }

.form-tip {
  background: linear-gradient(135deg, rgba(243,153,18,.08), rgba(243,153,18,.03));
  border-left: 3px solid var(--c-accent);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 4px 0 18px;
}
.form-tip p { margin: 0; font-size: .9rem; color: var(--c-text-soft); }
.form-tip a { color: var(--c-accent); font-weight: 700; text-decoration: none; }
.form-tip a:hover { text-decoration: underline; }

.form-status {
  text-align: center;
  font-size: .92rem;
  margin: 14px 0 0;
  min-height: 1.2em;
  font-weight: 600;
}
.form-status.success { color: #166534; }
.form-status.sending { color: var(--c-text-soft); }
.form-status.error { color: #b91c1c; }

/* Páginas legales (privacidad, aviso) */
.legal-page {
  padding: 120px 0 60px;
  background: var(--c-bg-alt);
}
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--c-primary);
  margin: 0 0 8px;
}
.legal-page .legal-updated {
  color: var(--c-text-soft);
  font-size: .9rem;
  margin: 0 0 32px;
}
.legal-page article {
  background: #fff;
  padding: 40px clamp(20px, 4vw, 48px);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(14,53,89,.06);
  border: 1px solid var(--c-border);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-primary);
  margin: 32px 0 12px;
}
.legal-page h2:first-child { margin-top: 0; }
.legal-page p, .legal-page li { line-height: 1.7; color: var(--c-text); font-size: .98rem; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--c-primary); }
.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: none;
}
.legal-page .legal-back:hover { color: var(--c-accent); }

/* Footer legal links */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: .85rem;
}
.footer-legal a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-legal a:hover { color: #fff; }
.footer-legal span { color: rgba(255,255,255,.3); }

/* ====== FEATURE PÉRGOLAS BIOCLIMÁTICAS (destacado en home) ====== */
.feature-pergolas {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, #133e6e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.feature-pergolas::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(243,153,18,.18) 0%, transparent 60%);
  pointer-events: none;
}
.feature-pergolas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.feature-pergolas-grid > * { min-width: 0; }
.feature-pergolas .eyebrow { color: var(--c-accent); }
.feature-pergolas h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 8px 0 16px; }
.feature-pergolas .section-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 24px; }
.feature-pergolas-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.feature-pergolas-list li {
  padding-left: 28px;
  position: relative;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
  font-size: .95rem;
}
.feature-pergolas-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--c-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.feature-pergolas-list strong { color: #fff; }
.feature-pergolas-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: rotate(-1deg);
  transition: transform .4s;
}
.feature-pergolas-img:hover { transform: rotate(0); }
.feature-pergolas .btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}
.feature-pergolas .btn-outline:hover {
  background: #fff;
  color: var(--c-primary);
  transform: translateY(-2px);
}
.feature-pergolas-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ====== WHY PERGOLA (refuerzo bioclimática) ====== */
.why-pergolas {
  padding: 80px 0;
  background: var(--c-bg-alt);
}
.why-pergolas .section-head { margin-bottom: 48px; }
.why-pergolas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.why-pergolas-grid > * { min-width: 0; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 18px rgba(14,53,89,.05);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(14,53,89,.12);
}
.why-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -.04em;
  margin-bottom: 12px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-primary);
  margin: 0 0 10px;
}
.why-card p { color: var(--c-text-soft); line-height: 1.55; margin: 0; font-size: .95rem; }
.why-pergolas-cta { text-align: center; margin-top: 40px; }

/* Rotulación compacta (menor prominencia que toldos/pérgolas) */
.catalog-compact { padding: 56px 0; }
.catalog-compact .section-head { margin-bottom: 28px; }
.catalog-compact .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.card-compact .card-body { padding: 16px 18px; }
.card-compact .card-body h3 { font-size: 1rem; margin: 0 0 6px; }
.card-compact .card-body p { font-size: .85rem; }

@media (max-width: 768px) {
  .why-pergolas-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 24px 22px; }
  .why-num { font-size: 1.8rem; }
}

/* ====== CONTACT CTA (sustituye form en home) ====== */
.contact-cta .contact-grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-cta .contact-info { text-align: center; }
.contact-cta .contact-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}
.btn-cta-big {
  font-size: 1.05rem;
  padding: 18px 32px;
  letter-spacing: -.01em;
}
.contact-cta .contact-data {
  justify-content: center;
  flex-wrap: wrap;
  display: flex;
  gap: 20px 32px;
  list-style: none;
  padding: 0;
}
.contact-cta .contact-data li { padding: 0; align-items: center; }

@media (max-width: 880px) {
  .feature-pergolas-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-pergolas-img { transform: none; }
  .feature-pergolas { padding: 60px 0; }
  .contact-cta .contact-data { flex-direction: column; gap: 12px; }
}

/* ====== HEADER LANG SWITCHER (compartido index/landing) ====== */
.header-contact .lang-switcher {
  display: inline-flex;
  background: rgba(14,53,89,.06);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--c-border);
  margin-right: 14px;
}
.header-contact .lang-switcher button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--c-text-soft);
  cursor: pointer;
  border-radius: 999px;
  letter-spacing: .03em;
  transition: all .2s;
  font-family: inherit;
}
.header-contact .lang-switcher button:hover { color: var(--c-primary); }
.header-contact .lang-switcher button[aria-pressed="true"] {
  background: var(--c-primary);
  color: #fff;
}
@media (max-width: 1024px) {
  .header-contact .lang-switcher button { padding: 4px 7px; font-size: .7rem; }
}

/* ====== LANDING PRESUPUESTO ====== */
.page-presupuesto { background: var(--c-bg-alt); }

.header-minimal .header-inner { padding: 14px 0; }
.header-presupuesto-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(14,53,89,.06);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--c-border);
}
.lang-switcher button {
  background: transparent;
  border: 0;
  padding: 5px 11px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-text-soft);
  cursor: pointer;
  border-radius: 999px;
  letter-spacing: .03em;
  transition: all .2s;
  font-family: inherit;
}
.lang-switcher button:hover { color: var(--c-primary); }
.lang-switcher button[aria-pressed="true"] {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(14,53,89,.25);
}

.presupuesto-hero {
  padding: calc(var(--header-h) + 40px) 0 32px;
  text-align: center;
}
.presupuesto-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 12px auto 16px;
  max-width: 780px;
  line-height: 1.2;
}
.presupuesto-hero .presupuesto-sub {
  color: var(--c-text-soft);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.55;
}
.presupuesto-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: .92rem;
  color: var(--c-text-soft);
}
.presupuesto-trust li::before {
  content: "✓";
  color: var(--c-accent);
  font-weight: 800;
  margin-right: 6px;
}
.presupuesto-trust li strong { color: var(--c-text); }

.presupuesto-form-section {
  padding: 24px 0 80px;
}
.presupuesto-form-wrap {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.presupuesto-form-wrap > * { min-width: 0; }
.presupuesto-form-wrap .contact-form { background: #fff; }

.presupuesto-aside {
  position: sticky;
  top: 96px;
}
.aside-card {
  background: #fff;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 6px 24px rgba(14,53,89,.06);
}
.aside-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-primary);
}
.aside-card p { color: var(--c-text-soft); font-size: .93rem; margin: 0 0 18px; line-height: 1.5; }
.aside-card hr { border: 0; border-top: 1px solid var(--c-border); margin: 22px 0; }
.aside-actions { display: flex; flex-direction: column; gap: 10px; }
.aside-actions .btn { font-size: .95rem; padding: 12px 18px; }
.aside-data {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-data li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--c-text);
  line-height: 1.4;
}
.aside-data svg { color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.aside-data a { color: var(--c-primary); }

.footer-minimal {
  background: #0a2440;
  color: rgba(255,255,255,.65);
  padding: 24px 0;
  margin-top: 0;
}
.footer-minimal .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  border-top: 0;
}
.footer-minimal a { color: rgba(255,255,255,.85); }
.footer-minimal a:hover { color: #fff; }
.footer-minimal p { margin: 0 0 4px; font-size: .85rem; }
.footer-minimal .footer-legal { display: flex; gap: 8px 12px; flex-wrap: wrap; margin: 0; }

@media (max-width: 880px) {
  .presupuesto-form-wrap { grid-template-columns: 1fr; }
  .presupuesto-aside { position: static; order: -1; }
  .aside-card { padding: 20px; }
  .footer-minimal .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .lang-switcher button { padding: 4px 8px; font-size: .72rem; }
  .header-presupuesto-actions { gap: 10px; }
  .presupuesto-hero { padding-top: calc(var(--header-h) + 24px); }
  .presupuesto-trust { font-size: .85rem; gap: 8px 18px; }
}

/* Página gracias */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background: var(--c-bg-alt);
}
.thanks-page .thanks-card {
  background: #fff;
  padding: 56px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(14,53,89,.08);
  max-width: 560px;
  border: 1px solid var(--c-border);
}
.thanks-page .thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: rgba(37,211,102,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
}
.thanks-page h1 {
  font-family: var(--font-display);
  color: var(--c-primary);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
}
.thanks-page p { color: var(--c-text-soft); margin: 0 0 24px; line-height: 1.6; }
.thanks-page .btn { margin: 4px 6px; }

/* ====== FOOTER ====== */
.site-footer {
  background: #0a2440;
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { width: 64px; height: 64px; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.85); font-size: .95rem; }
.footer-brand strong { color: #fff; }

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; font-size: .9rem; }
.site-footer ul a { color: rgba(255,255,255,.75); }
.site-footer ul a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: var(--c-accent); }

/* ====== WHATSAPP FLOAT ====== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-success);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 90;
  transition: transform .25s;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.08);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,0); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav { position: relative; }
  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-200%);
    transition: transform .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-toggle[aria-expanded="true"] + .nav-list { transform: translateY(0); }
  .nav-cta { margin: 8px 0 0; text-align: center; }

  .header-contact { display: none; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img { order: -1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .hero { min-height: 80vh; padding-top: calc(var(--header-h) + 40px); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-points { gap: 12px; font-size: .9rem; }

  .usps, .catalog, .gallery, .about, .zones, .faq, .contact { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .wa-float { right: 18px; bottom: 18px; width: 52px; height: 52px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
