/* =========================================
   1. CONFIGURACIÓN BASE (IGUAL AL BLOG)
   ========================================= */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-top: 80px; /* Espacio para navbar fijo */
    
    /* FONDO GRADIENTE RADIAL (Exacto al blog) */
    background: radial-gradient(circle at 10% 20%, #3838f1 0%, #383864 30%, #5a3b8c 55%, #7b2f7a 70%, #c92f51 100%);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
}

/* =========================================
   2. NAVBAR (COPIA EXACTA DEL BLOG)
   ========================================= */
.navbar.fixed-top {
    z-index: 1050;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
}

a.nav-link {
    color: #fff !important;
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding-left: 15px;
    padding-right: 15px;
}
a.nav-link:hover { opacity: 0.8; }

.row.g-0 { min-height: 100vh; }
.col-md-8, .col-md-4 { height: 100vh; }
.object-fit-cover { object-fit: cover; }
.image-right-lower { margin-top: 3rem; }

/* Utiles */
.object-fit-cover { object-fit: cover; }

/* =========================================
   3. HERO SECTION (PORTADA HOME)
   ========================================= */
/* Contenedor Hero */
.hero-section {
    position: relative;
    /* Restamos los 80px del navbar para que quede centrado visualmente */
    min-height: calc(100vh - 80px); 
    display: flex;
    align-items: center;
    padding-bottom: 3rem;
}

/* Imagen Proteínas (Fondo mezclado) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/proteinas.png') no-repeat center center;
    background-size: cover;
    opacity: 0.4; /* Ajusta esto si quieres ver más/menos proteínas */
    mix-blend-mode: overlay; 
    z-index: -1;
}

/* Texto Izquierda */
.hero-title {
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 5rem); 
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(38, 23, 90, 0.8);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Imagen Reyes Derecha */
.hero-img-right {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Botones */
.btn-hero {
    background: linear-gradient(45deg, #c92f51, #7b2f7a);
    border: none;
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(201, 47, 81, 0.6);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 2rem;
    }
    .hero-img-right {
        margin-top: 3rem;
        max-height: 400px;
    }
}

/* =========================================
   4. FOOTER (COPIA EXACTA DEL BLOG)
   ========================================= */
.footer-modern {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    padding-bottom: 2rem;
    color: #fff;
    margin-top: auto;
}

.footer-modern h5 { font-weight: 600; letter-spacing: 0.5px; color: #fff; }
.footer-modern .text-muted { color: #adb5bd !important; }
.footer-modern .footer-link { color: #adb5bd; text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-modern .footer-link:hover { color: #fff; transform: translateX(4px); }

.footer-modern .form-control, .footer-modern .form-control-sm {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.footer-modern .form-control::placeholder { color: #adb5bd; }
.footer-modern .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: none;
}
.footer-bottom-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; margin-top: 2rem; }
.footer-social-icons a { color: #adb5bd; font-size: 1.2rem; transition: all 0.3s ease; }
.footer-social-icons a:hover { color: #fff; transform: translateY(-3px); }
/* =========================================
   9. BANNER DE COOKIES (GLASS STYLE)
   ========================================= */
.cookie-banner-glass {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(15, 15, 20, 0.85); /* Fondo oscuro translúcido */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* Por encima de todo */
    
    /* Oculto por defecto hasta que cargue JS */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cookie-banner-glass.show {
    display: block;
    opacity: 1;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.cookie-text a {
    color: #c92f51;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.cookie-text a:hover {
    border-bottom-color: #c92f51;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Botón Aceptar (Estilo vibrante) */
.btn-cookie-accept {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5);
}

/* Botón Rechazar (Estilo sutil) */
.btn-cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner-glass {
        bottom: 10px;
        width: 95%;
        padding: 20px;
    }
}