/* ═══════════════════════════════════════════════════
   Eco Electricidad RFM — Premium Website
   Paleta: Verde bosque #2D6A2D + Dorado #E8950A
   Arquetipo: Light Editorial Clean
   ═══════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2d6a2d;
  --green-dark:   #1e4a1e;
  --green-mid:    #3d8a3d;
  --green-light:  #4aaa3a;
  --green-pale:   #d4ecd4;
  --green-frost:  #eaf3ea;
  --gold:         #e8950a;
  --gold-light:   #f5b030;
  --gold-pale:    #fef3e0;
  --bg:           #f5f8f4;
  --bg-2:         #edf4ec;
  --paper:        #ffffff;
  --ink:          #1a2a1a;
  --ink-soft:     #2d4a2d;
  --ink-mute:     #5a7a55;
  --ink-faint:    #8aaa85;
  --line:         rgba(45,106,45,0.14);
  --shadow-sm:    0 2px 8px rgba(45,106,45,0.08);
  --shadow-md:    0 8px 32px rgba(45,106,45,0.12);
  --shadow-lg:    0 20px 60px rgba(45,106,45,0.15);
  --radius:       12px;
  --radius-lg:    20px;
  --nav-h:        90px;
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
  --ease-in-out:  cubic-bezier(0.45,0,0.55,1);
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }
em { font-style: italic; color: var(--green); }
p { color: var(--ink-soft); }

/* ── CONTAINER ── */
.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  font-family: "Inter", sans-serif; transition: all 0.22s var(--ease-out);
  text-decoration: none; border: 2px solid transparent; white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--green); border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px); font-weight: 700;
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); border-color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-nav {
  background: var(--gold); color: #1a2a1a; border-color: var(--gold);
  padding: 0.65rem 1.3rem; font-size: 0.9rem; font-weight: 700;
}
.btn-nav:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.nav-wrap.is-scrolled .btn-nav { background: var(--green); color: #fff; border-color: var(--green); }
.nav-wrap.is-scrolled .btn-nav:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ── SECTION COMMONS ── */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.section-kicker::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-title { margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--ink-mute); max-width: 56ch; margin-inline: auto; }

/* ── SCROLL REVEALS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Safety: split-text elements must never hide */
.reveal[data-split] { opacity: 1; transform: none; }

/* ── NAV ── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-wrap.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1180px; margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-logo img { width: 80px; height: 80px; object-fit: contain; }
.nav-brand { font-size: 1.1rem; font-weight: 600; color: #fff; transition: color 0.2s; }
.nav-brand strong { color: var(--gold-light); }
.nav-links { display: none; gap: 0; margin-left: auto; }
.nav-links a {
  display: block; padding: 0.4rem 0.85rem; font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.85); transition: color 0.2s; border-radius: 6px;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: none; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-tel {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.95rem; font-weight: 700; color: #fff; transition: color 0.2s;
}
.nav-tel:hover { color: var(--gold-light); }
.nav-burger {
  margin-left: auto; background: none; border: none;
  width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: all 0.25s ease; border-radius: 2px;
}

/* Nav transparente → texto blanco; scrolled → texto oscuro */
.nav-wrap.is-scrolled .nav-brand { color: var(--ink); }
.nav-wrap.is-scrolled .nav-brand strong { color: var(--green); }
.nav-wrap.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav-wrap.is-scrolled .nav-links a:hover { color: var(--green); }
.nav-wrap.is-scrolled .nav-tel { color: var(--green); }
.nav-wrap.is-scrolled .nav-tel:hover { color: var(--green-dark); }
.nav-wrap.is-scrolled .nav-burger span { background: var(--ink); }

/* Burger open state */
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav-links a {
  display: block; padding: 1rem 0; font-size: 1.3rem; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
  font-family: "Playfair Display", serif;
}
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh; min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-dark);
  padding-top: var(--nav-h);
}

.hero-mesh {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(ellipse 75% 60% at 15% 80%, rgba(74,170,58,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(45,106,45,0.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(30,74,30,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 75%, rgba(232,149,10,0.12) 0%, transparent 55%);
  animation: meshDrift 18s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.06) translate(-2%, 1.5%); }
  66%       { transform: scale(0.97) translate(1.5%, -1%); }
}

.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: 820px; margin-inline: auto;
  animation: heroIn 1s var(--ease-out) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.kicker-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(232,149,10,0.5);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,149,10,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(232,149,10,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,149,10,0); }
}

