/* ============================================================
   1. VARIABLES MAESTRAS Y BASE
   ============================================================ */
:root {
    --cb-dark: #111827;           
    --cb-gold: #B0894C;           
    --cb-gold-alt: #B89B65;
    --cb-cream: #F9F5F0;
    --cb-cream-border: #E5D5B5;
    --cb-text-light: #f3f4f6;     
    --shadow-premium: 0 10px 30px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Textura de ruido sutil para toda la web */
body::before {
    content: ""; position: fixed; inset: 0;
    background-image: url('/admin/uploads/menu/noise.png');
    opacity: 0.02; pointer-events: none; z-index: 9999;
}

body { 
    background-color: var(--cb-cream); 
    color: var(--cb-dark); 
    font-family: 'Montserrat', sans-serif; 
}

/* ============================================================
   2. HERO (PORTADA) - EFECTO PIRÁMIDE COMPACTO
   ============================================================ */
#hero-text-block p {
    line-height: 0.9 !important; 
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-word {
    color: var(--cb-gold) !important;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important; 
}

/* Tamaños para PC */
#word-salud { font-size: 1.2rem; letter-spacing: 12px; margin-bottom: 5px; }
#word-caracter { font-size: 2rem; letter-spacing: 6px; margin-bottom: 5px; }
#word-excelencia { font-size: 3rem; letter-spacing: 1px; }

#pyramid-line {
    background-color: var(--cb-gold) !important;
    height: 3px !important;
    width: 0px; /* Se anima por JS */
    margin: 10px auto 0 !important;
}

/* Tamaños para MÓVIL */
@media (max-width: 768px) {
    #word-salud { font-size: 0.9rem; letter-spacing: 8px; margin-bottom: 3px; }
    #word-caracter { font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 3px; }
    #word-excelencia { font-size: 2.1rem; letter-spacing: 0px; }
    
    #pyramid-line {
        height: 2px !important;
        margin: 8px auto 0 !important;
    }
}

/* ============================================================
   3. CABECERAS DE PÁGINAS INTERNAS (INFO, CUIDADOS, RESEÑAS)
   ============================================================ */
.page-header { 
    padding-top: 140px; 
    padding-bottom: 2rem; 
    background-color: transparent; 
    text-align: center;
}

.cb-page-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--cb-dark);
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 2px;
}

.cb-page-divider {
    height: 3px;
    width: 120px;
    background-color: var(--cb-gold);
    margin: 15px auto 0;
}

/* ============================================================
   4. TARJETAS PREMIUM (AFIJOS, SALUD, FILOSOFÍA Y CUIDADOS)
   ============================================================ */
.cb-card-elite {
    background: white !important;
    border: 1px solid var(--cb-cream-border) !important;
    border-radius: 20px !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: var(--shadow-premium) !important;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.cb-card-elite:hover { 
    transform: translateY(-5px); 
    border-color: var(--cb-gold) !important; 
    box-shadow: 0 20px 40px rgba(176, 137, 76, 0.15) !important;
}

.cb-card-elite img { 
    height: 70px; 
    width: auto; 
    margin-bottom: 1.5rem; 
    object-fit: contain; 
}

.cb-card-elite h4 {
    color: var(--cb-dark) !important;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700 !important;
}

.cb-card-elite p {
    color: var(--cb-dark) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.cb-card-elite div, 
.cb-badge-elite, 
.cb-badge-afijo {
    color: var(--cb-dark) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-top: 1.2rem !important;
    opacity: 1 !important;
    text-transform: uppercase;
}

/* ============================================================
   5. GALERÍA DE ARTÍCULOS (CUIDADOS E INFO)
   ============================================================ */
.galeria-wrapper { background-color: transparent; width: 100%; }

.galeria-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* Centra las tarjetas cuando son pocas */
    gap: 2.5rem; 
    padding: 4rem 1.5rem 6rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.gato-card { 
    position: relative; display: block; overflow: hidden;
    border-radius: 20px; aspect-ratio: 4/3; text-decoration: none;
    background-color: #ffffff; 
    border: 1px solid var(--cb-cream-border);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s ease;
    flex: 1 1 350px; 
    max-width: 500px; /* Límite para que no se deformen */
}

.gato-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--cb-gold); 
    box-shadow: 0 20px 40px rgba(176, 137, 76, 0.15); 
}

.gato-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gato-card:hover .gato-card__image { transform: scale(1.05); }

.gato-card__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 4rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.4) 60%, transparent 100%);
    color: white; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end;
}

.gato-card__name { 
    font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; 
    line-height: 1.2; margin: 0 0 0.5rem 0; color: #ffffff; text-transform: uppercase;
}
.gato-card__details { 
    font-size: 0.85rem; margin: 0; text-transform: uppercase; 
    font-weight: 700; letter-spacing: 1px; color: var(--cb-gold);
}

