/* ============================================================
   MILITA - LANDING PAGE PROFESIONAL & MODERNA
   - Escritorio: 100vh en 1 sola ventana sin scroll vertical (carrusel deslizante cada 2s)
   - Móvil: Fotos una debajo de otra con scroll natural, botón ☰ al borde derecho
   - Esquema de colores versátil, elegante y universal
   ============================================================ */

:root {
  /* Paleta General, Versátil y Elegante */
  --bg-body: #F8FAFC;            /* Fondo blanco perlado slate-50 */
  --bg-card: #FFFFFF;            /* Fondo blanco puro */
  --text-main: #0F172A;          /* Texto grafito profundo slate-900 */
  --text-muted: #475569;         /* Texto secundario slate-600 */
  --text-light: #94A3B8;         /* Texto tenue slate-400 */
  --primary-color: #0F172A;      /* Color principal neutro premium */
  --primary-hover: #1E293B;      /* Hover slate-800 */
  --accent-gold: #D97706;        /* Toque dorado cálido / ámbar */
  --border-color: #E2E8F0;       /* Borde suave moderno */
  --border-focus: #CBD5E1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BARRA SUPERIOR (HEADER)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logotipo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Enlaces superiores arriba a la derecha */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-btn:hover {
  background: #F1F5F9;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* ============================================================
   CONTENIDO HERO (COMÚN)
   ============================================================ */
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 520px;
}

/* Micro badges de confianza */
.hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.feature-pill-icon {
  font-size: 0.95rem;
}

.hero-actions {
  margin-top: 24px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3E2723;
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(62, 39, 35, 0.25);
  transition: var(--transition);
}

.hero-cta-btn:hover {
  background: #5D4037;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(62, 39, 35, 0.35);
}

/* ============================================================
   CARRUSEL DE ESCRITORIO (SLIDING AUTOMÁTICO CADA 2 SEGUNDOS)
   ============================================================ */
.hero-carousel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
  background: #0B0F17;
  height: clamp(340px, 46vh, 420px);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(15, 23, 42, 0.90) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 26px;
  color: #fff;
  pointer-events: none;
}

.carousel-overlay h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.carousel-overlay p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 20px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--accent-gold);
  width: 34px;
}

/* ============================================================
   TARJETAS FOTOGRÁFICAS PARA MÓVIL (UNA DEBAJO DE OTRA)
   ============================================================ */
.photo-item {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.photo-img-box {
  width: 100%;
  background: #0B0F17;
  overflow: hidden;
}

.photo-img-box img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-caption {
  padding: 18px 20px;
  text-align: left;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
}

.photo-caption h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.photo-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   PIE DE PÁGINA (COMPACTO Y CENTRADO)
   ============================================================ */
.footer {
  height: 52px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.98rem;
}

.footer-divider {
  color: var(--border-color);
}

.footer-copy {
  color: var(--text-muted);
}

/* ============================================================
   NOTIFICACIÓN TOAST (PARA ENLACES PREPARADOS)
   ============================================================ */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   CONFIGURACIÓN ESCRITORIO (min-width: 992px)
   - Encaja al 100% en la primera ventana sin scroll vertical (100vh)
   - Muestra el carrusel a la derecha
   - Oculta la lista vertical móvil
   ============================================================ */
@media (min-width: 992px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .main-content {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0; /* Evita que crezca más allá de la pantalla */
  }

  .hero-section {
    width: 100%;
    padding: 10px 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
  }

  .desktop-carousel-wrapper {
    display: block;
    width: 100%;
  }

  .mobile-photos-stack {
    display: none !important;
  }
}

/* ============================================================
   CONFIGURACIÓN MÓVIL Y TABLETS (max-width: 991px)
   - Desplazamiento vertical natural con fotos una debajo de otra
   - Oculta el carrusel de escritorio
   - Botón de 3 líneas pegado al borde derecho
   ============================================================ */
@media (max-width: 991px) {
  html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .navbar {
    height: 64px;
  }

  .navbar .container {
    max-width: 100%;
    padding: 0 4px 0 16px; /* Logotipo a 16px y botón ☰ pegado al borde derecho */
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 18px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    gap: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 16px;
    font-size: 0.95rem;
    background: #F8FAFC;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 6px;
    font-size: 1.85rem;
    line-height: 1;
  }

  .main-content {
    flex: 1;
    display: block;
  }

  .hero-grid {
    display: block;
    padding: 24px 0 36px;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.3rem);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    justify-content: center;
  }

  .desktop-carousel-wrapper {
    display: none !important;
  }

  .mobile-photos-stack {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  /* Letras centradas debajo de cada imagen solo en móvil */
  .photo-caption {
    text-align: center;
    padding: 16px 20px;
  }

  .photo-caption h4 {
    margin-bottom: 6px;
  }

  .photo-caption p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer {
    margin-top: auto;
  }
}

