:root {
    --primary-color: #1F5CA9;      /* Azul institucional - AZUL VISIÓN */
    --primary-dark: #123e75;       /* Azul profundo (fondos oscuros) */
    --primary-light: #347cd3;      /* Azul de realce */
    --accent-color: #EE4037;       /* Rojo/carmesí de campaña - ROJO ACCIÓN */
    --accent-light: #fee2e2;      /* Rosa suave para badges */
    --bg-light: #f8fafc;           /* Fondo gris muy claro */
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px rgba(13, 59, 102, 0.05);
    --shadow-lg: 0 20px 40px rgba(13, 59, 102, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 59, 102, 0.15);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 59, 102, 0.02);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    padding: 8px 20px;
    font-size: 13px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #fbfcfe;
    padding: 100px 24px 140px; /* added extra bottom space for ribbon */
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.campaign-tag {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* White fade overlay on the left side of the hero image */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgba(251, 252, 254, 1) 0%, rgba(251, 252, 254, 0.7) 30%, rgba(251, 252, 254, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-placeholder {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.05) 0%, rgba(13, 59, 102, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.hero-ribbon {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(174deg, transparent 50%, var(--accent-color) 50%, var(--accent-color) 54%, var(--primary-color) 54%);
    z-index: 3;
    pointer-events: none;
}

/* Nuestra Vision */
.section-vision {
    padding: 90px 24px;
    background-color: var(--bg-white);
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 16px;
}

.vision-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vision-card.agrario {
    border-bottom: 5px solid var(--primary-color);
}

.vision-card.turismo {
    border-bottom: 5px solid var(--accent-color);
}

.vision-card.educacion {
    border-bottom: 5px solid var(--primary-light);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
    border-color: rgba(13, 59, 102, 0.1);
}

.vision-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.vision-icon-wrapper.agrario {
    background-color: #e0f2fe;
    color: #0369a1;
}

.vision-icon-wrapper.turismo {
    background-color: #fee2e2;
    color: #b91c1c;
}

.vision-icon-wrapper.educacion {
    background-color: #e0e7ff;
    color: #4338ca;
}

.vision-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.vision-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Conoce a Jorge */
.section-conoce {
    padding: 90px 24px;
    background-color: #f1f5f9;
}

.conoce-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .conoce-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.conoce-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.conoce-image-wrapper {
    width: 100%;
    max-width: 380px;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(9, 34, 60, 0.15);
    background-color: var(--bg-white);
    border: 6px solid var(--bg-white);
    transition: var(--transition);
}

.conoce-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(9, 34, 60, 0.2);
}

.conoce-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conoce-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.conoce-bio {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.conoce-quote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 40px;
    font-style: italic;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

.conoce-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* San Martin en Accion (Home Gallery Grid) */
.section-accion {
    padding: 90px 24px;
    background-color: var(--bg-white);
}

.accion-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.accion-header-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.accion-header-text p {
    color: var(--text-muted);
    font-size: 16px;
}

.accion-link {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.accion-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Asymmetric Grid Public Layout */
.accion-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.accion-col-left {
    display: flex;
}

.accion-col-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.gallery-card-pub {
    width: 100%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    min-height: 250px;
}

.accion-col-left .gallery-card-pub {
    min-height: 520px;
}

.gallery-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.gallery-card-pub:hover .gallery-card-bg {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 34, 60, 0.9) 0%, rgba(9, 34, 60, 0.4) 60%, rgba(9, 34, 60, 0) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--bg-white);
    z-index: 2;
}

.gallery-card-tag {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.gallery-card-pub h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-card-pub p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Sumate al cambio (Formulario) */
.section-sumate {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 90px 24px;
}

.sumate-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sumate-info h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.sumate-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 480px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-white);
}

.contact-text span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-text strong {
    font-size: 15px;
}

.social-links-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.social-links-container span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--bg-white);
}

/* Form Card */
.form-card {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-card .form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d3b66'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

/* footer */
.main-footer {
    background-color: #06182c;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h3 {
    color: var(--bg-white);
    font-size: 22px;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.5);
}

/* PROPUESTAS PAGE (FOTO 1) */
.propuestas-header {
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.92) 0%, rgba(9, 34, 60, 0.95) 100%), url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 24px;
    color: var(--bg-white);
    text-align: center;
}

