:root {
    --navy-900: #081d3a;
    --navy-800: #0b2545;
    --navy-700: #133a66;
    --navy-600: #1b4a7a;
    --navy-100: #e6ecf3;
    --navy-50:  #f1f5f9;
    --ink:      #0f1729;
    --ink-2:    #2c3a52;
    --muted:    #5a6679;
    --line:     #e4e8ef;
    --bg:       #ffffff;
    --bg-soft:  #f4f6fa;
    --bg-soft-2:#eef1f6;
    --accent:   #f4a261;     /* solar warm accent, used sparingly */
    --shadow-sm: 0 1px 2px rgba(8,29,58,.06), 0 1px 1px rgba(8,29,58,.04);
    --shadow-md: 0 10px 30px -12px rgba(8,29,58,.18), 0 4px 10px -6px rgba(8,29,58,.08);
    --shadow-lg: 0 24px 60px -20px rgba(8,29,58,.28);
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 20px;
    --container: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

  /* ============ BUTTONS ============ */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    white-space: nowrap;
  }
  .btn svg { width: 16px; height: 16px; }
  .btn-primary {
    background: var(--navy-800);
    color: #fff;
    box-shadow: var(--shadow-md);
  }
  .btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

  .btn[disabled] { opacity: .8; cursor: progress; pointer-events: none; }
  .btn .btn-spinner { display: none; }
  .btn.loading .btn-label { opacity: .25; }
  .btn.loading svg { opacity: 0; }
  .btn.loading .btn-spinner {
    display: inline-block;
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
  }
  .btn-primary { position: relative; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .btn-ghost {
    background: transparent;
    color: var(--navy-800);
    border: 1.5px solid var(--navy-100);
  }
  .btn-ghost:hover { border-color: var(--navy-800); background: #fff; }
  .btn-white {
    background: #fff;
    color: var(--navy-800);
  }
  .btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
  }
  .btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
  .btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(37,211,102,.6);
  }
  .btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

  /* ============ HEADER ============ */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
  }
  .header.scrolled { box-shadow: var(--shadow-sm); }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .logo-mark {
    width: 44px;
    height: 56px;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
  }
  .logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 !important;
    padding: 0 !important;
  }
  .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
  .logo-text strong { font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
  .logo-text span { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

  .nav { display: flex; align-items: center; gap: 32px; }
  .nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .15s;
    position: relative;
  }
  .nav a:hover { color: var(--navy-800); }
  .nav a.active { color: var(--navy-800); }
  .nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
  }

  .header-cta { display: flex; align-items: center; gap: 12px; }

  .menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    align-items: center;
    justify-content: center;
  }
  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: background .15s;
  }
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--ink);
    transition: transform .25s var(--ease);
  }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after  { top:  6px; }
  .menu-toggle.open span { background: transparent; }
  .menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span::after  { transform: translateY(-6px) rotate(-45deg); }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 8px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
  }
  .mobile-nav a:last-of-type { border-bottom: 0; }
  .mobile-nav .btn { margin-top: 12px; justify-content: center; }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    padding: 80px 0 100px;
    background:
      radial-gradient(1100px 500px at 90% -10%, rgba(27,74,122,.10), transparent 60%),
      radial-gradient(700px 400px at 0% 110%, rgba(11,37,69,.07), transparent 60%),
      #fff;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy-50);
    color: var(--navy-800);
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border: 1px solid var(--navy-100);
  }
  .eyebrow .dot {
    display: inline-block;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy-800);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero h1 {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 22px 0 22px;
    color: var(--ink);
    font-weight: 800;
    text-wrap: balance;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--navy-800);
    position: relative;
    white-space: nowrap;
  }
  .hero h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4%;
    height: 8px;
    background: linear-gradient(90deg, rgba(27,74,122,.18), rgba(27,74,122,.05));
    z-index: -1;
    border-radius: 4px;
  }
  .hero p.lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 520px;
    margin: 0 0 32px;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

  .hero-meta {
    margin-top: 40px;
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
  }
  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .meta-item strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.02em;
  }
  .meta-item span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
  }

  /* Hero image collage */
  .hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
  }
  .hv-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #ddd;
  }
  .hv-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s var(--ease);
  }
  .hv-card:hover img { transform: scale(1.04); }
  .hv-main {
    top: 0; left: 0; right: 18%; bottom: 24%;
  }
  .hv-side {
    right: 0; top: 18%; width: 46%; bottom: 38%;
    border: 6px solid #fff;
  }
  .hv-bottom {
    left: 14%; right: 0; bottom: 0; height: 42%;
    border: 6px solid #fff;
  }
  .hv-badge {
    position: absolute;
    bottom: 8%;
    left: -10px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
  }
  .hv-badge-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--navy-50);
    color: var(--navy-800);
    display: grid; place-items: center;
  }
  .hv-badge-icon svg { width: 20px; height: 20px; }
  .hv-badge-text { line-height: 1.2; }
  .hv-badge-text strong { display: block; font-size: 14px; }
  .hv-badge-text span { font-size: 12px; color: var(--muted); }

  /* ============ SECTIONS ============ */
  section { scroll-margin-top: 90px; }
  .section { padding: 100px 0; }
  .section-soft { background: var(--bg-soft); }
  .section-dark { background: var(--navy-900); color: #fff; }

  .section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
  }
  .section-head.left { text-align: left; margin-left: 0; }
  .section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-600);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section-head h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    font-weight: 800;
    text-wrap: balance;
  }
  .section-head p {
    font-size: 17px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
  }
  .section-dark .section-head p { color: rgba(255,255,255,.7); }
  .section-dark .section-eyebrow { color: #8eb6e0; }

  /* ============ SERVICES ============ */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, transparent 70%, rgba(11,37,69,.03));
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
  }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-100);
  }
  .service-card:hover::before { opacity: 1; }
  .service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--navy-50);
    color: var(--navy-800);
    display: grid; place-items: center;
    transition: background .3s var(--ease), color .3s var(--ease);
  }
  .service-card:hover .service-icon { background: var(--navy-800); color: #fff; }
  .service-icon svg { width: 26px; height: 26px; }
  .service-card h3 {
    font-size: 19px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.015em;
  }
  .service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    flex: 1;
  }
  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-800);
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
    transition: gap .2s var(--ease);
  }
  .service-card:hover .service-link { gap: 10px; }
  .service-link svg { width: 14px; height: 14px; }

  /* ============ FEATURE SECTIONS (Reformas / Solar) ============ */
  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
  }
  .feature.reverse { direction: rtl; }
  .feature.reverse > * { direction: ltr; }

  .feature-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .feature-visual img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .feature-visual .float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 280px;
  }
  .float-card .icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--navy-800);
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .float-card .icon svg { width: 22px; height: 22px; }
  .float-card .icon.solar { background: var(--accent); }
  .float-card strong { display: block; font-size: 14px; line-height: 1.3; }
  .float-card span { font-size: 12.5px; color: var(--muted); }

  .feature-content h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 18px 0 18px;
    font-weight: 800;
    text-wrap: balance;
  }
  .feature-content > p {
    font-size: 17px;
    color: var(--ink-2);
    margin: 0 0 28px;
    line-height: 1.6;
  }
  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 14px;
  }
  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-2);
  }
  .feature-list .check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy-800);
    color: #fff;
    display: grid; place-items: center;
    margin-top: 2px;
  }
  .feature-list .check svg { width: 12px; height: 12px; }
  .feature-list li strong { color: var(--ink); font-weight: 700; }

  /* ============ WHY CHOOSE ============ */
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .benefit {
    background: #fff;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background .2s;
  }
  .benefit:hover { background: var(--bg-soft); }
  .benefit-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-600);
    letter-spacing: 0.1em;
  }
  .benefit h4 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
  }
  .benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
  }
  .benefit-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--navy-50);
    color: var(--navy-800);
    display: grid; place-items: center;
    margin-bottom: 4px;
  }
  .benefit-icon svg { width: 22px; height: 22px; }

  /* ============ ZONE ============ */
  .zone-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
  }
  .zone-map {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius-lg);
    aspect-ratio: 1.15/1;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow-lg);
  }
  .zone-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 28% 62%, rgba(255,255,255,.07), transparent 55%),
      radial-gradient(circle at 80% 28%, rgba(255,255,255,.04), transparent 55%);
    pointer-events: none;
  }
  .galicia-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
  }
  /* Faint background grid */
  .galicia-svg .grid line { stroke: rgba(255,255,255,.05); stroke-width: .5; }
  .galicia-svg .land {
    fill: rgba(255,255,255,.08);
    stroke: rgba(255,255,255,.55);
    stroke-width: 1.2;
    stroke-linejoin: round;
  }
  .galicia-svg .border-dash {
    fill: none;
    stroke: rgba(255,255,255,.35);
    stroke-width: .9;
    stroke-dasharray: 3 3;
  }
  .galicia-svg .pin-ring {
    fill: none;
    stroke: rgba(255,255,255,.4);
  }
  .galicia-svg .pin-dot { fill: #fff; }
  .galicia-svg .pin-label {
    fill: rgba(255,255,255,.85);
    font-size: 8px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
  }
  .galicia-svg .pin-main .pin-dot { fill: var(--accent); }
  .galicia-svg .pin-main .pin-ring { stroke: var(--accent); }
  .galicia-svg .pin-main .pin-label {
    fill: #fff;
    font-size: 10px;
    font-weight: 800;
  }
  .galicia-svg .pulse {
    fill: var(--accent);
    opacity: .35;
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseMap 2.4s ease-out infinite;
  }
  @keyframes pulseMap {
    0%   { transform: scale(1);   opacity: .5; }
    100% { transform: scale(3.2); opacity: 0;  }
  }
  .map-legend {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
    font-weight: 600;
  }
  .map-legend .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(244,162,97,.25);
  }
  .map-corner {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    font-weight: 700;
  }
  .zone-content h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 18px 0 18px;
    font-weight: 800;
    text-wrap: balance;
  }
  .zone-content > p {
    font-size: 17px;
    color: var(--ink-2);
    margin: 0 0 30px;
  }
  .zone-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .zone-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
  }
  .zone-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--navy-800);
  }

  /* ============ CONTACT ============ */
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
  }
  .contact-info {
    color: #fff;
  }
  .contact-info h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 18px 0 18px;
    font-weight: 800;
  }
  .contact-info > p {
    font-size: 17px;
    color: rgba(255,255,255,.75);
    margin: 0 0 36px;
    line-height: 1.6;
  }
  .contact-items {
    display: grid;
    gap: 18px;
    margin-bottom: 36px;
  }
  .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: background .2s;
  }
  .contact-item:hover { background: rgba(255,255,255,.08); }
  .contact-item .ci-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .contact-item .ci-icon svg { width: 22px; height: 22px; }
  .contact-item span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .contact-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
  }

  .form-card {
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
  }
  .form-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
    font-weight: 800;
  }
  .form-card .form-sub {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 28px;
  }
  .form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
  .field { margin-bottom: 16px; }
  .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink-2);
  }
  .field input,
  .field textarea,
  .field select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    font: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .field textarea { min-height: 110px; resize: vertical; font-family: inherit; }
  .field input:focus,
  .field textarea:focus,
  .field select:focus {
    outline: none;
    border-color: var(--navy-800);
    box-shadow: 0 0 0 4px rgba(11,37,69,.08);
  }
  .field.invalid input,
  .field.invalid textarea,
  .field.invalid select {
    border-color: #c44b4b;
    background: #fff8f8;
  }
  .field-err {
    display: none;
    font-size: 12.5px;
    color: #c44b4b;
    margin-top: 6px;
    font-weight: 600;
  }
  .field.invalid .field-err { display: block; }

  .form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
  .form-actions .btn { flex: 1; justify-content: center; min-width: 180px; }
  .consent {
    font-size: 12.5px;
    color: var(--muted);
    margin: 14px 0 0;
    line-height: 1.5;
  }
  .consent a { color: var(--navy-800); text-decoration: underline; }

  .form-success {
    background: #ecf6ef;
    border: 1px solid #b8dec3;
    color: #1a5a2c;
    border-radius: var(--radius);
    padding: 18px 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 18px;
  }
  .form-success.show { display: flex; }
  .form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

  /* WhatsApp floating */
  .wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px -8px rgba(37,211,102,.55);
    transition: transform .2s var(--ease);
  }
  .wa-float:hover { transform: scale(1.07); }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.5;
    animation: pulseWa 2.2s ease-out infinite;
  }
  @keyframes pulseWa {
    0% { transform: scale(.85); opacity: .55; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* ============ SUCCESS MODAL ============ */
  .success-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 21, 43, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .success-overlay.show { opacity: 1; pointer-events: auto; }

  .success-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 48px 44px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(8,29,58,.4);
    transform: translateY(20px) scale(.96);
    opacity: 0;
    transition: transform .5s var(--ease) .05s, opacity .4s var(--ease) .05s;
    overflow: hidden;
  }
  .success-overlay.show .success-card {
    transform: none;
    opacity: 1;
  }

  .success-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: background .15s, color .15s;
  }
  .success-close:hover { background: var(--bg-soft); color: var(--ink); }
  .success-close svg { width: 18px; height: 18px; }

  /* Animated check */
  .check-anim {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    position: relative;
  }
  .check-anim svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }
  .check-anim .ring-bg {
    fill: none;
    stroke: var(--navy-50);
    stroke-width: 6;
  }
  .check-anim .ring {
    fill: none;
    stroke: var(--navy-800);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
  }
  .check-anim .tick {
    fill: none;
    stroke: var(--navy-800);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transform: rotate(90deg);
    transform-origin: center;
  }
  .success-overlay.show .check-anim .ring {
    animation: drawRing 0.7s var(--ease) forwards;
  }
  .success-overlay.show .check-anim .tick {
    animation: drawTick 0.45s var(--ease) 0.55s forwards;
  }
  @keyframes drawRing {
    to { stroke-dashoffset: 0; }
  }
  @keyframes drawTick {
    to { stroke-dashoffset: 0; }
  }

  .success-card h3 {
    font-size: 26px;
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
  }
  .success-card p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
  }
  .success-card .meta-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy-50);
    color: var(--navy-800);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 26px;
  }
  .success-card .meta-line svg { width: 14px; height: 14px; }
  .success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Confetti */
  .confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
  }
  .confetti span {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
  }
  .success-overlay.show .confetti span {
    animation: confettiFall 2.4s ease-out forwards;
  }
  @keyframes confettiFall {
    0%   { opacity: 0; transform: translateY(-30px) rotate(0deg); }
    10%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(520px) rotate(720deg); }
  }

  @media (max-width: 520px) {
    .success-card { padding: 36px 24px 28px; border-radius: 20px; }
    .success-card h3 { font-size: 22px; }
    .check-anim { width: 80px; height: 80px; margin-bottom: 18px; }
  }

  /* ============ SOLAR CALCULATOR ============ */
  .calc-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: stretch;
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .calc-info {
    padding: 48px 44px;
  }
  .calc-info > p {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 32px;
    line-height: 1.55;
  }
  .calc-control { margin-bottom: 26px; }
  .calc-control > label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .calc-control > label .hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
  }
  .range-wrap { position: relative; }
  .range-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .range-value small {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
  }
  input[type="range"].calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: var(--navy-50);
    outline: none;
    cursor: pointer;
  }
  input[type="range"].calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy-800);
    border: 4px solid #fff;
    box-shadow: 0 4px 10px -2px rgba(11,37,69,.4);
    cursor: grab;
    transition: transform .15s;
  }
  input[type="range"].calc-range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
  input[type="range"].calc-range::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--navy-800);
    border: 4px solid #fff;
    box-shadow: 0 4px 10px -2px rgba(11,37,69,.4);
    cursor: grab;
  }
  .range-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
  }

  .seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--bg-soft);
    padding: 5px;
    border-radius: 12px;
  }
  .seg button {
    padding: 11px 8px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: transparent;
    transition: background .15s, color .15s, box-shadow .15s;
    line-height: 1.2;
  }
  .seg button:hover:not(.active) { color: var(--navy-800); }
  .seg button.active {
    background: #fff;
    color: var(--navy-800);
    box-shadow: var(--shadow-sm);
  }

  .calc-result {
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .calc-result::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,162,97,.18), transparent 60%);
    top: -120px; right: -120px;
    pointer-events: none;
  }
  .result-header {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
  }
  .result-hero {
    margin-bottom: 32px;
    position: relative;
  }
  .result-amount {
    font-size: clamp(46px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent);
    transition: color .2s var(--ease);
  }
  .result-amount.flash { animation: flashNum .55s var(--ease); }
  @keyframes flashNum {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
  }
  .result-label {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
  }
  .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
  }
  .result-cell {
    background: rgba(255,255,255,.03);
    padding: 18px 20px;
  }
  .result-cell span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .result-cell strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .calc-result .btn-primary {
    background: #fff;
    color: var(--navy-800);
    align-self: flex-start;
    position: relative;
  }
  .calc-result .btn-primary:hover { background: var(--accent); color: var(--navy-900); }
  .calc-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin: 18px 0 0;
    line-height: 1.5;
    position: relative;
  }

  /* Result color tone variants (driven by tweaks) */
  .calc-result[data-tone="naranja"] .result-amount { color: var(--accent); }
  .calc-result[data-tone="naranja"]::before { background: radial-gradient(circle, rgba(244,162,97,.22), transparent 60%); }
  .calc-result[data-tone="verde"] .result-amount { color: #6ee7b7; }
  .calc-result[data-tone="verde"]::before { background: radial-gradient(circle, rgba(110,231,183,.20), transparent 60%); }
  .calc-result[data-tone="blanco"] .result-amount { color: #fff; }
  .calc-result[data-tone="blanco"]::before { background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%); }

  /* ============ TWEAKS PANEL ============ */
  .tweaks-panel {
    position: fixed;
    bottom: 24px;
    right: 100px;
    z-index: 95;
    width: 320px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(8,29,58,.45), 0 0 0 1px var(--line);
    padding: 22px 22px 18px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    font-size: 13px;
  }
  .tweaks-panel.show {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .tweaks-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .tweaks-panel header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .tweaks-panel header h4 span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .tweaks-panel .close-x {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
  }
  .tweaks-panel .close-x:hover { background: var(--bg-soft); color: var(--ink); }
  .tweaks-panel .close-x svg { width: 14px; height: 14px; }

  .tw-row { margin-bottom: 14px; }
  .tw-row > label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 6px;
  }
  .tw-row > label .val {
    color: var(--navy-800);
    font-weight: 800;
    font-size: 12.5px;
  }
  .tw-row input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: var(--navy-50);
  }
  .tw-row input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--navy-800);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(11,37,69,.3);
    cursor: pointer;
  }
  .tw-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .tw-toggle span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
  }
  .tw-switch {
    width: 38px; height: 22px;
    background: var(--line);
    border-radius: 999px;
    position: relative;
    transition: background .2s;
  }
  .tw-switch::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px; left: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .2s;
  }
  .tw-switch.on { background: var(--navy-800); }
  .tw-switch.on::before { transform: translateX(16px); }

  .tw-swatches { display: flex; gap: 8px; }
  .tw-sw {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
  }
  .tw-sw:hover { transform: scale(1.1); }
  .tw-sw.active { border-color: var(--navy-800); }

  .tweaks-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 96;
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    place-items: center;
    box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
    cursor: pointer;
  }
  .tweaks-fab.show { display: grid; }
  .tweaks-fab svg { width: 22px; height: 22px; }
  .tweaks-fab:hover { background: var(--navy-800); }

  /* When tweaks panel/fab is on, push WA float up so they don't overlap */
  body.tweaks-on .wa-float { bottom: 92px; }

  @media (max-width: 920px) {
    .calc-wrap { grid-template-columns: 1fr; border-radius: 22px; }
    .calc-info, .calc-result { padding: 36px 28px; }
    .tweaks-panel { right: 16px; left: 16px; bottom: 90px; width: auto; }
    .tweaks-fab { bottom: 16px; right: 16px; }
    body.tweaks-on .wa-float { bottom: 80px; right: 88px; }
  }

  /* ============ FOOTER ============ */
  .footer {
    background: #06152b;
    color: rgba(255,255,255,.7);
    padding: 60px 0 30px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .footer-top h5 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-weight: 700;
  }
  .footer-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }
  .footer-top ul a { font-size: 14.5px; }
  .footer-top ul a:hover { color: #fff; }
  .footer-about { font-size: 14.5px; line-height: 1.6; max-width: 320px; margin: 12px 0 0; }
  .footer-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* ============ REVEAL ANIMATIONS ============ */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 980px) {
    .hero { padding: 50px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { aspect-ratio: 1.1/1; max-width: 540px; }
    .nav { display: none; }
    .header-cta .btn-primary { display: none; }
    .menu-toggle { display: inline-flex; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature.reverse { direction: ltr; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .zone-wrap { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .section { padding: 70px 0; }
  }
  @media (max-width: 620px) {
    .container { padding: 0 18px; }
    .hero h1 { font-size: clamp(30px, 9vw, 42px); }
    .services-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero-meta { gap: 24px; }
    .meta-item strong { font-size: 18px; }
    .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
    .zone-list { grid-template-columns: 1fr; }
  }