/* =====================================================================
   G4CE GARAGE V3 — CRAS-inspired
   Oxanium (headings) · Sarabun (body) · Teal palette · Full animation set
   ===================================================================== */

/* =====================================================================
   0. DESIGN TOKENS
   ===================================================================== */
:root {
  --clr-teal:    #00a19b;
  --clr-teal-lt: #00b8b1;
  --clr-black:   #0d0d0d;
  --clr-bg:      #101010;
  --clr-text:    #d3d3d3;
  --clr-white:   #ffffff;
  --clr-gray-1:  #1a1a1a;
  --clr-gray-2:  #252525;
  --clr-gray-3:  #3a3a3a;
  --clr-gray-4:  #4a4a4a;

  --ff-heading: 'Oxanium', sans-serif;
  --ff-body:    'Sarabun', sans-serif;

  --nav-h:      70px;
  --transition: 0.3s ease;
}

/* =====================================================================
   1. BASE
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { border: none; background: none; font-family: inherit; }

section[id] { scroll-margin-top: var(--nav-h); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--clr-teal);
  color: var(--clr-black);
  font-family: var(--ff-heading);
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* =====================================================================
   2. KEYFRAMES
   ===================================================================== */

/* Shimmer: barrido de luz de izquierda a derecha */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Pulse border: heartbeat teal */
@keyframes pulse-border {
  0%   { box-shadow: 0 0 0 0   rgba(0,161,155,0.65); }
  70%  { box-shadow: 0 0 0 18px rgba(0,161,155,0);   }
  100% { box-shadow: 0 0 0 0   rgba(0,161,155,0);    }
}

/* Badge dot pulse */
@keyframes dot-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px rgba(0,161,155,0.9); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px rgba(0,161,155,0.3); }
}

/* SplitText char entrance */
@keyframes char-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Ticker marquee */
@keyframes slide-left {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}

/* Background watermark sweep — banda de 200px fija de izq a der (igual que CRAS) */
@keyframes bg-sweep {
  0%   { background-position: top left;  }
  100% { background-position: top right; }
}

/* Hero slide text entrance — fade + lift + blur */
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* =====================================================================
   3. TEXT EFFECTS
   ===================================================================== */

/* ── Shimmer: fondo gradiente que barre de izquierda a derecha ────── */
.text-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.25) 0%,
    var(--clr-teal)        30%,
    var(--clr-white)       50%,
    var(--clr-teal)        70%,
    rgba(255,255,255,0.25) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ── Stroke: contorno teal, relleno transparente ─────────────────── */
.text-stroke {
  -webkit-text-stroke: 2px var(--clr-teal);
  color: transparent;
}