.propuestas-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.propuestas-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.propuestas-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.propuestas-section {
    padding: 80px 24px;
}

.propuestas-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.propuesta-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.propuesta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 59, 102, 0.1);
}

.propuesta-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.propuesta-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.propuesta-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-light);
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.propuesta-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.propuesta-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.propuestas-footer-cta {
    background-color: #f1f5f9;
    padding: 60px 24px;
    text-align: center;
}

.propuestas-footer-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.propuestas-footer-cta p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.propuestas-footer-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* GALERIA PAGE (FOTO 2) */
.galeria-header {
    background-color: var(--bg-white);
    padding: 80px 24px 40px;
}

.galeria-header-content {
    max-width: 1200px;
    margin: 0 auto;
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
}

.galeria-header-content p {
    max-width: 800px;
}

.galeria-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.galeria-header p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.galeria-section {
    padding: 40px 24px 80px;
}

/* Asymmetric Grid: 6 item layout matching layout in photo 2 */
.galeria-asym-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Let's define specific card heights or spans to replicate Photo 2 */
.galeria-asym-grid .galeria-item:nth-child(1) {
    grid-row: span 2;
}

.galeria-asym-grid .galeria-item:nth-child(4) {
    grid-row: span 2;
}

.galeria-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.galeria-asym-grid .galeria-item:nth-child(1),
.galeria-asym-grid .galeria-item:nth-child(4) {
    min-height: 520px;
}

.galeria-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.galeria-item:hover .galeria-item-bg {
    transform: scale(1.04);
}

.galeria-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 34, 60, 0.95) 0%, rgba(9, 34, 60, 0.5) 60%, rgba(9, 34, 60, 0) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--bg-white);
    z-index: 2;
}