.hero-title { color: #fff; margin-bottom: 1.25rem; text-wrap: balance; }
.hero-title em { color: var(--gold-light); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: #fff; font-weight: 500; max-width: 52ch; margin-inline: auto; margin-bottom: 2.25rem; text-shadow: 0 1px 12px rgba(0,0,0,0.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
/* Hero buttons: override para contrastar con fondo verde */
.hero-actions .btn-primary {
  background: var(--gold); color: #1a2a1a; border-color: var(--gold); font-weight: 700;
}
.hero-actions .btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  opacity: 0.45;
}
.hero-scroll-hint span {
  display: block; width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  margin-inline: auto;
  animation: scrollHint 2s ease infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── STATS ── */
.stats {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1180px; margin-inline: auto;
  padding: 2.5rem clamp(1.25rem,4vw,2.5rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.stat-item { padding: 1.5rem 1rem; text-align: center; position: relative; }
.stat-num {
  display: block; font-family: "Playfair Display", serif; font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--green); line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.82rem; font-weight: 500; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { display: none; }

/* ── SERVICES ── */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.service-card {
  background: var(--paper); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s;
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-pale);
  }
  .service-card:hover .service-img-wrap img { transform: scale(1.06); }
}
.service-img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.service-body { padding: 1.5rem; }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-frost); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.service-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--ink); }
.service-body p { font-size: 0.9rem; color: var(--ink-mute); line-height: 1.6; margin-bottom: 1rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600; color: var(--green);
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 0.5rem; }

/* ── PORTFOLIO ── */
.portfolio { background: var(--ink); padding-block: clamp(4rem,8vw,7rem); }
.portfolio .section-header { color: #fff; }
.portfolio .section-kicker { color: var(--gold-light); }
.portfolio .section-title { color: #fff; }
.portfolio .section-title em { color: var(--gold-light); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.portfolio-item { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.portfolio-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff; font-size: 0.85rem; font-weight: 500;
  transform: translateY(4px); transition: transform 0.3s ease;
}
@media (hover: hover) {
  .portfolio-item:hover img { transform: scale(1.05); }
  .portfolio-item:hover figcaption { transform: none; }
}

/* ── ABOUT ── */
.about { background: var(--bg-2); }
.about-inner { display: flex; flex-direction: column; gap: 3rem; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; max-height: 480px; }
.about-badge {
  position: absolute; bottom: 1.25rem; right: 1.25rem;
  background: var(--green); color: #fff;
  padding: 0.5rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.4rem;
  box-shadow: var(--shadow-md);
}
.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-lead { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; }
.about-reasons { display: flex; flex-direction: column; gap: 1.25rem; }
.about-reasons li { display: flex; gap: 1rem; align-items: flex-start; }
.reason-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-frost); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1rem;
}
.about-reasons strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.2rem; }
.about-reasons p { font-size: 0.88rem; color: var(--ink-mute); line-height: 1.6; }

/* ── COVERAGE ── */
.coverage { background: var(--green-dark); padding-block: clamp(3rem,6vw,5rem); }
.coverage-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.coverage-text .section-kicker { color: var(--gold-light); }
.coverage-text h2 { color: #fff; }
.coverage-text h2 em { color: var(--gold-light); }
.coverage-text p { color: rgba(255,255,255,0.65); margin-top: 0.75rem; font-size: 1rem; }
.coverage-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.coverage-zones li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; background: rgba(255,255,255,0.06); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.zone-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 0.45rem; }
.coverage-zones strong { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; }
.coverage-zones p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }

/* ── FORM SECTION ── */
.form-section { background: var(--bg); }
.form-wrap { display: flex; flex-direction: column; gap: 3rem; }
.form-content { display: flex; flex-direction: column; gap: 1.25rem; }
.form-content .section-title { line-height: 1.2; }
.form-lead { font-size: 1rem; color: var(--ink-mute); }
.form-benefits { display: flex; flex-direction: column; gap: 0.6rem; }
.form-benefits li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
}
.form-benefits svg { color: var(--green); flex-shrink: 0; }
.form-alt-contact { padding-top: 1rem; border-top: 1px solid var(--line); }
.form-alt-contact p { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 0.5rem; }
.form-phone-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.3rem; font-weight: 700; color: var(--green);
  transition: color 0.2s;
}
.form-phone-link:hover { color: var(--green-dark); }