/* ── Texto decorativo de fondo — igual al CRAS: banda de 200px que barre izq→der ── */
.section-bg-text {
  position:            absolute;
  z-index:             0;           /* debajo de section-wrap z-index:1 */
  opacity:             0.3;
  font-family:         var(--ff-heading);
  font-size:           110px;       /* fijo como en CRAS, no clamp */
  font-weight:         700;
  line-height:         normal;
  text-transform:      uppercase;
  white-space:         nowrap;
  pointer-events:      none;
  user-select:         none;
  /* Posición: alineado con donde arranca el contenido de la sección */
  top:                 4rem;
  left:                clamp(1.5rem, 5vw, 6rem);
  /* Efecto CRAS: fill oscuro base + banda blanca de 200px que viaja izq→der */
  background:          linear-gradient(to right, #222 0%, #fff 50%, #222 100%);
  -webkit-background-clip: text;
  background-clip:     text;
  -webkit-text-fill-color: transparent;
  background-color:    rgba(46, 46, 46, 0.796);
  background-size:     200px 100%;
  background-repeat:   no-repeat;
  background-position: 0 0;
  animation:           bg-sweep 2.5s infinite;
}

/* ── Accent word en headings de sección — color teal sólido ──────── */
.text-accent { color: var(--clr-teal); }

/* ── SplitText: cada char entra escalonado ─────────────────────────  */
.split-chars .char {
  display: inline-block;
  opacity: 0;
  animation: char-in 0.45s ease forwards;
}

/* =====================================================================
   4. EYEBROW
   ===================================================================== */
.eyebrow {
  font-family:     var(--ff-body);
  font-size:       0.75rem;
  font-weight:     600;
  letter-spacing:  0.22em;
  color:           var(--clr-teal);
  text-transform:  uppercase;
  margin-bottom:   1rem;
}
.eyebrow--sm {
  font-size:      0.7rem;
  letter-spacing: 0.28em;
  margin-bottom:  0.75rem;
}

/* =====================================================================
   5. BUTTONS
   ===================================================================== */

/* ── Primary ─────────────────────────────────────────────────────── */
.btn-primary-v3 {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      var(--clr-teal);
  color:           var(--clr-black);
  font-family:     var(--ff-heading);
  font-size:       0.875rem;
  font-weight:     700;
  letter-spacing:  0.1em;
  padding:         0.875rem 2rem;
  min-height:      48px;
  cursor:          pointer;
  position:        relative;
  z-index:         1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary-v3:hover {
  transform:  translate3d(0, -8px, 0.01px);
  box-shadow: 0 14px 36px rgba(0,161,155,0.45);
  background: var(--clr-teal-lt);
  color:      var(--clr-black);
}
.btn-primary-v3:focus-visible {
  outline:        2px solid var(--clr-teal);
  outline-offset: 3px;
}

/* ── Ghost ───────────────────────────────────────────────────────── */
.btn-ghost-v3 {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      transparent;
  color:           var(--clr-white);
  font-family:     var(--ff-heading);
  font-size:       0.875rem;
  font-weight:     600;
  letter-spacing:  0.1em;
  padding:         0.875rem 2rem;
  min-height:      48px;
  border:          1px solid var(--clr-white);
  cursor:          pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-ghost-v3:hover {
  transform:    translate3d(0, -8px, 0.01px);
  border-color: var(--clr-teal);
  box-shadow:   0 14px 36px rgba(0,161,155,0.22);
  color:        var(--clr-white);
}
.btn-ghost-v3:focus-visible {
  outline:        2px solid var(--clr-teal);
  outline-offset: 3px;
}

/* ── Outline teal (services panel) ───────────────────────────────── */
.btn-outline-teal {
  display:         inline-flex;
  align-items:     center;
  font-family:     var(--ff-heading);
  font-size:       0.85rem;
  font-weight:     600;
  letter-spacing:  0.1em;
  color:           var(--clr-teal);
  border:          1px solid var(--clr-teal);
  padding:         0.75rem 1.75rem;
  min-height:      44px;
  cursor:          pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-outline-teal:hover {
  background: var(--clr-teal);
  color:      var(--clr-black);
  transform:  translate3d(0, -5px, 0.01px);
  box-shadow: 0 8px 22px rgba(0,161,155,0.35);
}

/* ── Pulse (heartbeat) ───────────────────────────────────────────── */
.btn-pulse {
  animation: pulse-border 2.2s ease-out infinite;
}

/* =====================================================================
   6. NAVBAR
   ===================================================================== */
.site-nav {
  position:    fixed;
  top: 0; left: 0; right: 0;
  height:      var(--nav-h);
  background:  rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-gray-2);
  z-index: 1000;
  transition: background var(--transition);
}

.nav-container {
  display:     flex;
  align-items: center;
  height:      var(--nav-h);
  padding:     0 clamp(1.5rem, 4vw, 4rem);
}

/* Logo */
.nav-logo {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  cursor:      pointer;
}
.nav-logo__badge {
  width:           36px;
  height:          36px;
  background:      var(--clr-teal);
  color:           var(--clr-black);
  font-family:     var(--ff-heading);
  font-size:       0.875rem;
  font-weight:     800;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.nav-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo__name {
  font-family:    var(--ff-heading);
  font-size:      1rem;
  font-weight:    700;
  color:          var(--clr-white);
  letter-spacing: 0.05em;
}
.nav-logo__tag {
  font-family:    var(--ff-body);
  font-size:      0.6rem;
  letter-spacing: 0.22em;
  color:          var(--clr-teal);
  text-transform: uppercase;
}

/* Nav links */
.nav-links { gap: 0; }
.nav-menu-link {
  font-family:    var(--ff-heading);
  font-size:      0.8rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  color:          var(--clr-gray-4) !important;
  padding:        0 1.25rem !important;
  height:         var(--nav-h);
  display:        flex !important;
  align-items:    center;
  cursor:         pointer;
  transition:     color var(--transition);
  position:       relative;
}
.nav-menu-link::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             1.25rem;
  right:            1.25rem;
  height:           2px;
  background:       var(--clr-teal);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform var(--transition);
}
.nav-menu-link:hover,
.nav-menu-link.active { color: var(--clr-white) !important; }
.nav-menu-link:hover::after,
.nav-menu-link.active::after { transform: scaleX(1); }

/* CTA */
.nav-cta,
.nav-cta-mobile {
  background:      var(--clr-teal);
  color:           var(--clr-black) !important;
  font-family:     var(--ff-heading);
  font-size:       0.8rem;
  font-weight:     700;
  letter-spacing:  0.08em;
  padding:         0.6rem 1.5rem;
  cursor:          pointer;
  margin-left:     1.5rem;
  transition:      background var(--transition), transform var(--transition);
}
.nav-cta:hover,
.nav-cta-mobile:hover {
  background: var(--clr-teal-lt);
  transform:  translate3d(0, -3px, 0);
}

/* Language toggle — mismo patrón que .nav-menu-link pero en teal */
.lang-toggle {
  display:        flex;
  align-items:    center;
  gap:            5px;
  background:     transparent;
  border:         none;
  color:          var(--clr-teal);
  font-family:    var(--ff-heading);
  font-size:      0.8rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  padding:        0 1.25rem;
  height:         var(--nav-h);
  cursor:         pointer;
  transition:     color var(--transition);
  white-space:    nowrap;
  position:       relative;
  margin-left:    0;
}
.lang-toggle:hover { color: var(--clr-white); }
.lang-toggle::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             1.25rem;
  right:            1.25rem;
  height:           2px;
  background:       var(--clr-teal);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform var(--transition);
}
.lang-toggle:hover::after     { transform: scaleX(1); }
.lang-toggle:focus-visible    { outline: 2px solid var(--clr-teal); outline-offset: -2px; }

/* Hamburger */
.nav-toggle {
  width:          44px;
  height:         44px;
  display:        flex;
  flex-direction: column;
  justify-content: center;
  gap:            5px;
  padding:        8px;
  cursor:         pointer;
  background:     none;
  border:         none;
  box-shadow:     none;
}
.nav-toggle:focus-visible { outline: 2px solid var(--clr-teal); }
.nav-toggle span {
  display:          block;
  width:            100%;
  height:           2px;
  background:       var(--clr-white);
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — gestionado por initMobileMenu() en JS */
@media (max-width: 991px) {
  #navbarMain {
    display:    none;
    position:   absolute;
    top:        var(--nav-h);
    left:       0;
    right:      0;
    z-index:    1100;
    background: rgba(13,13,13,0.98);
    border-top: 1px solid var(--clr-gray-2);
    padding:    1rem clamp(1.5rem, 4vw, 4rem) 1.5rem;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  #navbarMain.nav-open {
    display:   block;
    animation: nav-slide-down 0.22s ease forwards;
  }
  .nav-menu-link {
    height:  48px;
    padding: 0 !important;
  }
  .nav-menu-link::after { left: 0; right: 0; }
  .nav-cta-mobile {
    margin:     0.75rem 0 0;
    width:      100%;
    text-align: center;
    display:    block;
    padding:    0.875rem;
  }
  #navbarMain .lang-toggle {
    height:   48px;
    padding:  0;
    width:    100%;
    margin:   0;
    justify-content: flex-start;
  }
  #navbarMain .lang-toggle::after { left: 0; right: 0; }
}

@keyframes nav-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* =====================================================================
   7. HERO — SWIPER SLIDER
   ===================================================================== */
.hero-swiper {
  height:     100vh;
  min-height: 620px;
  position:   relative;
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

/* Bottom gradient — smooth transition into info strip */
.hero-slide::after {
  content:        '';
  position:       absolute;
  bottom:         0;
  left:           0;
  right:          0;
  height:         28%;
  background:     linear-gradient(to top, rgba(13,13,13,0.92) 0%, transparent 100%);
  z-index:        1;
  pointer-events: none;
}

/* Background panel de cada slide */
.hero-slide__bg {
  position:            absolute;
  inset:               0;
  z-index:             0;
  background-image:    url(https://images.pexels.com/photos/4315575/pexels-photo-4315575.jpeg?auto=compress&cs=tinysrgb&w=1920);
  background-size:     cover;
  background-position: center;
}

/* Slide 1 — dark overlay + teal radial */
.hero-slide__bg::after {
  content:  '';
  position: absolute;
  inset:    0;
  background:
    linear-gradient(to right, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.48) 100%),
    radial-gradient(ellipse at 72% 45%, rgba(0,161,155,0.18) 0%, transparent 58%);
}

/* Slide 2 */
.hero-slide__bg--2 {
  background-image:    url(https://images.pexels.com/photos/12907630/pexels-photo-12907630.jpeg?auto=compress&cs=tinysrgb&w=1920);
  background-size:     cover;
  background-position: center;
}
.hero-slide__bg--2::after {
  content:  '';
  position: absolute;
  inset:    0;
  background:
    linear-gradient(to right, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.48) 100%),
    radial-gradient(ellipse at 25% 65%, rgba(0,161,155,0.18) 0%, transparent 55%);
}

/* Slide 3 */
.hero-slide__bg--3 {
  background-image:    url(https://images.pexels.com/photos/13065696/pexels-photo-13065696.jpeg?auto=compress&cs=tinysrgb&w=1920);
  background-size:     cover;
  background-position: center;
}
.hero-slide__bg--3::after {
  content:  '';
  position: absolute;
  inset:    0;
  background:
    linear-gradient(to right, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.48) 100%),
    radial-gradient(ellipse at 80% 28%, rgba(0,161,155,0.15) 0%, transparent 52%);
}

/* Contenido de slide */
.hero-slide__content {
  position:        relative;
  z-index:         2;
  height:          100%;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  padding:         0 clamp(1.5rem, 7vw, 8rem);
  padding-top:     calc(var(--nav-h) + 3rem);
  padding-bottom:  5rem;
}

.hero-title {
  font-family:    var(--ff-heading);
  font-size:      clamp(2.2rem, 5.5vw, 5rem);
  font-weight:    800;
  line-height:    0.95;
  letter-spacing: -0.02em;
  color:          var(--clr-white);
  margin-bottom:  2rem;
  margin-top:     0.75rem;
}

.hero-desc {
  font-family:   var(--ff-body);
  font-size:     clamp(1.05rem, 2vw, 1.2rem);
  color:         rgba(211,211,211,0.88);
  max-width:     520px;
  margin-bottom: 2.75rem;
  line-height:   1.8;
}

.hero-actions {
  display:   flex;
  gap:       1.25rem;
  flex-wrap: wrap;
}

/* Slide text — oculto por defecto; se revela al activarse el slide */
.hero-slide .eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-desc,
.hero-slide .hero-actions { opacity: 0; }

/* Entrada escalonada cuando el slide es activo (coordina con speed: 900ms de Swiper) */
.swiper-slide-active .eyebrow    { animation: hero-text-in 0.55s cubic-bezier(0.22,1,0.36,1) forwards 0.10s; }
.swiper-slide-active .hero-title { animation: hero-text-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards 0.28s; }
.swiper-slide-active .hero-desc  { animation: hero-text-in 0.55s cubic-bezier(0.22,1,0.36,1) forwards 0.46s; }
.swiper-slide-active .hero-actions { animation: hero-text-in 0.50s cubic-bezier(0.22,1,0.36,1) forwards 0.60s; }

/* Swiper pagination */
.swiper-pagination {
  bottom: 2.5rem !important;
}
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.3) !important;
  opacity:    1 !important;
  width:      6px;
  height:     6px;
  transition: width 0.3s ease, background 0.3s ease;
}
.swiper-pagination-bullet-active {
  background:    var(--clr-teal) !important;
  width:         24px;
  border-radius: 3px;
}

