/* ============================================================
   JYM TRASH CAN CARE LLC — Global Stylesheet
   style.css
   ============================================================

   ÍNDICE DE SECCIONES:
   1.  Reset & Base          — Normaliza estilos entre navegadores
   2.  CSS Variables         — Colores, fuentes y medidas centralizadas
   3.  Typography Utilities  — Clases reutilizables de texto
   4.  Buttons               — Estilos de botones globales
   5.  Navbar                — Barra de navegación fija
   6.  Footer                — Pie de página
   7.  Page Header Block     — Cabecera reutilizable en páginas internas
   8.  CTA Strip             — Banner de llamada a la acción reutilizable
   9.  Animations            — Keyframes y clases de animación
   10. Responsive            — Media queries para móvil y tablet
   ============================================================ */


/* ── 1. RESET & BASE ─────────────────────────────────────────
   Elimina márgenes, paddings y comportamientos inconsistentes
   que los navegadores aplican por defecto.
   box-sizing: border-box hace que el padding y border se incluyan
   dentro del ancho/alto declarado del elemento (más predecible).
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Scroll suave al navegar con anclas (#seccion) */
  font-size: 16px;         /* Base para unidades rem: 1rem = 16px */
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;              /* Evita scroll horizontal accidental */
  -webkit-font-smoothing: antialiased; /* Texto más nítido en macOS/iOS */
}

img {
  max-width: 100%; /* Las imágenes nunca desbordan su contenedor */
  display: block;  /* Elimina el espacio inferior que dejan por defecto */
}

a {
  text-decoration: none; /* Sin subrayado por defecto */
  color: inherit;        /* Hereda el color del elemento padre */
}

ul {
  list-style: none; /* Sin bullets por defecto */
}


/* ── 2. CSS VARIABLES ────────────────────────────────────────
   Definidas en :root para que sean accesibles en TODO el CSS.
   Cambiar un color aquí lo actualiza en todo el sitio.
   Paleta principal: azul + negro + blanco (identidad JYM)
   ──────────────────────────────────────────────────────────── */
:root {
  /* ── Colores ── */
  --navy:        #0a1628;  /* Azul muy oscuro — fondos de secciones hero */
  --blue:        #1456a0;  /* Azul principal — botones, acentos */
  --blue-light:  #2375cc;  /* Azul más claro — hover de botones */
  --blue-pale:   #deeaf7;  /* Azul muy suave — fondos de cards, badges */
  --white:       #ffffff;  /* Blanco puro */
  --off-white:   #f4f7fc;  /* Blanco ligeramente azulado — fondos alternativos */
  --gray:        #8a9ab5;  /* Gris medio — labels, textos secundarios */
  --gray-dark:   #4a5568;  /* Gris oscuro — párrafos, descripciones */
  --black:       #070c14;  /* Negro profundo — footer */
  --accent:      #1e8fff;  /* Azul brillante — detalles, badges, pulsos */

  /* ── Tipografía ── */
  --font-display: 'Bebas Neue', sans-serif; /* Títulos grandes */
  --font-body:    'DM Sans', sans-serif;    /* Texto general */

  /* ── Layout ── */
  --nav-h:      72px;   /* Altura del navbar — usada como padding-top en páginas */
  --max-width:  1280px; /* Ancho máximo del contenido centrado */
  --radius:     8px;    /* Bordes redondeados estándar */
  --radius-lg:  16px;   /* Bordes redondeados grandes (cards) */
  --padding-x:  5vw;    /* Padding horizontal responsivo de secciones */

  /* ── Transiciones ── */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave estándar */
}


/* ── 3. TYPOGRAPHY UTILITIES ─────────────────────────────────
   Clases reutilizables que se aplican en múltiples páginas.
   Evitan repetir los mismos estilos en cada archivo CSS.
   ──────────────────────────────────────────────────────────── */

/* Etiqueta pequeña sobre los títulos: "ABOUT US", "OUR SERVICES" */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;       /* Espaciado amplio para efecto "all caps" elegante */
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* Títulos de sección grandes con fuente display */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem); /* Escala entre 3rem y 5.5rem según viewport */
  line-height: 0.95;  /* Interlineado compacto para títulos grandes */
  letter-spacing: 0.5px;
}

