/* === Estilos generales === */
body {
  font-family: 'Merriweather', serif;
  background-color: #faf6f2;
  color: #4a3f35;
  padding-top: 70px;
}

/* Título principal */
.hero-section .section-title {
  font-weight: 800; /* Negritas fuertes */
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Subtítulo */
.hero-section p.lead {
  font-weight: 700; /* Negritas */
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* Marca y logo */
.navbar-brand {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #e5d4b8 !important;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.logo-redondo {
  width: 60px;   /* nuevo ancho */
  height: 60px;  /* nueva altura */
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 10px rgba(229, 212, 184, 0.7);
  object-fit: cover;
}

/* === Navbar === */
.custom-navbar {
  background-color: #fffaf6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-redondo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #4a3f35;
}

.nav-link {
  color: #4a3f35;
  transition: 0.3s;
  border-radius: 8px;
  padding: 8px 14px;
}


/* === Hero === */
header#inicio {
  position: relative;
  background: url('img/fondollueve.jpg') center center / cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f3e9d2;
  padding: 0 2rem;
}
header#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(130, 106, 81, 0.523);
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.btn-hero {
  background-color: #b2744c;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn-hero:hover {
  background-color: #6f492f;
  transform: translateY(-1px);
}

/* === Secciones === */
.section-title {
  font-family: 'Merriweather', serif;
  color: #4a3f35;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #b2744c;
  display: block;
  margin: 10px auto;
  border-radius: 5px;
}

/* === Combos / tarjetas === */
.combo-card {
  max-width: 400px;
  border-radius: 15px;
  background-color: #fffaf6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.price-text {
  font-size: 1.5rem;
  color: #b2744c;
  font-weight: 700;
}

/* Contacto */
#contacto .col-md-4 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente todo el contenido dentro de la columna */
  align-items: center;    /* centra horizontalmente (opcional) */
  text-align: center;     /* asegura que textos estén centrados */
  height: 100%;
}

#contacto h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #4b3926;
}

#contacto a {
  color: #6f5e40;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#contacto a:hover {
  color: #d2b48c;
  text-decoration: underline;
}

#contacto i {
  font-size: 1.3rem;
  vertical-align: middle;
  margin-right: 8px;
}

/* === Footer === */
.footer-custom {
  background-color: #4a3f35;
  color: #fff;
}

.footer-link {
  color: #e6c7a2;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* =========================================
   === SECCIÓN RESPONSIVA UNIFICADA ===
   ========================================= */

/* 🔥 1. AJUSTES GENERALES DE LA PÁGINA (Móviles estándar < 768px) */
@media (max-width: 768px) {
    /* Ajuste del Hero */
    header#inicio {
        height: 60vh; /* Altura más baja en móvil */
        padding: 0 1rem;
    }

    .hero-section .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-section p.lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Navbar y Logo */
    .logo-redondo {
        width: 45px;
        height: 45px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    /* Títulos y Combos */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .combo-card {
        max-width: 100%; /* Las tarjetas se adaptan al ancho */
        margin-bottom: 20px;
    }

    /* Contacto */
    #contacto .col-md-4 {
        margin-bottom: 30px;
        padding: 15px;
    }

    /* Padding General */
    body {
        padding-top: 60px;
    }
}

/* =================================================
   ESTILOS DEFINITIVOS POPUP LLUEVE CAFÉ
   ================================================= */

/* 1. Fondo del Popup (Overlay) */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex !important; /* Forzado para centrar */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 15px;
    pointer-events: auto;
}

/* 2. Recuadro Blanco (Contenido) */
.promo-content {
    background: #ffffff;
    padding: 20px;
    width: 92%;
    max-width: 380px;
    border-radius: 15px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #e5d4b8;
    text-align: center;
    margin: 0 auto;
    pointer-events: auto; /* Asegura que reciba clics */
}

/* 3. BOTÓN DE CERRAR (Prioridad Máxima) */
.cerrar-popup {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 35px !important;
    height: 35px !important;
    background-color: #fdf8f3 !important;
    color: #b2744c !important;
    border: 1px solid #e5d4b8 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 10001 !important; /* Por encima de todo */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    line-height: 1 !important;
    pointer-events: auto !important; /* CLAVE: Permite el clic */
    transition: 0.3s;
}

.cerrar-popup:hover {
    background-color: #b2744c !important;
    color: #ffffff !important;
}

/* 4. Título con espacio para el botón */
.titulo-popup {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #b2744c;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0 40px !important; /* Espacio de seguridad para la X */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    pointer-events: none; /* El título NO captura clics, los deja pasar al botón */
}

/* 5. Tarjetas de Promoción y Combos */
.promo-item {
    background: #fdf8f3;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-top: 4px solid #b2744c;
    text-align: center;
}

.promo-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #4a3f35;
    margin-bottom: 5px;
}

.combo-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    justify-content: space-between;
}

.combo-item strong {
    color: #b2744c;
    font-size: 0.95rem;
}

.price-text {
    color: #b2744c;
    font-weight: 800;
    font-size: 1.1rem !important;
    margin-top: 5px;
    display: block;
}

/* 6. Ajustes para pantallas mini (< 300px) */
@media (max-width: 300px) {
    .promo-content { padding: 10px; }
    .titulo-popup { font-size: 1rem; }
    .cerrar-popup { width: 30px; height: 30px; font-size: 16px; }
}