/* Swiper nav arrows */
.swiper-button-next,
.swiper-button-prev {
  color:    rgba(255,255,255,0.4) !important;
  width:    44px;
  height:   44px;
  transition: color 0.3s ease;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size:   1rem !important;
  font-weight: 700;
}
.swiper-button-next:hover,
.swiper-button-prev:hover { color: var(--clr-teal) !important; }

/* =====================================================================
   8. HERO INFO STRIP
   ===================================================================== */
.hero-infostrip {
  background:  var(--clr-black);
  border-top:  2px solid var(--clr-teal);
  border-bottom: 1px solid var(--clr-gray-2);
}

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

.hero-infostrip__item {
  padding:        2.25rem 2rem 2.25rem 2rem;
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
  border-right:   1px solid var(--clr-gray-2);
  transition:     background var(--transition);
}
.hero-infostrip__item:last-child { border-right: none; }

/* Horario item — highlighted as most important info */
.hero-infostrip__item--horario {
  position: relative;
}
.hero-infostrip__item--horario .hero-infostrip__value {
  color:     var(--clr-teal);
  font-size: 1.35rem;
}

.hero-infostrip__icon {
  color:       var(--clr-teal);
  opacity:     0.7;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-infostrip__label {
  font-family:    var(--ff-body);
  font-size:      0.62rem;
  letter-spacing: 0.3em;
  color:          var(--clr-gray-4);
  text-transform: uppercase;
}

.hero-infostrip__value {
  font-family:    var(--ff-heading);
  font-size:      1.15rem;
  font-weight:    700;
  color:          var(--clr-white);
  letter-spacing: 0.02em;
  line-height:    1.2;
}

/* Info strip: tablet portrait 576-767px → 2 columnas, 3er item full-width */
@media (max-width: 767px) {
  .hero-infostrip__grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-infostrip__item {
    padding:       1.5rem 1.25rem;
    border-bottom: 1px solid var(--clr-gray-2);
  }
  .hero-infostrip__item:nth-child(2) { border-right: none; }
  .hero-infostrip__item:last-child {
    grid-column:   1 / -1;
    border-right:  none;
    border-bottom: none;
    flex-direction: row;
    align-items:   center;
    gap:           1.5rem;
  }
  .hero-infostrip__item--horario .hero-infostrip__value { font-size: 1.1rem; }
}

/* Info strip: mobile ≤575px → 1 columna, ícono a la izquierda */
@media (max-width: 575px) {
  .hero-infostrip__grid { grid-template-columns: 1fr; }
  .hero-infostrip__item {
    display:     grid;
    grid-template-columns: 2rem 1fr;
    grid-template-rows:    auto auto;
    column-gap:  0.875rem;
    row-gap:     0.1rem;
    align-items: center;
    border-right:  none;
    border-bottom: 1px solid var(--clr-gray-2);
    padding:       1rem 0;
    grid-column:   auto;
  }
  .hero-infostrip__item:nth-child(2) { border-right: none; }
  .hero-infostrip__item:last-child {
    border-bottom:  none;
    grid-column:    auto;
    flex-direction: unset;
    gap:            unset;
    column-gap:     0.875rem;
    row-gap:        0.1rem;
  }
  .hero-infostrip__icon {
    grid-column:  1;
    grid-row:     1 / 3;
    align-self:   center;
    margin-bottom: 0;
  }
  .hero-infostrip__label {
    grid-column: 2;
    grid-row:    1;
  }
  .hero-infostrip__value {
    grid-column: 2;
    grid-row:    2;
  }
  .hero-infostrip__item--horario .hero-infostrip__value { font-size: 1.1rem; }
}

/* =====================================================================
   9. SECTIONS — BASE
   ===================================================================== */
.section-services,
.section-contact {
  position: relative;
  overflow: hidden;
  padding:  6rem 0;
}

.section-wrap {
  padding-left:  clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
  position:      relative;
  z-index:       1;
}

.section-header { margin-bottom: 3rem; }

.section-heading {
  font-family:    var(--ff-heading);
  font-size:      clamp(2.5rem, 6vw, 5rem);
  font-weight:    800;
  color:          var(--clr-white);
  line-height:    1.0;
  letter-spacing: -0.01em;
  margin:         0;
}

/* =====================================================================
   10. SERVICES PANELS
   ===================================================================== */
.services-panels {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
  margin-top:            3rem;
}

.service-panel {
  background:      rgba(255,255,255,0.025);
  border-top:      2px solid transparent;
  padding:         2.5rem 2rem 2.25rem;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  text-align:      center;
  text-decoration: none;
  position:        relative;
  overflow:        hidden;
  cursor:          pointer;
  transition:      transform 0.35s ease,
                   box-shadow 0.35s ease,
                   background 0.35s ease,
                   border-top-color 0.35s ease;
}

.service-panel:hover {
  transform:       translateY(-5px);
  background:      rgba(0,161,155,0.05);
  border-top-color: var(--clr-teal);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.32),
    0 0 0 1px rgba(0,161,155,0.28),
    inset 0 -2px 0 var(--clr-teal);
}

