/**
 * Premium Catalogs Page Styles - La Gráfica Tenerife
 * Rediseño 2026 - Glassmorphism & CMYK Accents
 */

/* Forzar fondo oscuro en el contenedor de Astra para esta página */
.page-template-page-catalogos #primary,
.page-template-page-catalogos #main,
.page-template-page-catalogos .site-content {
    background-color: var(--primary-black) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.catalogos-page-content {
    background-color: var(--primary-black);
    color: var(--white);
    min-height: 100vh;
}

/* ============================================
   HERO - Premium Style
   ============================================ */
.catalogos-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalogos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(230, 57, 70, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.catalogos-hero .hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 50px;
    padding: 0.35rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.catalogos-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 1rem;
    line-height: 1.1;
}

.catalogos-hero h1 span {
    color: var(--primary-cyan);
    background: linear-gradient(90deg, var(--primary-cyan), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.catalogos-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   GRID DE CATÁLOGOS
   ============================================ */
.catalogos-grid {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background-color: #121212;
}

.catalogo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.catalogo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.catalogo-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Badges */
.badge-soon, .badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.05em;
}

.badge-new { background: var(--primary-cyan); color: white; }
.badge-soon { background: var(--primary-magenta); color: white; }

/* Thumbnail Area */
.catalogo-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.catalogo-card:hover .thumb-img {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.catalogo-card:hover .thumb-overlay {
    opacity: 1;
}

.thumb-overlay i {
    font-size: 2rem;
    color: white;
}

.thumb-brand {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.catalogo-card:hover .thumb-brand {
    opacity: 1;
    transform: translateY(0);
}

.thumb-overlay i { font-size: 3.5rem; }
.thumb-overlay span { font-weight: 800; font-family: 'Montserrat', sans-serif; }

.thumb-brand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

/* Brands Colors */
.brand-jhk .thumb-overlay i { color: var(--primary-cyan); }
.brand-roly .thumb-overlay i { color: var(--primary-magenta); }
.brand-stamina .thumb-overlay i { color: var(--primary-yellow); }

/* Info Area */
.catalogo-category {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalogo-category .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-cyan);
    display: inline-block;
}

.catalogo-title {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.catalogo-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Actions */
.catalogo-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-catalog-view {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-catalog-view:hover {
    background: var(--white);
    color: var(--primary-black);
}

.btn-catalog-download {
    width: 50px;
    background: var(--primary-cyan);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.btn-catalog-download:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-catalog-disabled {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: not-allowed;
}

/* ============================================
   CTA SECTION
   ============================================ */
.catalogos-cta {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #000;
}

.cta-inner {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-inner h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-actions .btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
    }
    
    .catalogo-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIGHT MODE — Overrides catálogos
   La página es "native dark" — usamos overrides
   solo para el modo claro, igual que el blog.
   ============================================ */
[data-theme="light"] .page-template-page-catalogos #primary,
[data-theme="light"] .page-template-page-catalogos #main,
[data-theme="light"] .page-template-page-catalogos .site-content {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .catalogos-page-content {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* El hero del catálogo siempre tiene fondo oscuro —
   el texto debe ser siempre blanco independientemente del modo */
.catalogos-hero h1,
.catalogos-hero p,
.catalogos-hero .hero-subtitle {
    color: #ffffff !important;
}

[data-theme="light"] .catalogos-hero .hero-badge {
    background: rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.3);
}

[data-theme="light"] .catalogo-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .catalogo-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .catalogo-title {
    color: var(--text-heading);
}

[data-theme="light"] .catalogo-meta {
    color: var(--text-secondary);
}

[data-theme="light"] .catalogos-section {
    background: var(--bg-secondary);
}

[data-theme="light"] .section-header h2,
[data-theme="light"] .section-header p {
    color: var(--text-heading);
}

[data-theme="light"] .catalogos-cta {
    background: var(--bg-tertiary);
}

[data-theme="light"] .cta-inner {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cta-inner h2 {
    color: var(--text-heading);
}

[data-theme="light"] .cta-inner p {
    color: var(--text-secondary);
}

[data-theme="light"] .btn-catalog-disabled {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.25);
}
