/*
Theme Name: ICC Tema
Theme URI: https://cultura.chaco.gob.ar
Author: Área de Informática - Instituto de Cultura del Chaco
Author URI: https://cultura.chaco.gob.ar
Description: Tema oficial del Instituto de Cultura del Chaco para sus espacios culturales y museos.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icc-tema
Tags: cultura, chaco, museos, gobierno
*/

/* ============================================
   FUENTES ICC — TODAS LOCALES, SIN GOOGLE FONTS
   ============================================ */

/* Tx Manrope Regular — fuente oficial del ICC */
@font-face {
    font-family: 'Tx Manrope Regular';
    src: url('assets/fonts/TxManropeRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Manrope — fuente alternativa/fallback */
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* Montserrat — disponible para títulos destacados */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* Cormorant Garamond — para citas y textos especiales */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/CormorantGaramond-Italic.ttf') format('truetype');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/CormorantGaramond-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}


/* ============================================
   VARIABLES GLOBALES ICC
   ============================================ */
:root {
    /* Paleta institucional */
    --color-primary:    #802779;
    --color-secondary:  #4471a5;
    --color-accent:     #f26df9;
    --color-background: #ffffff;
    --color-text:       #333333;
    --color-text-light: #666666;
    --color-white:      #ffffff;
    --color-menu-hover: #cccccc;
    --color-border:     #e0e0e0;

    /* Header y menú */
    --icc-header-height: 80px;
    --icc-menu-height:   48px;

    /* Tipografía */
    --icc-font: 'Tx Manrope Regular', 'Manrope', sans-serif;
    --icc-font-title: 'Montserrat', 'Manrope', sans-serif;
    --icc-font-serif: 'Cormorant Garamond', Georgia, serif;

    /* Escala tipográfica base (frontpage / 100%) */
    --font-size-base:   16px;
    --font-size-sm:     0.875rem;   /* 14px */
    --font-size-xs:     0.8125rem;  /* 13px */
    --font-size-h1:     2.25rem;    /* 36px */
    --font-size-h2:     1.75rem;    /* 28px */
    --font-size-h3:     1.375rem;   /* 22px */
    --font-size-h4:     1.125rem;   /* 18px */
    --font-size-h5:     1rem;       /* 16px */
    --font-size-h6:     0.875rem;   /* 14px */
}

/* Escala tipográfica artículos (75%) */
.single,
.page:not(.home) {
    --font-size-base:   14px;       /* 16 * 0.875 ≈ artículo */
    --font-size-sm:     0.8125rem;
    --font-size-xs:     0.75rem;
    --font-size-h1:     1.875rem;   /* 36 * 0.75 = 27px */
    --font-size-h2:     1.5rem;     /* 28 * 0.75 = 21px */
    --font-size-h3:     1.125rem;   /* 22 * 0.75 ≈ 18px */
    --font-size-h4:     1rem;       /* 18 * 0.75 ≈ 13px */
    --font-size-h5:     0.875rem;
    --font-size-h6:     0.8125rem;
}

/* ============================================
   RESET Y BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--icc-font);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
a:hover { color: var(--color-secondary); }
ul { list-style: none; }

/* ============================================
   TIPOGRAFÍA — HEADINGS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--icc-font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 0.75em;
}

h1 { font-size: var(--font-size-h1); text-transform: uppercase; letter-spacing: 0.5px; }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); color: var(--color-text-light); }

/* Párrafos */
p {
    font-size: var(--font-size-base);
    color: var(--color-text);
    margin-bottom: 1.2em;
    line-height: 1.75;
}

/* Texto pequeño / metadatos */
.icc-meta,
.icc-date,
.icc-category {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* Categorías con color primario */
.icc-category a,
.cat-links a,
.entry-category a {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icc-category a:hover,
.cat-links a:hover {
    color: var(--color-secondary);
}

/* ============================================
   CONTENIDO DE ARTÍCULOS
   ============================================ */
.entry-content,
.icc-article-content {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.8;
    max-width: 800px;
}

.entry-content h1 { font-size: var(--font-size-h1); }
.entry-content h2 { font-size: var(--font-size-h2); }
.entry-content h3 { font-size: var(--font-size-h3); }
.entry-content h4 { font-size: var(--font-size-h4); }

.entry-content p { margin-bottom: 1.4em; }

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--color-secondary); }

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #fdf5fc;
    font-style: italic;
    color: var(--color-text-light);
}

.entry-content strong { color: var(--color-text); }

/* Título de la entrada */
.entry-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* ============================================
   TARJETAS DE NOTICIAS / POSTS
   ============================================ */
.icc-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.icc-card:hover {
    box-shadow: 0 8px 24px rgba(128,39,121,0.12);
    transform: translateY(-2px);
}

.icc-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.icc-card-body {
    padding: 16px;
}

.icc-card-body .icc-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icc-card-body .icc-category {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.icc-card-body h3 {
    font-size: var(--font-size-h4);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.3;
}

/* ============================================
   LÍNEA AZUL SUPERIOR
   ============================================ */
#icc-topbar {
    width: 100%;
    height: 5px;
    background-color: var(--color-secondary);
    display: block;
}

/* ============================================
   HEADER — BARRA BLANCA
   ============================================ */
#icc-header {
    width: 100%;
    background-color: var(--color-white);
    height: var(--icc-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    z-index: 100;
}

/* Logo principal del espacio */
#icc-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

#icc-logo img {
    height: 55px;
    width: auto;
}