/* Ícono limpio — sin contenedor */
.service-panel__icon {
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color:         var(--clr-gray-3);
  position:      relative;
  z-index:       1;
  transition:    color var(--transition);
}
.service-panel:hover .service-panel__icon {
  color: var(--clr-teal);
}

.service-panel__title {
  font-family:    var(--ff-heading);
  font-size:      0.9rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  color:          var(--clr-white);
  margin-bottom:  0.75rem;
  position:       relative;
  z-index:        1;
  transition:     color var(--transition);
}
.service-panel:hover .service-panel__title { color: var(--clr-teal); }

.service-panel__desc {
  font-family: var(--ff-body);
  font-size:   0.88rem;
  color:       var(--clr-text);
  line-height: 1.7;
  margin:      0;
  position:    relative;
  z-index:     1;
}

@media (max-width: 991px) {
  .services-panels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .services-panels { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .service-panel   { padding: 1.75rem 1.25rem; }
}
/* Pantallas muy pequeñas: 1 columna para evitar títulos apretados */
@media (max-width: 400px) {
  .services-panels { grid-template-columns: 1fr; }
  .service-panel   { padding: 1.5rem 1.25rem; }
}

/* =====================================================================
   11. CONTACT
   ===================================================================== */
.contact-grid { min-height: 520px; }

.contact-content {
  padding:         4rem clamp(2rem, 5vw, 4rem);
  display:         flex;
  flex-direction:  column;
  justify-content: center;
}

.contact-wa-btn {
  margin-top:    2rem;
  margin-bottom: 2rem;
  align-self:    flex-start;
  font-size:     1rem;
  gap:           0.6rem;
}

.contact-info-list {
  list-style: none;
  padding:    0;
  margin:     0;
  display:    flex;
  flex-direction: column;
  gap:        0;
  border-top: 1px solid var(--clr-gray-2);
}

.contact-info-item {
  display:       flex;
  flex-direction:column;
  gap:           0.2rem;
  padding:       1rem 0;
  border-bottom: 1px solid var(--clr-gray-2);
}

.contact-info-item__label {
  font-family:    var(--ff-body);
  font-size:      0.65rem;
  letter-spacing: 0.25em;
  color:          var(--clr-teal);
  text-transform: uppercase;
}

.contact-info-item__value {
  font-family:    var(--ff-heading);
  font-size:      1rem;
  font-weight:    600;
  color:          var(--clr-white);
  text-decoration:none;
  letter-spacing: 0.03em;
  transition:     color var(--transition);
}
.contact-info-item__value--link:hover { color: var(--clr-teal); }
.contact-info-item__value--highlight  { color: var(--clr-teal); }

.contact-map-col {
  padding:  0;
  position: relative;
  min-height: 400px;
}

.contact-map-iframe {
  position: absolute;
  inset:    0;
  width:    100%;
  height:   100%;
  border:   none;
  filter:   grayscale(1) invert(1) brightness(0.75) contrast(1.05);
}

.contact-map-col::after {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     rgba(0,161,155,0.06);
  pointer-events: none;
  z-index:        1;
}

/* =====================================================================
   13. SECTION FEATURES — ¿Por qué elegirnos?
   ===================================================================== */
.section-features {
  position:   relative;
  overflow:   hidden;
  padding:    6rem 0;
  background: var(--clr-gray-1);
}

.features-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top:            3rem;
  border:                1px solid var(--clr-gray-2);
}

