/* ==========================================================================
   UCE BURGOS - MODERN STYLESHEET (MASTER FILE V5)
   Contiene: Reset, Header, Footer, Home y Páginas Internas
   ========================================================================== */

/* --- 1. VARIABLES Y CONFIGURACIÓN --- */
:root {
    /* Colores Corporativos */
    --uce-dark: #043F1F;    /* Verde botella */
    --uce-accent: #9fc100;  /* Verde pistacho */
    --uce-light: #E8EFD2;   /* Verde pálido fondo */
    
    /* Colores Neutros */
    --white: #ffffff;
    --gray-50: #fcfcfc;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --text-main: #333333;
    --text-light: #555555;
    
    /* Configuración */
    --header-height: 90px;
    --container-width: 1200px;
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. RESET BÁSICO --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.7; /* Mejor legibilidad */
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 3. UTILIDADES --- */
.container {
    width: 100%; max-width: var(--container-width);
    margin: 0 auto; padding: 0 20px;
}
.container-narrow { max-width: 900px; } /* Para textos de lectura */
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--gray-50); }

/* Títulos */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem; color: var(--uce-dark); font-weight: 800;
    text-transform: uppercase; margin-bottom: 1rem; letter-spacing: -0.5px;
}
.section-subtitle {
    display: block; width: 70px; height: 4px; background: var(--uce-accent);
    margin: 0 auto 30px auto; border-radius: 2px;
}
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.pb-0 { padding-bottom: 0 !important; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- 4. HEADER (Global) --- */
#main-header-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: var(--white); box-shadow: var(--shadow-sm); z-index: 1000;
    display: flex; align-items: center;
}
#header-spacer { height: var(--header-height); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-container img { max-height: 65px; width: auto; }

/* Navegación */
.main-navigation .nav-list { display: flex; align-items: center; gap: 10px; }
.nav-link {
    display: block; padding: 0 15px; line-height: var(--header-height);
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-main); position: relative; font-family: 'Montserrat', sans-serif;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--uce-dark); }
.nav-link::after {
    content: ''; position: absolute; bottom: 25px; left: 15px; right: 15px;
    height: 2px; background: var(--uce-accent); transform: scaleX(0); transition: transform 0.3s;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Dropdowns */
.nav-item { position: relative; height: var(--header-height); display: flex; align-items: center; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--white); box-shadow: var(--shadow-md);
    border-top: 4px solid var(--uce-accent); opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: var(--transition); border-radius: 0 0 4px 4px;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { border-bottom: 1px solid var(--gray-100); }
.dropdown-menu a { display: block; padding: 12px 20px; font-size: 0.9rem; }
.dropdown-menu a:hover { background: var(--uce-dark); color: var(--white); padding-left: 25px; }

/* Botón Socio Header */
.btn-nav-socio {
    background: var(--uce-light); color: var(--uce-dark); padding: 10px 20px;
    border-radius: 50px; font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; margin-left: 10px; border: 2px solid transparent;
}
.btn-nav-socio:hover { background: var(--uce-dark); color: var(--white); border-color: var(--uce-dark); }

/* Móvil Trigger */
.mobile-menu-trigger { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1100; }
.hamburger-line { display: block; width: 25px; height: 3px; background: var(--uce-dark); margin: 5px 0; transition: var(--transition); border-radius: 3px; }

/* --- 5. HOME STYLES (Hero, Servicios, Noticias) --- */
.hero {
    position: relative; height: 85vh; min-height: 500px;
    background: linear-gradient(to right, rgba(4,63,31,0.9) 0%, rgba(4,63,31,0.6) 100%), url('../../images/slideshow/large/slider-4_2.png');
    background-size: cover; background-position: center;
    display: flex; align-items: center; color: var(--white);
}
.hero-content { max-width: 700px; padding-top: 20px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; font-weight: 300; margin-bottom: 35px; opacity: 0.95; }
.hero-buttons { display: flex; gap: 15px; }

/* Botones Generales */
.btn {
    display: inline-block; padding: 15px 35px;
    border-radius: 50px; font-weight: 700; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px; transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--uce-accent); color: var(--uce-dark); box-shadow: 0 4px 15px rgba(159, 193, 0, 0.4); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--uce-dark); }

/* Grids Home */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 20px; }
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius); text-align: center;
    border: 1px solid var(--gray-200); transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--uce-accent); }