#icc-logo .site-name {
    font-family: var(--icc-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logos institucionales — contenedor izquierdo */
#icc-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

/* Logo Gobierno del Chaco — ~75% del header */
#icc-logo-gobierno img {
    height: 42px;
    width: auto;
}

/* Logo ICC — mismo alto que Gobierno */
#icc-logo-icc img {
    height: 42px;
    width: auto;
}

/* Divisor vertical entre logos institucionales y logo del espacio */
.icc-logo-divisor {
    display: block;
    width: 1px;
    height: 36px;
    background-color: #d0d0d0;
    margin: 0 4px;
}

/* Logo del espacio cultural */
#icc-logo-espacio {
    display: flex;
    align-items: center;
    gap: 10px;
}

#icc-logo-espacio img,
#icc-logo-espacio .custom-logo {
    height: 50px;
    width: auto;
}

#icc-logo-espacio .site-name {
    font-family: var(--icc-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Redes sociales */
#icc-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

#icc-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
}

#icc-social a:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

#icc-social a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ============================================
   NAVEGACIÓN — BARRA VIOLETA
   ============================================ */
#icc-navbar {
    width: 100%;
    background-color: var(--color-primary);
    min-height: var(--icc-menu-height);
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: relative;
    z-index: 99;
}

#icc-navbar .icc-nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Menú generado por wp_nav_menu */
#icc-navbar #icc-primary-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#icc-navbar #icc-primary-menu > li > a {
    display: block;
    padding: 0 18px;
    height: var(--icc-menu-height);
    line-height: var(--icc-menu-height);
    color: var(--color-white);
    font-family: var(--icc-font);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

#icc-navbar #icc-primary-menu > li > a:hover,
#icc-navbar #icc-primary-menu > li.current-menu-item > a,
#icc-navbar #icc-primary-menu > li.current_page_item > a,
#icc-navbar #icc-primary-menu > li.current-menu-ancestor > a {
    color: var(--color-menu-hover);
    background-color: rgba(0,0,0,0.12);
}

/* Submenús */
#icc-navbar #icc-primary-menu li {
    position: relative;
}

#icc-navbar #icc-primary-menu li ul {
    display: none;
    position: absolute;
    top: var(--icc-menu-height);
    left: 0;
    background-color: #6a1f63;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 200;
    flex-direction: column;
}

#icc-navbar #icc-primary-menu li:hover > ul {
    display: flex;
}

#icc-navbar #icc-primary-menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-white);
    font-family: var(--icc-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
}

#icc-navbar #icc-primary-menu li ul li a:hover {
    background-color: rgba(0,0,0,0.15);
    color: var(--color-menu-hover);
}

/* Botón hamburger mobile */
#icc-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    background: none;
    border: none;
}

#icc-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
#icc-content {
    width: 100%;
    min-height: 60vh;
}

/* Ocultar título de página cuando hay Elementor */
.icc-hide-title .entry-title,
.icc-hide-title .page-title {
    display: none !important;
}

/* ============================================
   TIPOGRAFÍA GLOBAL
   ============================================ */

/* Cuerpo de texto */
body, p, li, td, th, input, textarea, select {
    font-family: var(--icc-font);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.75;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--icc-font);
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2rem;    font-weight: 700; }
h2 { font-size: 1.6rem;  font-weight: 700; }
h3 { font-size: 1.3rem;  font-weight: 700; }
h4 { font-size: 1.1rem;  font-weight: 700; }
h5 { font-size: 1rem;    font-weight: 700; }
h6 { font-size: 0.9rem;  font-weight: 700; }

/* Títulos de artículos/entradas */
.entry-title,
.page-title,
h1.entry-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.25;
}