/* ============================================================
   6. SECCIÓN DE RESEÑAS Y FORMULARIO DE INVITACIÓN
   ============================================================ */
.reviews-container {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem;
}

.review-card {
    background: white; border: 1px solid var(--cb-cream-border); border-radius: 20px;
    box-shadow: var(--shadow-premium); overflow: hidden; transition: all 0.4s ease;
    display: flex; flex-direction: column; flex: 1 1 450px; max-width: 600px;
}
.review-card:hover {
    transform: translateY(-5px); border-color: var(--cb-gold);
    box-shadow: 0 20px 40px rgba(176, 137, 76, 0.15);
}

.stars { color: var(--cb-gold); letter-spacing: 2px; font-size: 1.1rem;}

.editorial-quote { position: relative; padding: 0 1.5rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.editorial-quote::before {
    content: "“"; position: absolute; top: -15px; left: -5px;
    font-family: 'Cormorant Garamond', serif; font-size: 4rem; line-height: 1;
    color: var(--cb-gold); opacity: 0.4;
}
.editorial-quote::after {
    content: "”"; position: absolute; bottom: -35px; right: 0;
    font-family: 'Cormorant Garamond', serif; font-size: 4rem; line-height: 1;
    color: var(--cb-gold); opacity: 0.4;
}

.request-form-section {
    background-color: #fff; border: 1px solid var(--cb-cream-border);
    border-radius: 20px; box-shadow: var(--shadow-premium); padding: 3rem;
}

.form-input {
    width: 100%; padding: 1rem 1.2rem; border: 1px solid #e2e8f0;
    border-radius: 10px; font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; color: var(--cb-dark); background-color: #f8fafc; transition: all 0.3s ease;
}
.form-input:focus {
    outline: none; border-color: var(--cb-gold); background-color: white;
    box-shadow: 0 0 0 4px rgba(176, 137, 76, 0.1);
}

.btn-premium {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 3rem; background-color: var(--cb-dark); color: white;
    font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; border-radius: 50px;
    transition: all 0.4s ease; cursor: pointer; border: none;
}
.btn-premium:hover {
    background-color: var(--cb-gold); transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(176, 137, 76, 0.3);
}

/* ============================================================
   7. EXTRAS (FILOSOFÍA, LAZY LOAD Y OTROS AJUSTES)
   ============================================================ */
.seo-dark-bg-icon { display: none !important; } 
.seo-dark-section { background-color: var(--cb-dark) !important; border-radius: 20px; }

.cb-glass-box {
    background: rgba(255, 255, 255, 0.05) !important; backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important; padding: 2.5rem !important; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.seo-dark-list li {
    display: flex !important; align-items: flex-start !important; gap: 12px !important;
    margin-bottom: 15px !important; color: var(--cb-text-light) !important; text-align: left !important;
}
.seo-dark-list svg {
    flex-shrink: 0 !important; width: 18px !important; height: 18px !important;
    color: var(--cb-gold) !important; margin-top: 4px;
}
.seo-list-text { color: var(--cb-text-light) !important; font-weight: 400 !important; }

.preview-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 30%, transparent 45%) !important;
}

.antispam { display: none !important; opacity: 0; position: absolute; left: -9999px; }

.youtube-lazy-load {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 0.75rem; background-size: cover; background-position: center;
    cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.youtube-lazy-load .play-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; background: none; border: none; padding: 0; cursor: pointer; z-index: 10;
}
.youtube-lazy-load .play-button-bg { fill: #212121; fill-opacity: 0.8; transition: fill 0.2s; }
.youtube-lazy-load:hover .play-button-bg { fill: #f00; }
/* ============================================================
   8. PÁGINA DE ERROR 404 (CENTRADO ABSOLUTO ÉLITE)
   ============================================================ */
.error-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centra elementos horizontalmente */
    justify-content: center;   /* Centra contenido verticalmente */
    padding: 160px 1.5rem 80px;
    text-align: center;        /* Centra el texto interno */
    width: 100%;
    max-width: 1000px;         /* Evita que el texto se estire demasiado */
    margin: 0 auto;            /* Centra el contenedor en la pantalla */
}

.error-illustration {
    width: 100%;
    max-width: 350px;          /* Un poco más pequeño para mejor equilibrio */
    margin-bottom: 1.5rem;
}

/* Forzar centrado del título y el separador en la 404 */
.error-main-container .cb-page-title {
    text-align: center !important;
    width: 100%;
}

.error-main-container .cb-page-divider {
    margin: 15px auto 2rem !important; /* Centrado forzado */
}

/* Caja del contador */
.error-countdown-box {
    margin: 1rem 0 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cb-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Descripción inferior */
.error-text-detail {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 600px;
    margin: 2.5rem auto 0;
    font-weight: 500;
}