.galeria-item-tag {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.galeria-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.galeria-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.galeria-cta-card {
    background-color: var(--primary-color);
    color: var(--bg-white);
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
}

.galeria-cta-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.galeria-cta-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

.galeria-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* DESCARGAS PAGE (FOTO 3) */
.descargas-header-section {
    max-width: 1200px;
    margin: 50px auto 40px;
    padding: 0 24px;
}

.descargas-header-card {
    background-color: #e0f2fe;
    border-left: 4px solid var(--primary-light);
    border-radius: 6px;
    padding: 30px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.descargas-header-info {
    max-width: 800px;
}

.descargas-header-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.descargas-header-info p {
    color: var(--primary-light);
    font-size: 14px;
    line-height: 1.6;
}

.descargas-header-icon {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

.descargas-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.descargas-block {
    margin-bottom: 60px;
}

.descargas-block-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.descargas-block-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.descargas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.descargas-grid.campaign-materials {
    grid-template-columns: repeat(3, 1fr);
}

.descargas-grid.social-assets {
    grid-template-columns: repeat(2, 1fr);
}

.descarga-card {
    background-color: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.descarga-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.descarga-thumb {
    height: 160px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.descarga-thumb.logo-color-bg { background-color: #f1f5f9; }
.descarga-thumb.logo-negro-bg { background-color: #eaeaea; }
.descarga-thumb.logo-blanco-bg { background-color: var(--primary-color); }

.descarga-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.descarga-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.descarga-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.descarga-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.descarga-action-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.descarga-action-btn:hover {
    background-color: var(--primary-light);
}

.descarga-split-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 12px;
}

.descarga-link-view {
    color: var(--primary-light);
    font-weight: 600;
}

.descarga-link-view:hover {
    text-decoration: underline;
}

.descarga-link-dl {
    color: var(--accent-color);
    font-weight: 600;
}

.descarga-link-dl:hover {
    text-decoration: underline;
}

.redes-sociales-card .descarga-thumb {
    height: 200px;
}

.redes-sociales-card .descarga-body {
    position: relative;
}

.descarga-circle-btn {
    position: absolute;
    right: 20px;
    top: -24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
    transition: var(--transition);
}

.descarga-circle-btn:hover {
    transform: scale(1.1);
    background-color: #a00d25;
}

.descarga-circle-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* PUBLIC DIALOG MODAL SYSTEM */
.pub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 34, 60, 0.85);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pub-modal.show {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pub-modal-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUpModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.pub-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(9, 34, 60, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
    z-index: 10;
    transition: var(--transition);
}

.pub-modal-close:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

/* Proposal modal detail styling */
.proposal-detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 500px;
}

.proposal-detail-img {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.proposal-detail-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proposal-detail-info .propuesta-tag {
    margin-bottom: 20px;
}

.proposal-detail-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.proposal-detail-info p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Gallery slide modal detail styling */
.gallery-slide-detail {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 550px;
}

.gallery-slider-pane {
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide-img.active {
    opacity: 1;
    position: relative;
}

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.gallery-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.gallery-slider-btn:hover {
    background-color: var(--accent-color);
}

.gallery-desc-pane {
    padding: 45px 35px;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
}

.gallery-desc-pane h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-theme-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.gallery-photo-desc-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gallery-photo-desc-text {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .conoce-container {
        grid-template-columns: 1fr;
    }
    
    .accion-grid {
        grid-template-columns: 1fr;
    }
    
    .accion-col-left .gallery-card-pub {
        min-height: 350px;
    }
    
    .sumate-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .propuestas-grid {
        grid-template-columns: 1fr;
    }
    
    .descargas-grid, 
    .descargas-grid.campaign-materials, 
    .descargas-grid.social-assets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proposal-detail,
    .gallery-slide-detail {
        grid-template-columns: 1fr;
    }
    
    .proposal-detail-img {
        height: 250px;
    }
    
    .gallery-slider-pane {
        height: 300px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .galeria-asym-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-asym-grid .galeria-item:nth-child(1),
    .galeria-asym-grid .galeria-item:nth-child(4) {
        grid-row: span 1;
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .descargas-grid, 
    .descargas-grid.campaign-materials, 
    .descargas-grid.social-assets {
        grid-template-columns: 1fr;
    }
    
    .conoce-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- ESTILOS COMPATIBILIDAD NUEVO HERO (TAILWIND MAPPER) --- */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.min-h-\[600px\] { min-height: 600px; }
.bg-surface-bright { background-color: #f8fafc; }

/* Custom section block support */
.py-section-gap { padding-top: 80px; padding-bottom: 80px; }
.text-center { text-align: center; }
.mb-12 { margin-bottom: 48px; }
.mb-2 { margin-bottom: 8px; }
.w-20 { width: 80px; }
.h-1 { height: 4px; }
.bg-secondary { background-color: var(--accent-color, #EE4037); }
.font-headline-lg { font-family: var(--font-main); font-weight: 700; }
.text-headline-lg { font-size: 28px; color: var(--primary-color); }
.font-body-lg { font-family: var(--font-main); font-weight: 400; }
.text-body-lg { font-size: 16px; line-height: 1.6; }
.text-on-surface-variant { color: var(--text-muted); }
.justify-center { justify-content: center; }
.max-w-max-width { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-margin-mobile { padding-left: 24px; padding-right: 24px; }
.max-w-2xl { max-width: 42rem; }
.inline-flex { display: inline-flex; }
.gap-2 { gap: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.bg-secondary-fixed { background-color: var(--accent-light); }
.text-on-secondary-fixed-variant { color: var(--accent-color); }
.rounded-full { border-radius: 9999px; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.leading-tight { line-height: 1.25; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 16px; }

.font-display-lg { font-family: var(--font-main); font-weight: 700; }
.text-display-lg { font-size: 38px; color: var(--primary-color); }
.font-headline-md { font-family: var(--font-main); font-weight: 500; }
.text-headline-md { font-size: 20px; color: var(--text-dark); }
.text-secondary-container { color: var(--primary-color); }
.font-black { font-weight: 900; color: var(--accent-color); }
.font-label-bold { font-weight: 700; }
.text-label-bold { font-size: 15px; }

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767px) {
    .hero-gradient {
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0.2) 100%);
    }
}

.bg-primary { background-color: var(--primary-color); }
.text-on-primary { color: var(--bg-white); }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.rounded-lg { border-radius: 8px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(13, 59, 102, 0.15), 0 4px 6px -4px rgba(13, 59, 102, 0.15); }
.border-2 { border-width: 2px; border-style: solid; }
.border-primary { border-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }

.hover\:scale-105 { transition: transform 0.2s ease; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:bg-primary:hover { background-color: var(--primary-color); }
.hover\:text-on-primary:hover { color: var(--bg-white); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

@media (min-width: 768px) {
    .md\:h-\[80vh\] { height: 80vh; }
    .md\:px-margin-desktop { padding-left: 24px; padding-right: 24px; }
    .text-display-lg { font-size: 54px; }
    .text-headline-md { font-size: 24px; }
    .text-headline-lg { font-size: 36px; }
    .text-body-lg { font-size: 18px; }
}

/* --- ESTILOS ADICIONALES PARA EL POPUP DE INICIO --- */
.popup-dialog-content {
    max-width: 800px;
    overflow: hidden;
}

.popup-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 420px;
}

.popup-modal-image {
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.popup-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-modal-info.full-width {
    grid-column: span 2;
    padding: 50px 60px;
    text-align: center;
    align-items: center;
}

.popup-modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    line-height: 1.3;
}

.popup-modal-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Modal backdrop glassmorphism */
#pub-popup-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(9, 34, 60, 0.7);
}

/* Image-only popup dialog styles */
.popup-dialog-content.only-image {
    max-width: min(90vw, 550px);
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible !important;
    max-height: none !important;
}

.popup-dialog-content.only-image .pub-modal-close {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    top: 15px;
    right: 15px;
    z-index: 100;
}

.popup-dialog-content.only-image .pub-modal-close:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.popup-scroll-wrapper {
    max-height: min(90vh, 778px); /* Cap height at A4 proportion (550px * 1.414 ≈ 778px) or viewport */
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.popup-only-img {
    display: block;
    width: 100%;
    height: auto;
}


@media (max-width: 768px) {
    .popup-modal-grid {
        grid-template-columns: 1fr;
    }
    .popup-modal-image {
        height: 200px;
        min-height: auto;
    }
    .popup-modal-info {
        padding: 30px 20px;
    }
    .popup-modal-info.full-width {
        padding: 35px 25px;
    }
}

/* Tailwind Utility mappings for Volunteer Form */
.bg-surface-container-lowest {
    background-color: var(--bg-white, #ffffff);
}
.p-8 {
    padding: 32px !important;
}
.rounded-2xl {
    border-radius: 16px !important;
}
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(9, 34, 60, 0.15) !important;
}
.space-y-4 > * + * {
    margin-top: 16px !important;
}
.space-y-4 .block {
    display: block;
}
.space-y-4 .font-label-bold {
    font-weight: 600;
}
.space-y-4 .text-label-bold {
    font-size: 14px;
    letter-spacing: 0.1px;
}
.space-y-4 .text-on-surface {
    color: var(--primary-color, #09223c);
}
.space-y-4 .mb-2 {
    margin-bottom: 8px;
}
.space-y-4 .w-full {
    width: 100%;
    box-sizing: border-box;
}
.space-y-4 .bg-white {
    background-color: #ffffff;
}
.space-y-4 .border-outline-variant {
    border: 1px solid var(--border-color, #cbd5e1);
}
.space-y-4 .rounded-lg {
    border-radius: 8px;
}
.space-y-4 .p-3 {
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
}
.space-y-4 input:focus, 
.space-y-4 select:focus {
    border-color: var(--primary-color, #09223c) !important;
    box-shadow: 0 0 0 1px var(--primary-color, #09223c) !important;
}
.space-y-4 .grid {
    display: grid;
}
.space-y-4 .grid-cols-2 {
    grid-template-columns: 1fr 1fr;
}
.space-y-4 .gap-4 {
    gap: 16px;
}
@media (max-width: 600px) {
    .space-y-4 .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}
.space-y-4 .bg-secondary {
    background-color: var(--accent-color, #e11d48);
}
.space-y-4 .text-on-secondary {
    color: #ffffff;
}
.space-y-4 .py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}
.space-y-4 .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
}
.space-y-4 .hover\:brightness-110:hover {
    filter: brightness(1.1);
}
.space-y-4 .active\:scale-95:active {
    transform: scale(0.98);
}
.space-y-4 .transition-all {
    transition: all 0.2s ease;
}

/* ==========================================================================
   SECCIÓN DE NOTICIAS (NUEVO MÓDULO)
   ========================================================================== */

.news-page-wrapper {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 24px;
}

.news-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.news-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.news-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag-badge {
    font-size: 12px;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.news-share-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.share-facebook {
    background-color: #1877F2;
}
.share-facebook:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
}

.share-twitter {
    background-color: #14171A;
}
.share-twitter:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.share-whatsapp {
    background-color: #25D366;
}
.share-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.news-image-wrapper {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
}

.news-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-main-image:hover {
    transform: scale(1.02);
}

.news-body {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body h2, .news-body h3 {
    color: var(--primary-color);
    margin: 35px 0 15px 0;
    font-weight: 700;
}

.news-body ul, .news-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-body li {
    margin-bottom: 8px;
}

/* Slideshow inferior (Noticias Relacionadas) */
.related-news-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.related-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.news-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.news-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.news-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-slide-card {
    flex-shrink: 0;
    width: calc(33.333% - 16px);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .news-slide-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 576px) {
    .news-slide-card {
        width: 100%;
    }
}

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

.news-slide-card.is-current {
    border: 2px solid var(--primary-color);
    position: relative;
}

.news-slide-card.is-current::after {
    content: "Viendo";
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-img-holder {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(9, 34, 60, 0.85);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.btn-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-card-link:hover {
    color: var(--accent-color);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(13, 59, 102, 0.15);
}

.slider-prev {
    left: -22px;
}

.slider-next {
    right: -22px;
}

@media (max-width: 768px) {
    .slider-prev {
        left: -10px;
    }
    .slider-next {
        right: -10px;
    }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.container-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.container-empty h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.container-empty p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Estilos específicos para el Slideshow de la Sección Superior del Home */
.news-home-slideshow {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    position: relative;
}

.home-slides-container {
    position: relative;
    height: 480px;
    width: 100%;
    overflow: hidden;
}

.home-news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    background-color: #0b1329;
}

.home-news-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.home-slide-img {
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.home-slide-info {
    width: 40%;
    height: 100%;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-slide-info .slide-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 15px;
    background-color: rgba(238, 64, 55, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.home-slide-info h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.home-slide-info p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-slide-info .btn-slide {
    width: fit-content;
}

.home-slideshow-nav {
    position: absolute;
    bottom: 25px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.home-slideshow-dots {
    display: flex;
    gap: 8px;
}

.home-slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.home-slideshow-dot.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .home-slides-container {
        height: auto;
    }
    .home-news-slide {
        flex-direction: column;
    }
    .home-slide-img {
        width: 100%;
        height: 250px;
    }
    .home-slide-info {
        width: 100%;
        height: auto;
        padding: 30px 24px 60px 24px;
    }
    .home-slide-info h2 {
        font-size: 24px;
    }
    .home-slideshow-nav {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 24px 20px;
    }
    .news-title {
        font-size: 28px;
    }
    .news-image-wrapper {
        max-height: 300px;
    }
}

/* --- COMPARTIR EN LINKEDIN --- */
.share-linkedin {
    background-color: #0077b5;
}
.share-linkedin:hover {
    background-color: #005988;
    transform: translateY(-2px);
}

/* --- ESTILOS PARA EL LISTADO DE NOTICIAS --- */
.news-header-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
}
.news-header-content {
    max-width: 800px;
    margin: 0 auto;
}
.news-header-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}
.news-header-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.news-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.news-card-img-wrapper {
    height: 220px;
    overflow: hidden;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.news-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.news-card-title a {
    color: inherit;
    text-decoration: none;
}
.news-card-title a:hover {
    color: var(--primary-color);
}
.news-card-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.news-card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.news-card-link:hover {
    color: var(--accent-color);
}
/* Hero Slider Styles */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.hero-video-wrapper.hidden {
    display: none !important;
}

.hero-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.hero-slides-wrapper.hidden {
    display: none !important;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.opacity-100 {
    opacity: 1;
    z-index: 2;
}

.hero-slide.opacity-0 {
    opacity: 0;
    z-index: 1;
}

.hero-slider-container .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* On top of videos and images, below content */
    pointer-events: none;
}

/* Global hidden class */
.hidden {
    display: none !important;
}

/* Hero Mute Toggle Button */
#hero-mute-toggle {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 50; /* Place it above the video and invisible content overlay to ensure clickability */
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-in-out;
}

#hero-mute-toggle:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

#hero-mute-toggle.hidden {
    display: none !important;
}

#hero-mute-toggle span.material-symbols-outlined {
    font-size: 20px;
    color: #ffffff;
    font-variation-settings: 'FILL' 1;
}