/* Título de página de sección (ej: "Museos y Espacios...") */
.page-header .page-title,
.archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Párrafos */
p {
    margin-bottom: 1.1em;
}

/* Texto en itálica (firma, citas) */
em, i {
    font-style: italic;
    color: var(--color-text);
}

/* Texto en negrita */
strong, b {
    font-weight: 700;
    color: var(--color-text);
}

/* ============================================
   TARJETAS DE ARTÍCULOS / NOTICIAS
   ============================================ */

/* Fecha */
.icc-card-date,
.entry-date,
.posted-on {
    font-size: 0.82rem;
    color: #555;
    display: block;
    margin-bottom: 4px;
}

/* Categoría */
.icc-card-category,
.cat-links a,
.entry-category {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-bottom: 6px;
}

/* Título de tarjeta */
.icc-card-title,
.entry-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: 0.2px;
    line-height: 1.35;
}

/* ============================================
   CONTENIDO DE ARTÍCULO
   ============================================ */
.entry-content,
.post-content,
.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 860px;
}

.entry-content p,
.post-content p {
    margin-bottom: 1.25em;
}

.entry-content h2,
.post-content h2 {
    font-size: 1.4rem;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--color-primary);
}

.entry-content h3,
.post-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    color: var(--color-text);
}

.entry-content a,
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content a:hover,
.post-content a:hover {
    color: var(--color-secondary);
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    margin: 1em 0 1em 1.5em;
    line-height: 1.8;
}

.entry-content blockquote,
.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #f9f0f8;
    color: #444;
    font-style: italic;
}

/* ============================================
   FOOTER — TIPOGRAFÍA
   ============================================ */
#icc-footer,
#icc-footer p,
#icc-footer li,
#icc-footer a,
#icc-footer h4,
#icc-footer span {
    font-family: var(--icc-font);
}

.icc-footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.icc-footer-espacio .icc-footer-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.icc-footer-espacio p {
    font-size: 0.83rem;
    line-height: 1.65;
}

.icc-footer-creditos {
    font-size: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
#icc-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 30px 20px;
}

.icc-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Columna 1: Logo e info del espacio */
.icc-footer-espacio img {
    max-height: 65px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.icc-footer-espacio p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.7;
    font-family: var(--icc-font);
}

.icc-footer-espacio .icc-footer-nombre {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    opacity: 1;
}

/* Columna 2: Menú footer */
.icc-footer-links h4 {
    font-family: var(--icc-font);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.icc-footer-links ul li {
    margin-bottom: 8px;
}

.icc-footer-links ul li a {
    color: var(--color-white);
    font-family: var(--icc-font);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.icc-footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* Columna 3: Logos institucionales */
.icc-footer-institucional {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    justify-content: center;
}

.icc-footer-institucional img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.icc-footer-institucional img:hover {
    opacity: 1;
}

/* Créditos */
.icc-footer-creditos {
    max-width: 1280px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--icc-font);
    font-size: 0.78rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 8px;
}

.icc-footer-creditos a {
    color: var(--color-white);
    opacity: 0.9;
    transition: color 0.2s ease;
}

.icc-footer-creditos a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    #icc-navbar #icc-primary-menu > li > a {
        padding: 0 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    /* HEADER mobile */
    #icc-header {
        padding: 0 16px;
        height: 65px;
    }

    /* En mobile: ocultar logo ICC y logo del espacio, solo Gobierno */
    #icc-logo-icc,
    #icc-logo-espacio {
        display: none !important;
    }

    #icc-logo-gobierno img { height: 36px; }

    /* Ocultar íconos de redes en mobile — igual que el ICC */
    #icc-social {
        display: none !important;
    }

    /* NAVBAR mobile */
    #icc-navbar {
        padding: 0 16px;
        flex-wrap: wrap;
        min-height: var(--icc-menu-height);
        align-items: stretch;
    }

    #icc-navbar .icc-nav-inner {
        flex-wrap: wrap;
        align-items: center;
        min-height: var(--icc-menu-height);
    }

    /* Hamburger visible */
    #icc-menu-toggle {
        display: flex;
        margin-left: auto;
        align-self: center;
    }

    /* Menú oculto por defecto en mobile */
    #icc-navbar #icc-primary-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding: 4px 0 8px;
        list-style: none !important;
    }

    /* Menú visible cuando está activo */
    #icc-navbar #icc-primary-menu.active {
        display: flex !important;
    }

    /* Ítems del menú mobile */
    #icc-navbar #icc-primary-menu > li {
        width: 100%;
    }

    #icc-navbar #icc-primary-menu > li > a {
        height: auto;
        line-height: 1.4;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: block;
        list-style: none !important;
    }

    /* Submenús mobile */
    #icc-navbar #icc-primary-menu li ul {
        position: static;
        box-shadow: none;
        padding-left: 16px;
        background: rgba(0,0,0,0.15);
    }

    #icc-navbar #icc-primary-menu li:hover > ul {
        display: flex;
    }

    /* Footer mobile */
    .icc-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .icc-footer-institucional {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .icc-footer-creditos {
        flex-direction: column;
        text-align: center;
    }

    #icc-footer-logos {
        gap: 20px;
        padding: 24px 16px;
    }

    #icc-footer-logos img { max-height: 40px; }
}