/* Párrafo introductorio debajo de los títulos de sección */
.section-sub {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--gray-dark);
  max-width: 520px;
  margin-top: 1rem;
}


/* ── 4. BUTTONS ──────────────────────────────────────────────
   Dos variantes de botón usadas en todo el sitio.
   Se aplican tanto a <a> como a <button>.
   ──────────────────────────────────────────────────────────── */

/* Botón principal — fondo azul sólido */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px); /* Sube ligeramente al hover — sensación de profundidad */
}

/* Botón secundario — contorno, sin fondo (para usar sobre fondos oscuros) */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 28px; /* 1px menos que btn-primary para compensar el borde */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06); /* Fondo sutil al hover */
}


/* ── 5. NAVBAR ───────────────────────────────────────────────
   Fija en la parte superior (position: fixed).
   Siempre visible mientras se hace scroll.
   main.js agrega la clase .scrolled cuando el usuario baja
   más de 20px, oscureciendo el fondo.
   ──────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100; /* Siempre por encima del contenido */
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--padding-x);
  background: rgba(7, 12, 20, 0.95);
  backdrop-filter: blur(10px); /* Efecto vidrio esmerilado sobre el contenido */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

/* Estado al hacer scroll — fondo más opaco, con sombra */
#navbar.scrolled {
  background: rgba(7, 12, 20, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0; /* No se encoge si el espacio es limitado */
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}

.nav-logo-text span:last-child {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── Links desktop ── */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

/* Hover y enlace de la página actual */
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Enlace "Contact Us" estilizado como botón */
.nav-links a.nav-cta {
  background: var(--blue);
  color: var(--white);
  margin-left: 4px;
}

.nav-links a.nav-cta:hover {
  background: var(--blue-light);
}

/* ── Hamburger (mobile) ──
   Las 3 líneas se animan a una X cuando tiene clase .open
   gracias a las transformaciones CSS en los span hijos.
*/
.hamburger {
  display: none; /* Solo visible en mobile — ver media queries */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Animación a X cuando el menú está abierto */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; } /* La línea del medio desaparece */
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menú móvil desplegable ── */
.mobile-menu {
  display: none; /* Oculto por defecto */
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); /* Empieza justo debajo del navbar */
  left: 0; right: 0;
  background: rgba(7, 12, 20, 0.98);
  z-index: 99;
  padding: 1.5rem var(--padding-x) 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* main.js agrega esta clase al hacer click en el hamburger */
.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}


/* ── 6. FOOTER ───────────────────────────────────────────────
   Fondo negro profundo, 3 columnas: marca, navegación, contacto.
   ──────────────────────────────────────────────────────────── */
footer {
  background: var(--black);
  padding: 3rem var(--padding-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Contenedor con las 3 columnas del footer */
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* En tablet/mobile se apilan verticalmente */
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}

/* "Trash Can Care" en azul dentro del logo */
.footer-logo span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* Columna de navegación del footer */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

/* Columna de datos de contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

/* Barra inferior con el copyright */
.footer-copy {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  padding: 1.25rem 0;
}


/* ── 7. PAGE HEADER BLOCK ────────────────────────────────────
   Cabecera oscura reutilizable en las páginas internas
   (About, Services, Contact). Incluye un círculo decorativo
   con gradiente en la esquina superior derecha.
   Uso: <div class="page-header"> ... </div>
   ──────────────────────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 6rem var(--padding-x) 5rem;
  position: relative;
  overflow: hidden;
  margin-top: var(--nav-h); /* Evita que el navbar fijo tape el contenido */
}

/* Círculo decorativo de fondo con gradiente */
.page-header::before {
  content: '';
  position: absolute;
  right: -10%; top: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 86, 160, 0.3) 0%, transparent 70%);
  pointer-events: none; /* No interfiere con clics */
}

/* Los hijos deben tener z-index para aparecer sobre el ::before */
.page-header .section-label,
.page-header .section-heading,
.page-header .section-sub {
  position: relative;
  z-index: 1;
}

.page-header .section-heading {
  color: var(--white);
  max-width: 700px;
}

.page-header .section-sub {
  color: rgba(255, 255, 255, 0.5);
}