.icon-circle {
    width: 80px; height: 80px; margin: 0 auto 25px;
    background: var(--uce-light); color: var(--uce-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; transition: var(--transition);
}
.service-card:hover .icon-circle { background: var(--uce-dark); color: var(--uce-accent); }
.service-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--uce-dark); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border-top: 4px solid var(--uce-dark);
    display: flex; flex-direction: column; height: 100%; transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-size: 0.8rem; color: var(--uce-accent); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.news-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 15px; }
.news-title a { color: var(--text-main); }
.news-title a:hover { color: var(--uce-dark); }
.news-excerpt { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }
.news-link { color: var(--uce-dark); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.news-link:hover { gap: 10px; color: var(--uce-accent); }

/* --- 6. FOOTER (Global) --- */
#main-footer {
    background: var(--uce-light); border-top: 5px solid var(--uce-dark);
    padding-top: 60px; margin-top: 0; color: var(--uce-dark);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { max-width: 180px; margin-bottom: 20px; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--uce-accent); text-decoration: underline; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials svg { width: 24px; height: 24px; stroke: var(--uce-dark); transition: var(--transition); }
.footer-socials a:hover svg { stroke: var(--uce-accent); transform: scale(1.1); }
.junta-logo { max-width: 220px; margin-bottom: 15px; }
.legal-note { font-size: 0.8rem; opacity: 0.8; line-height: 1.4; }
.footer-bottom { background: var(--uce-dark); color: var(--white); padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* --- 7. BOTÓN VOLVER ARRIBA --- */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--uce-accent); color: var(--uce-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s ease; z-index: 999; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--uce-dark);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--uce-dark); color: var(--uce-accent); transform: translateY(-5px); }

/* --- 8. RESPONSIVE GLOBAL --- */
@media (max-width: 992px) {
    .header-content { padding: 0 15px; }
    .nav-link { padding: 0 10px; font-size: 0.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-institutional { grid-column: span 2; text-align: center; }
    .junta-logo { margin: 0 auto 15px; }
}
@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .mobile-menu-trigger { display: block; }
    .main-navigation {
        position: fixed; top: var(--header-height); right: -100%;
        width: 80%; height: calc(100vh - var(--header-height));
        background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out; padding: 20px; overflow-y: auto;
    }
    .nav-container.is-open .main-navigation { right: 0; }
    .main-navigation .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav-item { width: 100%; height: auto; flex-wrap: wrap; border-bottom: 1px solid var(--gray-100); }
    .nav-link { width: 100%; line-height: 50px; padding: 0; }
    .nav-link::after { display: none; }
    .dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; padding-left: 20px; background: var(--gray-100); width: 100%; }
    .btn-nav-socio { margin: 20px 0; display: inline-block; width: 100%; text-align: center; }
    .mobile-menu-trigger.is-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-trigger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-trigger.is-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .hero { text-align: center; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-institutional { grid-column: auto; }
    .footer-socials { justify-content: center; }
    .footer-identity address { margin: 0 auto; }
}

/* ==========================================================================
   11. ESTILOS PÁGINAS INTERNAS MODERNAS (V5 - COMPACTO)
   ========================================================================== */

/* Internal Hero (Más compacto y sin borde inferior grueso) */
.internal-hero {
    margin-top: var(--header-height);
    background-color: var(--white);
    padding: 40px 0 20px; /* ANTES: 60px 0 40px -> REDUCIDO */
    position: relative;
    /* Eliminamos borde para que fluya mejor si es blanco sobre blanco */
    border-bottom: none; 
}

/* Línea decorativa más sutil y cercana */
.internal-hero::after {
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--uce-accent); margin: 15px auto 0; border-radius: 2px;
}

.internal-hero h1 {
    font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 800;
    color: var(--uce-dark); margin-bottom: 10px; text-transform: uppercase;
    letter-spacing: -1px;
}

.lead-text {
    font-size: 1.1rem; color: var(--text-light); max-width: 800px; margin: 0 auto;
    font-weight: 300;
}

/* Ajuste de la sección de texto siguiente para que suba */
.section-padding.pb-0 {
    padding-top: 30px; /* ANTES: 80px (heredado) -> AHORA: 30px */
    padding-bottom: 0 !important;
}

/* Contenido de Texto */
.text-block { 
    font-size: 1.05rem; line-height: 1.8; color: var(--text-main); 
    text-align: justify;
}
.text-block p { margin-bottom: 20px; }