/* ============================================
   TARJETAS DE NOTICIAS — IMAGEN INSTITUCIONAL ICC
   ============================================ */

.icc-card {
    background: #ffffff;
    border-radius: 16px 0 16px 0;
    border: 1.5px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Línea superior con degradé institucional */
.icc-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    flex-shrink: 0;
}

.icc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(128, 39, 121, 0.15);
}

.icc-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.icc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.icc-card:hover .icc-card-image img {
    transform: scale(1.04);
}

.icc-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.icc-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.icc-card-date {
    font-size: 0.78rem;
    color: #777;
}

.icc-card-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.icc-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 10px;
    flex-grow: 1;
}

.icc-card-link {
    display: inline-block;
    margin-top: auto;
    padding: 7px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.2s ease;
}

.icc-card-link:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.03);
}

/* Grilla de tarjetas */
.icc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 30px 0;
}

@media (max-width: 900px) {
    .icc-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .icc-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SEPARADOR DE SECCIÓN — IMAGEN INSTITUCIONAL
   ============================================ */
.icc-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.icc-section-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 100%;
    min-height: 28px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    flex-shrink: 0;
}

.icc-section-title h2,
.icc-section-title span {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: 0.3px;
    margin: 0;
}

/* Separador de línea con degradé */
.icc-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), transparent);
    border: none;
    margin: 32px 0;
}

/* ============================================
   GRILLA DE ESPACIOS CULTURALES
   ============================================ */
.icc-espacios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.icc-espacio-card {
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.icc-espacio-card img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: none;
    transition: filter 0.25s ease;
}

.icc-espacio-card:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.icc-espacio-card:hover img {
    filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
    .icc-espacios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .icc-espacios-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================
   BOTONES GLOBALES — IMAGEN INSTITUCIONAL
   ============================================ */
.icc-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 10px 28px;
    background: var(--color-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 25px;
    font-family: var(--icc-font);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    text-decoration: none;
}

.icc-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--color-accent);
    color: #ffffff !important;
    transform: scale(1.03);
}

.icc-btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary) !important;
}

.icc-btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff !important;
}

/* ============================================
   FOOTER — DOS ZONAS IMAGEN INSTITUCIONAL
   ============================================ */

/* Zona 1: Fondo blanco con logos grandes */
#icc-footer-logos {
    background: #ffffff;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    border-top: 3px solid #f0f0f0;
}

#icc-footer-logos img {
    max-height: 60px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

#icc-footer-logos img:hover {
    opacity: 1;
}

/* Zona 2: Fondo violeta con info */
#icc-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 40px 30px 20px;
}

.icc-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Títulos de columna footer */
.icc-footer-col-title {
    font-family: var(--icc-font);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    opacity: 0.9;
}

/* Redes en footer */
.icc-footer-redes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icc-footer-redes a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.icc-footer-redes a:hover { opacity: 1; }

.icc-footer-redes a img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Contacto en footer */
.icc-footer-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    opacity: 0.85;
}

.icc-footer-contacto p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    line-height: 1.5;
}

/* Logo en footer violeta */
.icc-footer-institucional img {
    max-height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 12px;
    display: block;
}

/* Créditos */
.icc-footer-creditos {
    max-width: 1280px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.65;
    flex-wrap: wrap;
    gap: 8px;
}

.icc-footer-creditos a {
    color: #ffffff;
    opacity: 0.85;
}

.icc-footer-creditos a:hover {
    color: var(--color-accent);
    opacity: 1;
}

@media (max-width: 768px) {
    #icc-footer-logos { gap: 30px; }
    #icc-footer-logos img { max-height: 45px; }
    .icc-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .icc-footer-creditos { flex-direction: column; text-align: center; }
}

/* ============================================
   WRAPPER DE PÁGINA CON ELEMENTOR
   ============================================ */
.icc-page-wrapper,
.icc-page-content {
    width: 100%;
}

/* Elementor full width */
.elementor-section.elementor-section-full_width {
    width: 100%;
}