.feature-card {
  padding:    2.5rem 2rem;
  border-right:  1px solid var(--clr-gray-2);
  border-bottom: 1px solid var(--clr-gray-2);
  position:      relative;
  transition:    background var(--transition), transform 0.35s ease, box-shadow 0.35s ease;
  overflow:      hidden;
}
.feature-card:nth-child(3n)  { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }
.feature-card::before,
.feature-card::after {
  content:      '';
  position:     absolute;
  width:        0;
  height:       0;
  border-style: solid;
  border-color: var(--clr-teal);
  transition:   width 0.35s ease, height 0.35s ease;
}
.feature-card::before { top: 0; left: 0;     border-width: 2px 0 0 2px; }
.feature-card::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.feature-card:hover::before,
.feature-card:hover::after { width: 22px; height: 22px; }
.feature-card:hover {
  background:  rgba(0,161,155,0.07);
  transform:   translateY(-4px);
  box-shadow:  0 10px 32px rgba(0,161,155,0.18);
}

.feature-card__num {
  font-family:    var(--ff-heading);
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.25em;
  color:          var(--clr-teal);
  margin-bottom:  1.5rem;
}

.feature-card__icon {
  color:         var(--clr-gray-3);
  margin-bottom: 1.25rem;
  transition:    color var(--transition);
}
.feature-card:hover .feature-card__icon { color: var(--clr-teal); }