/* Resto de estilos (Caja destacada, Tabs, Grid, CTA) se mantienen igual... */
/* ... (Copia aquí el resto de estilos de la versión anterior desde .highlight-box en adelante) ... */
.highlight-box {
    background: #f4fcf0; border-left: 4px solid var(--uce-accent);
    padding: 30px 35px; margin: 35px 0; font-size: 1.1rem; color: var(--uce-dark);
    border-radius: 0 8px 8px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.value-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius); text-align: center;
    border: 1px solid var(--gray-100); box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: var(--transition);
}
.value-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-card); border-color: var(--uce-light); }
.value-card.highlight { border: 2px solid var(--uce-accent); background: #fafdf5; }
.value-icon {
    width: 70px; height: 70px; margin: 0 auto 25px; background: var(--uce-light); color: var(--uce-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.value-icon svg { width: 32px; height: 32px; }
.value-card:hover .value-icon { background: var(--uce-dark); color: var(--uce-accent); }
.value-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: var(--uce-dark); font-weight: 700; margin-bottom: 15px; }
.value-card p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }

.modern-tabs { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid var(--gray-100); margin-top: 20px; }
.tabs-nav-wrapper { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 0 20px; }
.tabs-nav { display: flex; gap: 30px; overflow-x: auto; }
.tab-link {
    padding: 20px 5px; background: none; border: none; font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 600;
    color: var(--text-light); cursor: pointer; position: relative; transition: var(--transition); white-space: nowrap;
}
.tab-link:hover { color: var(--uce-dark); }
.tab-link.active { color: var(--uce-dark); font-weight: 800; }
.tab-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--uce-accent); border-radius: 3px 3px 0 0; }
.tabs-body { padding: 50px; }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }
.panel-content-simple p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-main); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 50px; }
.feature-item h4 { color: var(--uce-dark); font-weight: 700; margin-bottom: 12px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.feature-item p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }
.icon-circle-small { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--uce-light); color: var(--uce-dark); border-radius: 50%; flex-shrink: 0; transition: var(--transition); }
.feature-item:hover .icon-circle-small { background: var(--uce-dark); color: var(--uce-accent); }
.icon-circle-small svg { width: 20px; height: 20px; }
.modern-list { list-style: none; padding: 0; }
.modern-list li { position: relative; padding-left: 35px; margin-bottom: 18px; font-size: 1.05rem; color: var(--text-main); }
.modern-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--uce-accent); border-radius: 50%; box-shadow: 0 0 0 2px var(--uce-light); }
.modern-list li strong { color: var(--uce-dark); font-weight: 700; }

.cta-section {
    background: var(--uce-dark); color: var(--white); padding: 80px 0; text-align: center;
    background-image: linear-gradient(rgba(4,63,31,0.9), rgba(4,63,31,0.9)), url('../../images/slideshow/large/slider-3_2.png');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.cta-section h2 { color: var(--white); margin-bottom: 20px; font-size: 2.2rem; font-family: 'Montserrat', sans-serif; }
.cta-section p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 35px; }
.btn-white {
    background: var(--white); color: var(--uce-dark); padding: 15px 35px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    transition: var(--transition); display: inline-block; letter-spacing: 1px;
}
.btn-white:hover { background: var(--uce-accent); color: var(--uce-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

@media (max-width: 992px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 30px; }
    .values-grid { grid-template-columns: 1fr; max-width: 600px; margin: 20px auto 0; }
    .tabs-body { padding: 30px 20px; }
    .tabs-nav { gap: 15px; }
    .tab-link { padding: 15px 5px; font-size: 0.9rem; }
}

/* ==========================================================================
   12. ESTILOS PÁGINA CONTACTO
   ========================================================================== */

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px;
    align-items: start;
}

/* Caja de Info (Izquierda) */
.contact-info-card {
    background: var(--white); border: 1px solid var(--gray-200);
    padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.info-item { margin-bottom: 30px; padding-left: 50px; position: relative; }
.info-item h4 { font-size: 1.1rem; font-weight: 700; color: var(--uce-dark); margin-bottom: 5px; text-transform: uppercase; }
.info-item p { font-size: 1rem; color: var(--text-light); margin-bottom: 5px; }
.info-item a { font-weight: 600; color: var(--uce-dark); border-bottom: 2px solid var(--uce-accent); }
.info-item a:hover { background: var(--uce-accent); color: var(--uce-dark); border-color: transparent; }

.info-icon {
    position: absolute; left: 0; top: 0; width: 36px; height: 36px;
    background: var(--uce-light); color: var(--uce-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }

/* Formulario (Derecha) */
.contact-form-wrapper {
    background: var(--white); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-card); border-top: 5px solid var(--uce-dark);
}
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-main); font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 15px; border: 2px solid var(--gray-200);
    border-radius: 6px; font-size: 1rem; font-family: inherit;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--uce-dark); outline: none; box-shadow: 0 0 0 3px rgba(4, 63, 31, 0.1);
}
.btn-submit {
    width: 100%; padding: 18px; background: var(--uce-dark); color: var(--white);
    border: none; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; font-size: 1rem; letter-spacing: 1px; transition: var(--transition);
}
.btn-submit:hover { background: var(--uce-accent); color: var(--uce-dark); transform: translateY(-2px); }

