/* Paleta basada en la imagen de referencia: Pergamino cálido, Rojo Fuego y Naranja */
:root {
    --bg-pergamino: #f4e8d3;
    --bg-pergamino-card: #fdf8f0;
    --bg-dark-section: #1c130e;
    --color-rojo-fuego: #d32f2f;
    --color-rojo-oscuro: #9a0007;
    --color-naranja-fuego: #ff6f00;
    --texto-blanco: #ffffff;
    --texto-oscuro: #2b1e16;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-pergamino);
    color: var(--texto-oscuro);
    overflow-x: hidden;
}

h1, h2, h3, .brand-title {
    font-family: 'Cinzel', serif;
}

/* Todos los textos en secciones oscuras pasan a ser Blanco Brillante */
.bg-dark, .bg-black, .hero-section, .custom-navbar, .text-muted-custom {
    color: var(--texto-blanco) !important;
}

/* Barra de Navegación */
.custom-navbar {
    background-color: rgba(28, 19, 14, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-rojo-fuego);
}

.brand-title {
    font-weight: 700;
    color: var(--color-naranja-fuego) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--texto-blanco) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-naranja-fuego) !important;
}

/* Sección Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(28, 19, 14, 0.85), rgba(28, 19, 14, 0.85)), 
                url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 4px solid var(--color-rojo-fuego);
}

/* Títulos y Subtítulos en Secciones Oscuras */
.hero-section p, .bg-dark p, .bg-black p, .text-blanco-brillante {
    color: #ffffff !important;
    font-weight: 400;
}

/* Divisor estético */
.divider {
    width: 70px;
    height: 4px;
    background-color: var(--color-rojo-fuego);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Sección Productos (Fondo Pergamino Claro) */
#productos {
    background-color: var(--bg-pergamino);
    color: var(--texto-oscuro);
}

.product-card {
    background-color: var(--bg-pergamino-card);
    border: 2px solid #e0c9a6 !important;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(211, 47, 47, 0.25) !important;
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-card .card-title {
    color: var(--color-rojo-fuego) !important;
    font-weight: 700;
}

.product-card .card-text {
    color: #4a382c !important;
}

/* Botón personalizado de productos */
.btn-fuego-outline {
    border: 2px solid var(--color-rojo-fuego);
    color: var(--color-rojo-fuego);
    font-weight: 600;
}

.btn-fuego-outline:hover {
    background-color: var(--color-rojo-fuego);
    color: var(--texto-blanco);
}

/* Sección Nosotros (Tono Oscuro Cálido) */
.custom-about {
    background-color: var(--bg-dark-section);
    border-top: 3px solid var(--color-rojo-fuego);
    border-bottom: 3px solid var(--color-rojo-fuego);
}

.custom-about p {
    color: var(--texto-blanco) !important;
}

/* Sección Contacto y Ubicación */
#contacto {
    background-color: #120b07;
}

.contact-card {
    background-color: #241710;
    border: 1px solid #422a1d !important;
}

/* Iconos de Redes Sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #382419;
    color: var(--color-naranja-fuego);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid #543727;
}

.social-icon:hover {
    background-color: var(--color-rojo-fuego);
    color: var(--texto-blanco);
    transform: scale(1.1);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Ajuste de altura del mapa para coincidir con la tarjeta de contacto */
.map-responsive iframe {
    width: 100%;
    height: 220px;
    display: block;
}

/* Configuración de la sección Hero con video */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background-color: #120b07;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa oscura semitransparente sobre el video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 11, 7, 0.7); /* Ajusta la opacidad si quieres más o menos brillo */
    z-index: 1;
}

.z-2 {
    z-index: 2;
}