.feature-card__title {
  font-family:    var(--ff-heading);
  font-size:      1rem;
  font-weight:    700;
  letter-spacing: 0.06em;
  color:          var(--clr-white);
  margin-bottom:  0.75rem;
}

.feature-card__desc {
  font-family: var(--ff-body);
  font-size:   0.95rem;
  color:       var(--clr-text);
  line-height: 1.7;
}

/* Responsive features grid */
@media (max-width: 991px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3n)  { border-right: 1px solid var(--clr-gray-2); }
  .feature-card:nth-child(2n)  { border-right: none; }
  .feature-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--clr-gray-2); }
  .feature-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 575px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; }
  .feature-card:last-child { border-bottom: none; }
  .feature-card:not(:last-child) { border-bottom: 1px solid var(--clr-gray-2); }
}

/* =====================================================================
   14. HERO BADGE + INFOSTRIP LINKS + FEATURES 4-GRID
   ===================================================================== */

/* Infostrip items as clickable links */
.hero-infostrip__item--link {
  text-decoration: none;
  cursor:          pointer;
  transition:      background var(--transition);
}
.hero-infostrip__item--link:hover {
  background: var(--clr-gray-1);
}
.hero-infostrip__item--link:hover .hero-infostrip__value {
  color: var(--clr-teal);
}