/* Alertas */
.alert-box { padding: 15px 20px; border-radius: 6px; margin-bottom: 30px; font-weight: 600; }
.alert-box.success { background: #e6fffa; color: #2c7a7b; border: 1px solid #b2f5ea; }
.alert-box.alert { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* Mapa Responsive */
.map-container {
    margin-top: 30px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.map-container iframe { display: block; }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-card { order: 2; }
    .contact-form-wrapper { order: 1; }
}

/* ==========================================================================
   13. COOKIE BANNER (RGPD)
   ========================================================================== */

.cookie-banner {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    background: var(--white); border-top: 4px solid var(--uce-accent);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 10000;
    padding: 25px 20px; transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; justify-content: center; align-items: center;
}

.cookie-banner.show { bottom: 0; }

.cookie-content {
    max-width: var(--container-width); width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    gap: 30px; flex-wrap: wrap;
}

.cookie-text { flex: 1; font-size: 0.95rem; color: var(--text-main); line-height: 1.5; }
.cookie-text a { color: var(--uce-dark); font-weight: 700; border-bottom: 1px solid var(--uce-accent); }
.cookie-text a:hover { color: var(--uce-accent); border-bottom-color: transparent; }

.cookie-buttons { display: flex; gap: 15px; align-items: center; }

.btn-cookie-accept {
    background: var(--uce-dark); color: var(--white); padding: 10px 25px;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    border: 2px solid var(--uce-dark); transition: var(--transition); white-space: nowrap;
}
.btn-cookie-accept:hover {
    background: var(--uce-accent); border-color: var(--uce-accent); color: var(--uce-dark);
}

.btn-cookie-reject {
    background: transparent; color: var(--text-light); padding: 10px 20px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    border: 2px solid var(--gray-200); transition: var(--transition); white-space: nowrap;
}
.btn-cookie-reject:hover { border-color: var(--text-main); color: var(--text-main); }

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cookie-buttons { width: 100%; justify-content: flex-end; }
}

/* ==========================================================================
   14. ESTILOS BLOG / NOTICIAS (ultimas_noticias.php)
   ========================================================================== */

/* Rejilla de noticias para la página interna (2 columnas) */
.news-grid-internal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adaptable */
    gap: 30px;
}

/* Ajuste de la tarjeta de noticia para que se vea bien en interna */
.news-card-internal {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
    border-bottom: 4px solid var(--uce-dark);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.news-card-internal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-bottom-color: var(--uce-accent);
}