/* ── 8. CTA STRIP ────────────────────────────────────────────
   Banner de llamada a la acción reutilizable.
   Se usa al final de secciones para invitar al usuario a contactar.
   Uso: <div class="cta-strip"> <div>título+desc</div> <a>botón</a> </div>
   ──────────────────────────────────────────────────────────── */
.cta-strip {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* En mobile se apila verticalmente */
}

.cta-strip h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 300;
}


/* ── 9. ANIMATIONS ───────────────────────────────────────────
   Keyframes reutilizables y la clase .reveal para animaciones
   de entrada al hacer scroll (activadas desde main.js con
   Intersection Observer).
   ──────────────────────────────────────────────────────────── */

/* Pulso continuo — usado en badges con punto animado */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Aparece subiendo desde abajo */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Estado inicial de elementos con animación de scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* main.js agrega esta clase cuando el elemento entra al viewport */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retraso escalonado para grupos de elementos (stagger effect) */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ── 10. RESPONSIVE ──────────────────────────────────────────
   Breakpoints:
   - 768px: tablet / mobile grande  → oculta nav desktop, muestra hamburger
   - 480px: mobile pequeño          → ajusta paddings y tamaños
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --padding-x: 6vw; /* Un poco más de padding en mobile */
  }

  /* Oculta los links de navegación desktop */
  .nav-links {
    display: none;
  }

  /* Muestra el botón hamburger */
  .hamburger {
    display: flex;
  }

  /* El CTA strip se apila verticalmente */
  .cta-strip {
    flex-direction: column;
    text-align: center;
  }

  /* El footer se centra y apila verticalmente */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Los links del footer se ponen en fila horizontal */
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-contact {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 4rem var(--padding-x) 3rem; /* Reduce el espacio en pantallas muy pequeñas */
  }
}


/* ══════════════════════════════════════════════════════════════
   10. HOME — HERO
   Estilos de la sección principal de index.php
   ══════════════════════════════════════════════════════════════ */

/* Contenedor principal del hero — ocupa toda la pantalla */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Gradiente azul decorativo de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(20,86,160,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(30,143,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid de líneas sutiles decorativas */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Layout de dos columnas del hero */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8vh var(--padding-x) 6vh;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Badge "Now Serving Your Area" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,143,255,0.15);
  border: 1px solid rgba(30,143,255,0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Punto pulsante dentro del badge */
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Título principal H1 */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* "Clean." en azul brillante */
.hero-h1 em {
  color: var(--accent);
  font-style: normal;
}

/* Párrafo descriptivo */
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* Botones CTA del hero */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Columna derecha: Logo de la empresa */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-logo-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

/* Barra inferior con tipos de servicio */
.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem var(--padding-x);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   11. ABOUT
   Estilos de about.php
   ══════════════════════════════════════════════════════════════ */

.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem var(--padding-x);
}

/* Grid de dos columnas: texto izquierda, valores derecha */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* Píldoras del equipo fundador */
.team-row {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.team-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.team-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Grid de 4 tarjetas de valores */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--off-white);
}

.value-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.value-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.value-card p {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* Barra de promesa de satisfacción */
.promise-bar {
  background: var(--blue);
  color: var(--white);
  padding: 3rem var(--padding-x);
  text-align: center;
}

.promise-bar h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.promise-bar p {
  font-size: 15px;
  opacity: 0.75;
  margin-top: 10px;
  font-weight: 300;
}

/* Contenedor del CTA strip en about */
.about-cta-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--padding-x) 4rem;
}


/* ══════════════════════════════════════════════════════════════

/* ══════════════════════════════════════════════════════════════
   12. SERVICES — Rediseño con 2 servicios y layout alternado
   Estilos para servicios con carrusel + contenido
   ══════════════════════════════════════════════════════════════ */

/* Decorativo "SERVICES" gigante en el fondo del header */
.services-header::after {
  content: 'SERVICES';
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  font-family: var(--font-display);
  font-size: 16rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

/* Contenedor principal de servicios */
.services-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem var(--padding-x);
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Cada servicio: grid de dos columnas (imagen + texto) */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Servicio 2: alterna el orden (texto primero, imagen después) */
.service-item-2 {
  grid-template-columns: 1fr 1fr;
}

/* En mobile, ambos servicios apilan verticalmente */
@media (max-width: 960px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-item-2 {
    grid-template-columns: 1fr;
  }
}

/* Contenedor del carrusel */
.service-carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10,22,40,0.15);
}