/* Form panel */
.form-panel {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(1.5rem,4vw,2.5rem);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.quote-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row-2 { flex-direction: column; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-field .req { color: var(--green); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-size: 0.92rem; font-family: "Inter", sans-serif; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,45,0.12);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a55' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-check { flex-direction: row !important; align-items: flex-start; gap: 0.6rem; }
.form-check input[type=checkbox] { flex-shrink: 0; width: 17px; height: 17px; margin-top: 0.12rem; accent-color: var(--green); }
.form-check label { font-size: 0.83rem; font-weight: 400; color: var(--ink-mute); }
.form-check label a { color: var(--green); text-decoration: underline; }
.field-error { font-size: 0.78rem; color: #c0392b; min-height: 1em; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #c0392b; }

/* Submit button */
.btn-submit {
  width: 100%; padding: 0.9rem; font-size: 1rem;
  position: relative; overflow: hidden;
}
.btn-submit .btn-spinner { display: none; animation: spin 0.7s linear infinite; }
.btn-submit.is-loading .btn-label { opacity: 0; }
.btn-submit.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form success */
.form-success {
  text-align: center; padding: 2.5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.form-success[hidden] { display: none; }
.success-icon { color: var(--green); }
.form-success h3 { font-size: 1.4rem; color: var(--ink); }
.form-success p { color: var(--ink-mute); }
.form-success a { color: var(--green); font-weight: 600; }

/* ── CONTACT ── */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { color: var(--green); flex-shrink: 0; margin-top: 0.15rem; }
.contact-item strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.9rem; color: var(--ink-mute); }
.contact-item a { color: var(--green); font-weight: 600; font-size: 1rem; }
.contact-map iframe { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(255,255,255,0.9); padding-block: 3.5rem 2rem; }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.65rem; color: #fff; font-weight: 600; font-size: 0.95rem; }
.footer-logo strong { color: var(--green-light); }
.footer-logo img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.8); max-width: 30ch; }
.footer-tel { font-size: 1.1rem; font-weight: 700; color: var(--gold-light); }
.footer h3 { font-family: "Inter", sans-serif; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.85rem; }
.footer-links ul, .footer-zona ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-zona li { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 2rem; border-top: 2px solid rgba(255,255,255,0.5);
  font-size: 0.82rem; color: #fff;
}
.footer-bottom a { color: rgba(255,255,255,0.88); text-decoration: underline; }
.footer-bottom a:hover { color: #f0f0f0; }

/* ── MOBILE CTA ── */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; gap: 0; background: var(--paper);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
  border-top: 1px solid var(--line);
}
.mcta-call, .mcta-budget {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 0.75rem; font-size: 0.88rem; font-weight: 700;
}
.mcta-call { background: var(--green); color: #fff; }
.mcta-budget { background: var(--paper); color: var(--green); border-left: 1px solid var(--line); }
body { padding-bottom: 60px; } /* avoid content hidden under mobile CTA */

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET 640px+
   ═══════════════════════════════════════ */
@media (max-width: 639px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 640px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
  .stat-divider { display: block; width: 1px; background: var(--line); }
  .stat-item { padding: 2rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .portfolio-large { grid-column: 1 / -1; }
  .portfolio-large img { aspect-ratio: 16/7; }
  .portfolio-wide { grid-column: 1 / -1; }
  .portfolio-wide img { aspect-ratio: 21/9; }
  .portfolio-item img { aspect-ratio: 4/3; }

  .form-row-2 { flex-direction: row; }

  .coverage-zones { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — DESKTOP 960px+
   ═══════════════════════════════════════ */
@media (min-width: 960px) {
  .nav-links { display: flex; margin-left: auto; }
  .nav-actions { display: flex; }
  .nav-burger { display: none; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .about-inner { flex-direction: row; align-items: center; gap: 5rem; }
  .about-image { flex: 0 0 45%; }
  .about-content { flex: 1; }
  .about-image img { max-height: none; }

  .coverage-inner { flex-direction: row; align-items: flex-start; gap: 5rem; }
  .coverage-text { flex: 0 0 44%; }

  .form-wrap { flex-direction: row; align-items: flex-start; gap: 4rem; }
  .form-content { flex: 0 0 42%; position: sticky; top: calc(var(--nav-h) + 2rem); }
  .form-panel { flex: 1; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}

/* En móvil sube un poco para no tapar el CTA inferior */
@media (max-width: 639px) {
  .whatsapp-fab { bottom: 5rem; }
}

/* ── ACCESIBILIDAD ── */
@media (prefers-reduced-motion: reduce) {
  /* Solo gateamos efectos intrusivos, nunca micro-interacciones */
  @keyframes meshDrift { 0%, 100% { transform: none; } }
  @keyframes scrollHint { 0%, 100% { opacity: 0.4; } }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