/* Features grid — 2×2 layout for 4 cards */
.features-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}
.features-grid--4 .feature-card:nth-child(2n)        { border-right: none; }
.features-grid--4 .feature-card:nth-last-child(-n+2)  { border-bottom: none; }

/* Reset the 3-column nth rules for the 4-card variant */
.features-grid--4 .feature-card:nth-child(3n) { border-right: 1px solid var(--clr-gray-2); }
.features-grid--4 .feature-card:nth-child(2n) { border-right: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--clr-black);
}

/* CTA strip */
.footer-cta {
  background: var(--clr-teal);
  padding:    1.25rem 0;
}
.footer-cta__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1.5rem;
  flex-wrap:       wrap;
}
.footer-cta__text {
  font-family:    var(--ff-heading);
  font-size:      0.78rem;
  font-weight:    700;
  letter-spacing: 0.22em;
  color:          var(--clr-black);
  margin:         0;
}
.footer-cta__btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      var(--clr-black);
  color:           var(--clr-teal);
  font-family:     var(--ff-heading);
  font-size:       0.72rem;
  font-weight:     700;
  letter-spacing:  0.15em;
  padding:         0.6rem 1.25rem;
  text-decoration: none;
  white-space:     nowrap;
  transition:      background var(--transition), color var(--transition);
}
.footer-cta__btn:hover { background: var(--clr-white); color: var(--clr-black); }

/* Main footer body */
.footer-body {
  position:   relative;
  overflow:   hidden;
  border-top: 1px solid var(--clr-gray-2);
}

/* Ghost watermark */
.footer-ghost {
  position:       absolute;
  right:          -0.02em;
  bottom:         -0.18em;
  font-family:    var(--ff-heading);
  font-size:      clamp(7rem, 22vw, 20rem);
  font-weight:    800;
  letter-spacing: -0.04em;
  color:          var(--clr-white);
  opacity:        0.028;
  line-height:    1;
  user-select:    none;
  pointer-events: none;
}

.footer-wrap {
  padding-left:  clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
}

.footer-top {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:                   4rem;
  padding:               4rem 0 3rem;
  border-bottom:         1px solid var(--clr-gray-2);
  position:              relative;
  z-index:               1;
}

.footer-logo {
  display:         flex;
  align-items:     center;
  gap:             0.75rem;
  font-family:     var(--ff-heading);
  font-size:       1.125rem;
  font-weight:     800;
  letter-spacing:  0.08em;
  color:           var(--clr-white);
  text-decoration: none;
  margin-bottom:   1rem;
  transition:      color var(--transition);
}
.footer-logo:hover { color: var(--clr-teal); }

.footer-logo__badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  background:      var(--clr-teal);
  color:           var(--clr-black);
  font-family:     var(--ff-heading);
  font-size:       0.78rem;
  font-weight:     800;
  letter-spacing:  0.05em;
  flex-shrink:     0;
}

.footer-brand-desc {
  font-family:   var(--ff-body);
  font-size:     0.9rem;
  color:         var(--clr-gray-4);
  line-height:   1.7;
  max-width:     340px;
  margin-bottom: 1.25rem;
}

.footer-divider {
  width:         2.5rem;
  height:        2px;
  background:    var(--clr-teal);
  margin-bottom: 1rem;
}

.footer-spec {
  font-family:    var(--ff-heading);
  font-size:      0.62rem;
  letter-spacing: 0.28em;
  color:          var(--clr-teal);
  opacity:        0.65;
  text-transform: uppercase;
}

.footer-col__title {
  font-family:    var(--ff-heading);
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.15em;
  color:          var(--clr-teal);
  text-transform: uppercase;
  margin-bottom:  1.5rem;
  padding-bottom: 0.75rem;
  border-bottom:  1px solid var(--clr-gray-2);
}

.footer-links {
  list-style:     none;
  padding:        0;
  margin:         0;
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
}

