/* ============================================================
   Rescate Acuático - Flor Tesone · styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:    #1B3A6B;
  --navy-dk: #122a52;
  --navy-lt: #254d8c;
  --orange:  #F57C00;
  --orange-lt: #FF9A30;
  --white:   #FFFFFF;
  --gray-50: #F8F9FB;
  --gray-100:#EEF0F5;
  --gray-400:#9CA3AF;
  --gray-600:#4B5563;
  --gray-800:#1F2937;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,58,107,.10);
  --shadow-lg: 0 12px 48px rgba(27,58,107,.18);

  --nav-h: 72px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utilidades ─────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.05;
}

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(245,124,0,.35);
}
.btn-primary:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,124,0,.45);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}
.btn-whatsapp svg { width: 22px; height: 22px; }
.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.nav-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}

/* Animación X cuando el menú está abierto */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-img, .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  filter: blur(0.4px) contrast(1.08) saturate(1.1);
  transform: translateZ(0);
  will-change: transform;
}
/* Fallback color when image is missing */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,58,107,.55) 0%,
    rgba(27,58,107,.72) 60%,
    rgba(18,42,82,.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: .95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.hero-content h1 span {
  color: var(--orange);
  display: block;
}
.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: rgba(255,255,255,.8);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SOBRE FLOR ─────────────────────────────────────────────── */
.sobre {
  background: var(--white);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.sobre-img-wrap {
  position: relative;
}
.sobre-img-frame {
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.sobre-img {
  width: 100%;
  height: auto;
  display: block;
}
.sobre-img-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: var(--gray-400);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.sobre-img-placeholder svg {
  width: 80px; height: 80px;
  opacity: .5;
}
.sobre-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 160px;
}
.badge-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.badge-txt {
  font-size: .8rem;
  font-weight: 600;
  opacity: .9;
  letter-spacing: .03em;
}
.sobre-content .section-title {
  margin-bottom: 24px;
}
.sobre-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.sobre-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-100);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── CÓMO TRABAJAMOS ────────────────────────────────────────── */
.metodologia {
  background: var(--navy-dk);
  color: var(--white);
}
.metodologia .section-title { color: var(--white); }

.metodologia-intro {
  max-width: 740px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
}

.metodologia-pasos {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 80px;
  position: relative;
}
.metodologia-pasos::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(245,124,0,.25);
}

.metodo-paso {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.metodo-paso:last-child { border-bottom: none; }

.metodo-num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: .05em;
  min-width: 72px;
  text-align: center;
  padding-top: 4px;
  background: var(--navy-dk);
  position: relative;
  z-index: 1;
}

.metodo-body h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.metodo-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  max-width: 680px;
}

.metodologia-pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pilar {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background var(--transition), border-color var(--transition);
}
.pilar:hover {
  background: rgba(245,124,0,.08);
  border-color: rgba(245,124,0,.3);
}
.pilar svg {
  width: 48px; height: 48px;
  margin-bottom: 20px;
}
.pilar-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  filter: invert(52%) sepia(98%) saturate(600%) hue-rotate(1deg) brightness(98%) contrast(97%);
}
.pilar-emoji {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.pilar h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.pilar p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}

@media (max-width: 900px) {
  .metodologia-pilares { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .metodologia-pasos::before { display: none; }
  .metodo-paso { flex-direction: column; gap: 12px; padding: 28px 0; }
  .metodo-num { text-align: left; }
  .metodologia-pilares { grid-template-columns: 1fr; }
}

/* ── SERVICIOS ──────────────────────────────────────────────── */
.servicios {
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-card.featured::before { background: var(--orange-lt); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,.75); }
.service-card.featured .service-link { color: var(--orange-lt); }
.service-card.featured .service-link:hover { color: var(--white); }

.service-badge-featured {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.service-icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-icon-img {
  width: 100%; height: 100%;
  filter: invert(52%) sepia(98%) saturate(600%) hue-rotate(1deg) brightness(98%) contrast(97%);
}
.service-icon-img--featured {
  filter: brightness(0) invert(1);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.service-tag {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--orange) !important;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}
.service-card.featured .service-tag { color: var(--orange-lt) !important; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--orange);
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 18px; height: 18px; }

/* ── GALERÍA ────────────────────────────────────────────────── */
.galeria { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
}
.gallery-item:last-child {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s var(--transition);
}
.gallery-item:hover img { transform: scale(1.04); }


/* ── CONTACTO ───────────────────────────────────────────────── */
.contacto {
  background: var(--gray-50);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.contacto-info h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.contacto-info > p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--gray-600);
}
.contacto-item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.contacto-item a { color: var(--navy); font-weight: 600; }
.contacto-item a:hover { color: var(--orange); }

/* Formulario */
.contacto-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-lt);
  box-shadow: 0 0 0 3px rgba(37,77,140,.12);
  background: var(--white);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.form-note {
  font-size: .8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
}

/* ── INSTAGRAM STRIP ────────────────────────────────────────── */
.instagram-strip {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 56px 24px;
}
.instagram-strip__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.instagram-strip__icon {
  width: 52px;
  height: 52px;
  color: #E1306C;
  flex-shrink: 0;
}
.instagram-strip__text {
  flex: 1;
}
.instagram-strip__claim {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.instagram-strip__handle {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}
.instagram-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.instagram-strip__btn:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .instagram-strip__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .instagram-strip__icon { width: 44px; height: 44px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}
.footer-logo-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo-sub {
  display: block;
  font-size: .8rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .05em;
}
.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 300px;
}
.footer-links h4,
.footer-social-col h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}

/* ── WHATSAPP FLOTANTE ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--gray-800);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-800);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sobre-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service-card { padding: 32px 24px; }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 0 24px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  body.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 16px 28px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* Hero */
  .hero-content h1 { font-size: clamp(3rem, 14vw, 5rem); }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .sobre-img-wrap { max-width: 560px; margin: 0 auto; width: 100%; padding-bottom: 40px; }
  .sobre-badge { right: 0; bottom: 0; }
  .sobre-stats { gap: 20px; }

  /* Galería */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:last-child { grid-column: span 1; }

  /* Contacto */
  .contacto-grid { gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .contacto-form {
    padding: 24px 20px;
    box-shadow: none;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:last-child { grid-column: span 1; }
  .hero-content h1 { font-size: clamp(2.8rem, 16vw, 4rem); }
  .sobre-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .contacto-form { padding: 24px 16px; }
  .services-grid { max-width: 100%; }
  .service-card { padding: 28px 20px; }
  .footer-grid { gap: 24px; }
  .metodologia-pilares { gap: 16px; }
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
  box-sizing: border-box;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.28); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 36px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .05em;
  margin: 0;
}

/* cursor pointer en las fotos de galería */
.gallery-item { cursor: pointer; }

@media (max-width: 600px) {
  .lightbox-img-wrap { padding: 56px 12px 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; font-size: 28px; }
}
