/*
Theme Name: Revista Funeraria Pro
Description: Tema personalizado con diseño estructural avanzado, 100% dinámico.
Author: Tu Nombre
Version: 1.2
*/

:root {
    --color-tags: #60a5fa;        /* Azul claro */
    --color-headers: #1a365d;     /* Azul marino */
    --color-categories: #2563eb;  /* Azul brillante */
    --color-menu-footer: #0f172a; /* Azul noche profundo */
    --color-bg: #ffffff;          /* Blanco */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-bg); font-family: var(--font-main); color: #333; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.section-title { color: var(--color-headers); border-bottom: 2px solid var(--color-categories); padding-bottom: 10px; margin: 40px 0 20px; text-transform: uppercase; text-align: center; }

/* Banners */
.ad-banner { margin: 20px 0; border-radius: 8px; overflow: hidden; }
.ad-banner img { width: 100%; }

/* Buscador */
.search-section { background: #eee; padding: 30px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
@media (max-width: 768px) { .search-section { flex-direction: column; text-align: center; } }
.search-form { display: flex; gap: 10px; }
.search-input { padding: 10px 15px; border: 1px solid #ccc; border-radius: 5px; width: 300px; }
.search-submit { background: var(--color-categories); color: #fff; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; }

/* Proveedores Destacados */
.providers-carousel { margin: 40px 0; }
.providers-track { display: flex; gap: 20px; justify-content: center; }
.provider-logo { width: 120px; height: 120px; object-fit: contain; border: 1px solid #eee; padding: 10px; border-radius: 8px; transition: transform 0.3s; }
.provider-logo:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Noticias Funerarias (Flex/Grid Mixto) */
.news-layout { display: flex; gap: 30px; align-items: flex-start; }
@media (max-width: 768px) { .news-layout { flex-direction: column; } }
.news-main-column { flex: 3; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 600px) { .news-main-column { grid-template-columns: 1fr; } }
.news-sidebar-column { flex: 1; }

.small-news-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.small-news-card img { height: 120px; width: 100%; object-fit: cover; }
.small-news-card-body { padding: 10px; }
.small-news-title { font-size: 0.95rem; margin-top: 5px; font-weight: bold; }

/* Entrevistas (Grid Mixto) */
.interviews-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; background: #000; padding: 30px; border-radius: 8px; color: #fff; }
@media (max-width: 768px) { .interviews-layout { grid-template-columns: 1fr; } }
.main-video { width: 100%; height: 100%; object-fit: cover; }
.interviews-list { display: flex; flex-direction: column; gap: 15px; }
.interview-item { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.interview-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.interview-title { font-size: 0.9rem; font-weight: bold; }

/* Categorías y Etiquetas */
.cat-label { background: var(--color-categories); color: #fff; font-size: 0.7rem; padding: 3px 6px; border-radius: 3px; text-transform: uppercase; font-weight: bold; display: inline-block; }
.tag-label { background: var(--color-tags); }

/* Interacciones Modernas */
.news-card, .small-news-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.news-card:hover, .small-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

/* Ajustes para Splide y AOS */
.splide__pagination__page.is-active { background: var(--color-categories); }
/* =========================================
   NUEVO DISEÑO: PORTAL B2B (Basado en mockup)
   ========================================= */

/* Utilidades generales */
.bg-blue { background-color: #0056b3; color: white; }
.bg-dark { background-color: #1a1a1a; color: white; }
.text-center { text-align: center; }
.section-spacing { margin-top: 40px; margin-bottom: 40px; }

/* Títulos de sección con separador (El rombo con líneas) */
.portal-title {
    text-align: center;
    color: #004085;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.title-separator::before, .title-separator::after {
    content: "";
    height: 2px;
    background-color: #004085;
    width: 100px;
    display: inline-block;
}
.title-separator i {
    color: #004085;
    margin: 0 15px;
    font-size: 1.2rem;
    transform: rotate(45deg);
    display: inline-block;
    width: 12px; height: 12px;
    background: #004085;
}

/* Barra CTA Boletín */
.cta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.btn-cyan {
    background-color: #00bcd4;
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 1rem;
    transition: 0.3s;
}
.btn-cyan:hover { background-color: #0097a7; transform: scale(1.05); }

/* Búsqueda y Directorio (Split 50/50) */
.search-split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.search-box { background: #555; padding: 40px; border-radius: 10px; color: white; text-align: center;}
.search-box input[type="text"] { width: 80%; padding: 12px; border: none; border-radius: 20px; margin-top: 15px; }
.search-box button { background: #ffeb3b; border: none; padding: 12px; border-radius: 50%; cursor: pointer; margin-left: -40px;}

/* Proveedores Destacados (Logos) */
.providers-grid { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.provider-card { width: 18%; text-align: center; }
.provider-card img { border: 1px solid #ddd; border-radius: 8px; padding: 10px; height: 100px; object-fit: contain; width: 100%; background: white;}
.btn-info-blue { display: inline-block; background: #0056b3; color: white; padding: 4px 15px; font-size: 0.8rem; margin-top: -15px; position: relative; border-radius: 3px; }

/* Noticias + Publicidad Lateral */
.news-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; }
.news-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-compact-item { display: flex; gap: 15px; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; padding: 10px;}
.news-compact-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; }
.news-compact-title { font-size: 0.85rem; font-weight: bold; color: #333; line-height: 1.3; }

/* Entrevistas (Sección Oscura) */
.interviews-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; padding: 40px; border-radius: 10px; }
.interview-main img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; }
.interview-list { display: flex; flex-direction: column; gap: 15px; }
.interview-item { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #444; padding-bottom: 10px;}
.interview-item img { width: 100px; height: 65px; object-fit: cover; border-radius: 4px; }
.interview-title { color: white; font-size: 0.9rem; line-height: 1.2; }

@media (max-width: 768px) {
    .search-split-section, .news-layout, .news-compact-grid, .interviews-layout { grid-template-columns: 1fr; }
    .provider-card { width: 45%; }
}