.footer-link {
  font-family:     var(--ff-body);
  font-size:       0.9rem;
  color:           var(--clr-gray-4);
  text-decoration: none;
  display:         inline-flex;
  align-items:     center;
  gap:             0.45rem;
  transition:      color var(--transition);
}
.footer-link::before {
  content:    '—';
  color:      var(--clr-teal);
  opacity:    0.45;
  font-size:  0.65rem;
  display:    inline-block;
  transition: opacity var(--transition), transform var(--transition);
}
.footer-link:hover               { color: var(--clr-teal); }
.footer-link:hover::before       { opacity: 1; transform: translateX(3px); }

/* Contact col with icons */
.footer-links--contact { gap: 1rem; }
.footer-contact-row {
  display:     flex;
  align-items: flex-start;
  gap:         0.75rem;
}
.footer-contact-row svg {
  color:       var(--clr-teal);
  opacity:     0.7;
  flex-shrink: 0;
  margin-top:  2px;
}
.footer-contact-item {
  font-family: var(--ff-body);
  font-size:   0.9rem;
  color:       var(--clr-gray-4);
}
.footer-contact-item--highlight {
  color:       var(--clr-teal);
  font-family: var(--ff-heading);
  font-weight: 600;
  opacity:     0.9;
}

/* Bottom bar */
.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.5rem 0;
  position:        relative;
  z-index:         1;
}

.footer-copy {
  font-family:    var(--ff-body);
  font-size:      0.72rem;
  letter-spacing: 0.12em;
  color:          var(--clr-gray-4);
  text-transform: uppercase;
}

.footer-top-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.4rem;
  font-family:     var(--ff-heading);
  font-size:       0.68rem;
  font-weight:     700;
  letter-spacing:  0.15em;
  color:           var(--clr-gray-4);
  text-decoration: none;
  border:          1px solid var(--clr-gray-2);
  padding:         0.4rem 0.75rem;
  transition:      color var(--transition), border-color var(--transition);
}
.footer-top-btn:hover { color: var(--clr-teal); border-color: var(--clr-teal); }

@media (max-width: 991px) {
  .footer-top        { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-cta__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 575px) {
  .footer-top        { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col--brand { grid-column: auto; }
  .footer-bottom     { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-copy       { font-size: 0.65rem; }
}

/* =====================================================================
   14. RESPONSIVE
   ===================================================================== */

/* Tablet ≤991px */
@media (max-width: 991px) {
  .hero-slide__content {
    padding-left:  clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
    padding-bottom: 3rem;
  }
  .contact-map-col { min-height: 300px; }
  .features-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet pequeño ≤767px */
@media (max-width: 767px) {
  .section-services,
  .section-features,
  .section-contact  { padding: 5rem 0; }
  .section-header   { margin-bottom: 2.5rem; }
  .contact-map-col  { min-height: 280px; }
}

/* Mobile ≤575px */
@media (max-width: 575px) {
  .hero-swiper    { height: 100svh; }
  .hero-title     { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .hero-desc      { font-size: 1rem; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn-primary-v3,
  .hero-actions .btn-ghost-v3 {
    width:           100%;
    justify-content: center;
  }
  /* Ocultar flechas — se navega con swipe y dots */
  .swiper-button-next,
  .swiper-button-prev { display: none; }
  .section-services,
  .section-features,
  .section-contact  { padding: 4rem 0; }
  .section-header   { margin-bottom: 2rem; }
  .section-bg-text  { font-size: 60px; top: 1.5rem; left: 1rem; }
  .contact-map-col  { min-height: 240px; }
  .contact-wa-btn   { width: 100%; justify-content: center; align-self: stretch; }
  .features-grid--4 { grid-template-columns: 1fr; }
  .features-grid--4 .feature-card { border-right: none; border-bottom: 1px solid var(--clr-gray-2); }
  .features-grid--4 .feature-card:last-child { border-bottom: none; }
  .feature-card     { padding: 2rem 1.5rem; }
}

/* =====================================================================
   15. REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .text-shimmer      { animation: none; background-position: center; }
  .section-bg-text   { animation: none; }
  .split-chars .char { animation: none; opacity: 1; transform: none; }
  .btn-primary-v3:hover,
  .btn-ghost-v3:hover,
  .btn-outline-teal:hover { transform: none; }
  .btn-pulse             { animation: none; }
  .hero-slide .eyebrow,
  .hero-slide .hero-title,
  .hero-slide .hero-desc,
  .hero-slide .hero-actions { opacity: 1; animation: none; filter: none; }
}