.service-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Botones de navegación del carrusel */
.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.35);
  border-color: var(--white);
}

/* Indicadores de slides */
.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.indicator.active {
  background: var(--white);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255,255,255,0.6);
}

/* Contenido de texto del servicio */
.service-content {
  padding: 1rem;
}

.service-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.service-paragraph {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.service-h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lista de características/beneficios */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.service-list li {
  font-size: 15px;
  color: var(--gray-dark);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

/* Punto azul antes de cada item */
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
}

/* Botón CTA en el servicio */
.service-cta {
  margin-top: 1.5rem;
  display: inline-block;
}

/* Wrapper del CTA strip al final */
.services-cta-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem var(--padding-x) 4rem;
}

/* Responsive: ocultar controles en mobile */
@media (max-width: 600px) {
  .carousel-controls {
    display: none;
  }
  
  .carousel-indicators {
    bottom: 1rem;
    right: 1rem;
  }
  
  .service-content {
    padding: 0;
  }
  
  .service-h2 {
    margin-bottom: 1rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   13. CONTACT
   Estilos de contact.php
   ══════════════════════════════════════════════════════════════ */

.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--padding-x);
}

/* Grid de dos columnas: info izquierda, form derecha */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1;
}

/* Lista de datos de contacto */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-item-text span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 3px;
}

.info-item-text strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

.info-item-text a {
  color: var(--navy);
  transition: color var(--transition);
}

.info-item-text a:hover {
  color: var(--blue);
}

/* Bloque de horarios */
.hours-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--blue);
}

.hours-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 12px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--gray-dark);
}

.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--navy); }

/* Formulario de contacto */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid #e3eaf4;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 1.75rem;
  line-height: 1;
}

/* Grupos de campo */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-dark);
  margin-bottom: 7px;
}

/* Texto pequeño "(optional)" junto al label */
.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  font-size: 11px;
}

/* Inputs, selects y textareas */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid #d0daea;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

/* Borde rojo cuando hay error de validación (contact.js lo agrega) */
.input-error {
  border-color: #e53e3e !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Dos campos en la misma fila */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Mensaje de error debajo del campo */
.form-error {
  display: block;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
  min-height: 16px; /* Evita saltos de layout cuando aparece el mensaje */
}

/* Botón de envío */
.form-submit {
  width: 100%;
  margin-top: 6px;
}

/* Mensaje de éxito — oculto hasta que contact.js lo muestre */
.form-success {
  display: none;
  text-align: center;
  padding: 1.25rem;
  background: #e1f5ee;
  color: #0f6e56;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 12px;
  font-size: 14px;
}


/* ══════════════════════════════════════════════════════════════
   14. RESPONSIVE — Todas las páginas
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  /* Hero: columnas apiladas */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5vh var(--padding-x) 4vh;
  }

  /* About: columnas apiladas */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Contact: columnas apiladas */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  /* Valores en columna única en mobile */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Formulario: campos en columna única */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Botones hero apilados */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    text-align: center;
  }

  /* Equipo en columna */
  .team-row {
    flex-direction: column;
  }

  /* Barra hero inferior menos espaciada */
  .hero-bottom {
    gap: 1.5rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   15. CARRUSEL DE IMÁGENES EN SERVICE CARDS
   Carrusel funcional para mostrar imágenes de cada servicio
   ══════════════════════════════════════════════════════════════ */

/* Contenedor del carrusel */
.service-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Cada slide (imagen) */
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Slide activo visible */
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Overlay oscuro sobre la imagen para mejorar legibilidad del texto */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Contenido que va sobre la imagen (número, ícono, título) */
.service-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem 1.75rem;
}

/* Botones de navegación del carrusel */
.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 1.75rem;
  right: 1.75rem;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: var(--white);
}

/* Indicadores de slides (puntitos) */
.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.indicator.active {
  background: var(--white);
  transform: scale(1.3);
}

.indicator:hover {
  background: rgba(255,255,255,0.6);
}

/* Responsive: ocultar controles en mobile */
@media (max-width: 600px) {
  .carousel-controls,
  .carousel-indicators {
    display: none;
  }

  .service-card-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}