.news-card-internal .news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-internal h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-internal .date-badge {
    display: inline-block;
    background: var(--uce-light);
    color: var(--uce-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Widget de Sidebar: Lista de Noticias */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sidebar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-news-date {
    font-size: 0.75rem;
    color: var(--uce-accent);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.sidebar-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
    color: var(--text-main);
}

.sidebar-news-item a:hover .sidebar-news-title {
    color: var(--uce-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid-internal {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}

/* ==========================================================================
   15. ESTILOS FICHA NOTICIA (DISEÑO FINAL)
   ========================================================================== */

/* Contenedor limpio */
.single-news-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Cabecera Noticia */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem; /* Grande y legible */
    font-weight: 800;
    color: var(--uce-dark); /* VERDE UCE */
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-author strong {
    color: var(--uce-dark);
    font-weight: 700;
    text-transform: uppercase;
}

/* Redes Sociales */
.social-share {
    display: flex;
    gap: 10px;
    margin-left: auto; /* A la derecha */
}
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.social-btn:hover { transform: translateY(-3px); color: white; }
.social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-btn.tw:hover { background: #000000; border-color: #000000; } /* X es negro */
.social-btn.wa:hover { background: #25D366; border-color: #25D366; }
.social-btn.ig:hover { background: #C13584; border-color: #C13584; }

/* Cuerpo de la Noticia */
.article-content {
    font-family: 'Georgia', 'Times New Roman', serif; /* Serif para lectura cómoda */
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 50px;
}
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--uce-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Imágenes dentro del contenido (Legacy fix) */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
/* La imagen destacada específica */
.featured-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* CTA Integrado (¿Te afecta?) */
.cta-box-inline {
    background-color: #f0fdf4; /* Verde muy muy suave */
    border-left: 5px solid var(--uce-dark);
    padding: 40px;
    margin: 50px 0;
    border-radius: 0 8px 8px 0;
}
.cta-box-inline h3 {
    color: var(--uce-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex; align-items: center; gap: 10px;
}
.cta-box-inline p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--text-main);
}
.btn-cta-green {
    background: var(--uce-dark);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}
.btn-cta-green:hover {
    background: var(--uce-accent);
    color: var(--uce-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Sección Noticias Relacionadas (Pie) */
.related-section {
    background-color: var(--gray-50);
    padding: 60px 0;
    border-top: 1px solid var(--gray-200);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.related-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex; flex-direction: column;
    border-top: 3px solid transparent;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-top-color: var(--uce-accent);
}
.related-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--uce-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}
.related-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--uce-dark);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .article-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
    .social-share { margin-left: 0; margin-top: 10px; }
    .article-title { font-size: 1.8rem; }
    .related-grid { grid-template-columns: 1fr; }
    .cta-box-inline { padding: 25px; }
}

/* ==========================================================================
   16. ESTILOS HAZTE SOCIO (PREMIUM CONVERSION)
   ========================================================================== */

/* Grid de Beneficios (Sustituye a las pestañas viejas) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--uce-light);
}

.benefit-icon {
    width: 60px; height: 60px;
    background: #f0fdf4; /* Verde muy claro */
    color: var(--uce-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--uce-dark); margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.5;
}

/* Caja de Precio Destacada */
.pricing-card {
    background: var(--uce-dark);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    box-shadow: 0 15px 30px rgba(4, 63, 31, 0.25);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: ''; position: absolute; top: -50px; left: -50px;
    width: 150px; height: 150px; background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.pricing-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem; font-weight: 800; margin-bottom: 10px;
    color: var(--white);
}

.pricing-amount {
    font-size: 3.5rem; font-weight: 800; color: var(--uce-accent);
    margin: 20px 0; line-height: 1;
}

.pricing-period {
    font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

.pricing-note {
    margin-top: 15px; font-size: 0.9rem; opacity: 0.9;
    background: rgba(0,0,0,0.2); display: inline-block;
    padding: 5px 15px; border-radius: 50px;
}

/* Formulario de Socio (Layout 2 columnas) */
.socios-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--uce-accent);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-section-title {
    grid-column: 1 / -1;
    font-size: 1.2rem; font-weight: 700; color: var(--uce-dark);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px; margin: 20px 0;
}

.full-width { grid-column: 1 / -1; }

/* Botón Enviar Gigante */
.btn-submit-big {
    width: 100%; padding: 20px;
    background: var(--uce-dark); color: var(--white);
    font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; border: none; border-radius: 8px;
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-submit-big:hover {
    background: var(--uce-accent); color: var(--uce-dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .socios-form-wrapper { padding: 25px; }
    .pricing-amount { font-size: 2.5rem; }
}

/* ==========================================================================
   17. ESTILOS MODAL SEGURIDAD (FICHA SOCIO)
   ========================================================================== */

/* Fondo completo */
.security-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f0fdf4; /* Verde muy suave */
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; padding: 20px;
}

/* Tarjeta Central */
.security-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(4, 63, 31, 0.15);
    width: 100%; max-width: 480px;
    text-align: center;
    border-top: 5px solid var(--uce-dark);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.security-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem; color: var(--uce-dark);
    margin-bottom: 15px; font-weight: 800;
}

.security-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem; color: var(--text-light);
    margin-bottom: 30px; line-height: 1.6;
}

/* Input PIN gigante */
.input-pin-large {
    width: 100%; padding: 15px;
    font-size: 2rem; letter-spacing: 10px; text-align: center;
    border: 2px solid var(--gray-200); border-radius: 8px;
    margin-bottom: 25px; font-weight: 700; color: var(--uce-dark);
    transition: var(--transition);
}

.input-pin-large:focus {
    border-color: var(--uce-accent); outline: none;
    box-shadow: 0 0 0 4px rgba(159, 193, 0, 0.2);
}

/* Botón Verificar */
.btn-verify-large {
    width: 100%; padding: 18px;
    background: var(--uce-dark); color: var(--white);
    border: none; border-radius: 50px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: var(--transition); font-size: 1rem;
}

.btn-verify-large:hover {
    background: var(--uce-accent); color: var(--uce-dark);
    transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mensajes Feedback */
.msg-box {
    padding: 15px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 20px; text-align: left;
}
.msg-box.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.msg-box.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }