/* ===== HEADER VERDE - FIX COMPLETO ===== */

:root {
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

body, p {
  font-family: var(--font-body);
}


.site-header.header-verde-integrado {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: linear-gradient(180deg, #2C9A56 0%, #288F50 100%) !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

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

.site-header .logo {
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
}

.site-header .nav-toggle {
    display: none !important;
}

.site-header .main-nav {
    display: flex !important;
    align-items: center !important;
    order: 3 !important;
}

.site-header .main-nav .menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
}

.site-header .main-nav .menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-nav .menu a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border-radius: 20px !important;
    display: block !important;
    transition: all 0.3s !important;
}

.site-header .main-nav .menu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.site-header .site-name {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: white !important;
    text-decoration: none !important;
}

body {
    padding-top: 70px !important;
}
/* ===== MENÚ MÓVIL ===== */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .site-header .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 35px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .site-header .nav-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 10px;
        transition: all 0.3s;
    }

    /* Animación X del hamburguesa */
    .site-header .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .site-header .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Menú desplegable */
    .site-header .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #2C9A56 0%, #1a6d3d 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    /* CAMBIO AQUÍ: .active por .is-open */
    .site-header .main-nav.is-open {
        max-height: 500px;
        padding: 20px 0;
    }

    .site-header .main-nav .menu {
        flex-direction: column !important;
        width: 100%;
        gap: 0 !important;
    }

    .site-header .main-nav .menu li {
        width: 100%;
    }

    .site-header .main-nav .menu a {
        padding: 15px 30px !important;
        border-radius: 0 !important;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===== HERO COMPACTO CON DEGRADADO VERDE ===== */
.hero-voxpoll-compacto {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    
    /* Degradado verde vertical */
    background: linear-gradient(180deg, #1a5a35 0%, #2C9A56 50%, #e8f5e9 100%);
}

/* Patrón de puntos sutil */
.hero-voxpoll-compacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

/* Contenedor centrado 1200px */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Título principal */
.hero-titulo {
    font-size: 5.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.mexico-tricolor {
    background: linear-gradient(90deg, 
        #006847 0%,      
        #006847 15%,     
        #5db381 25%,     /* Más transición */
        #b3d9c6 35%,     /* Más suave */
        #ffffff 45%,     
        #ffffff 55%,     
        #f5c5ce 65%,     /* Más suave */
        #ea7485 75%,     /* Más transición */
        #CE1126 85%,     
        #CE1126 100%     
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 900;
}
/* Subtítulo */
.hero-subtitulo {
    font-size: 1.4rem;
    color: white;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Botones */
.hero-botones {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-botones .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.hero-botones .btn-primary {
    background: white;
    color: #2C9A56;
    border: 2px solid white;
}

.hero-botones .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-botones .btn-outline {
    background: #4a5568;
    color: white;
    border: 2px solid white;
}

.hero-botones .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-voxpoll-compacto {
        min-height: 300px;
        padding: 40px 20px;
    }

    .hero-titulo {
        font-size: 3.5rem;
    }

    .hero-subtitulo {
        font-size: 1.1rem;
    }

    .hero-botones {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-botones .btn {
        width: 100%;
        max-width: 250px; /* Reducido de 300px */
        padding: 14px 30px; /* Reducido de 16px 40px */
        font-size: 1rem; /* Reducido de 1.1rem */
    }
}

@media (max-width: 480px) {
    .hero-titulo {
        font-size: 2.8rem;
    }

    .hero-subtitulo {
        font-size: 1rem;
    }
}

/* ===== INTEGRACIÓN HEADER + HERO SIN ESPACIO ===== */
.hero-voxpoll-compacto {
    margin-top: -5px !important; /* Aumenta si hace falta: -10px, -15px */
}

/* Quitar cualquier margen del body después del header */
body {
    padding-top: 20px !important;
    margin: 0 !important;
}

/* Asegurar que no haya espacio entre header y hero */
.site-header + .hero-voxpoll-compacto {
    margin-top: 0 !important;
}

/* Forzar que esté pegado */
main,
.site-content,
#primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ===== FRANJA DE CREDIBILIDAD - VERSIÓN MEJORADA ===== */
.credibilidad-franja {
    /* Gradiente sutil gris → verde muy claro */
    background: linear-gradient(180deg, #f5f5f5 0%, #f0f9f4 100%);
    padding: 70px 20px;
    position: relative;
}

.credibilidad-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.credibilidad-item {
    background: white;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    
    /* Sin borde lateral, solo borde superior verde */
    border: none;
    border-top: 4px solid #2C9A56;
    
    /* Sombra suave permanente (efecto floating) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Delay escalonado para cada card */
.credibilidad-item:nth-child(1) { animation-delay: 0.1s; }
.credibilidad-item:nth-child(2) { animation-delay: 0.2s; }
.credibilidad-item:nth-child(3) { animation-delay: 0.3s; }
.credibilidad-item:nth-child(4) { animation-delay: 0.4s; }
.credibilidad-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credibilidad-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44, 154, 86, 0.15);
    border-top-color: #1a7a3d;
}

/* Icono con círculo verde de fondo */
.cred-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #4a5568;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 154, 86, 0.3);
    transition: all 0.3s ease;
}

.credibilidad-item:hover .cred-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(44, 154, 86, 0.4);
}

.cred-icon i {
    display: block;
}

.credibilidad-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #2C9A56;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.credibilidad-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .credibilidad-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .credibilidad-franja {
        padding: 50px 0;
    }

    .credibilidad-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        padding: 0 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .credibilidad-item {
        flex: 0 0 260px;
        scroll-snap-align: start;
        /* Reset animación en móvil para que se vea inmediato */
        opacity: 1;
        transform: translateY(0);
        animation: none;
    }

    /* Ocultar scrollbar */
    .credibilidad-container::-webkit-scrollbar {
        display: none;
    }

    .credibilidad-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (max-width: 480px) {
    .credibilidad-item {
        flex: 0 0 240px;
        padding: 30px 15px;
    }

    .cred-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ===== LAYOUT PRINCIPAL 2 COLUMNAS ===== */
.contenedor {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* Main + Sidebar */
    gap: 40px;
    margin: 60px auto;
}

/* ===== COLUMNA PRINCIPAL ===== */
.main-column {
    min-width: 0; /* Fix para grid overflow */
}

/* ===== HIGHLIGHT CON IMAGEN AL LADO ===== */
.poll-highlight {
    margin-bottom: 50px;
}

.highlight-card {
    background: linear-gradient(135deg, #2C9A56 0%, #34a85f 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(44, 154, 86, 0.2);
    overflow: hidden;
    
    /* Layout 2 columnas */
    display: grid;
    grid-template-columns: 1fr 400px; /* Texto + Imagen */
    min-height: 320px;
}

/* Contenido (lado izquierdo) */
.highlight-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.highlight-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
}

.highlight-content h2 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.highlight-content h2 a:hover {
    opacity: 0.85;
}

.highlight-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Imagen (lado derecho) */
.highlight-image {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

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

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

/* Placeholder cuando no hay imagen */
.highlight-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    color: white;
    gap: 15px;
}

.highlight-placeholder i {
    font-size: 80px;
    opacity: 0.5;
}

.highlight-placeholder span {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.7;
}

/* Botón */
.highlight-content .btn {
    align-self: flex-start;
}
.highlight-content .btn-secondary {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.highlight-content .btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .highlight-card {
        grid-template-columns: 1fr; /* Una columna en móvil */
        min-height: auto;
    }

    .highlight-image {
        height: 200px;
        order: -1; /* Imagen arriba en móvil */
    }

    .highlight-content {
        padding: 30px 25px;
    }

    .highlight-content h2 {
        font-size: 24px;
    }

    .highlight-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .highlight-content {
        padding: 25px 20px;
    }

    .highlight-content h2 {
        font-size: 22px;
    }
}



/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2C9A56;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.ver-todas {
    color: #2C9A56;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.ver-todas:hover {
    color: #1a7a3d;
}

/* Grid de encuestas */
.encuestas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.encuesta-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.encuesta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2C9A56;
}

.encuesta-thumb {
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.encuesta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-chart {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    font-size: 48px;
}

.encuesta-info {
    padding: 20px;
}

.badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2C9A56;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.encuesta-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.encuesta-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.encuesta-info h3 a:hover {
    color: #2C9A56;
}

.encuesta-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-ver {
    color: #2C9A56;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-ver:hover {
    color: #1a7a3d;
}

/* Noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.noticia-card {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.noticia-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.noticia-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
}

.noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    font-size: 36px;
}

.noticia-content {
    padding: 15px 20px 15px 0;
}

.noticia-cat {
    display: inline-block;
    background: #e8f5e9;
    color: #2C9A56;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.noticia-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.noticia-content h3 a {
    color: #333;
    text-decoration: none;
}

.noticia-content h3 a:hover {
    color: #2C9A56;
}

.noticia-meta {
    font-size: 13px;
    color: #999;
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.video-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e5e5;
}

.video-thumb {
    position: relative;
    height: 140px;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(44, 154, 86, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.play-button:hover {
    background: #2C9A56;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h4 {
    padding: 15px;
    font-size: 14px;
    margin: 0;
}

/* ===== SIDEBAR ===== */
.sidebar-column {
    min-width: 0;
}

/* Banners publicitarios */
.banner-ad-box {
    margin-bottom: 30px;
    text-align: center;
}

.banner-ad-box p {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placeholder-ad {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-weight: 600;
}

/* Lo más visto */
.mas-leidas {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.mas-leidas h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2C9A56;
}

.mas-leidas-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.popular-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #2C9A56;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.popular-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-content h4 a {
    color: #333;
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: #2C9A56;
}

.popular-meta {
    font-size: 12px;
    color: #999;
}

/* Columnas/Análisis */
.columnas-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.columnas-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.columna-card {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.columna-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.columna-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.autor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2C9A56;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.autor-nombre {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.columna-fecha {
    font-size: 12px;
    color: #999;
}

.columna-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.columna-card h3 a {
    color: #333;
    text-decoration: none;
}

.columna-card h3 a:hover {
    color: #2C9A56;
}

.columna-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.leer-columna {
    color: #2C9A56;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .encuestas-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .noticia-card {
        flex-direction: column;
    }

    .noticia-thumb {
        width: 100%;
        height: 180px;
    }

    .noticia-content {
        padding: 15px;
    }
}

/* =====================================================
   📄 SINGLE POST / NOTICIA INDIVIDUAL
   ===================================================== */

.single-post {
    background: #f8f9fa;
    padding: 0;
}

/* Banner de imagen destacada */
.post-banner {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.post-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenedor del contenido */
.post-content-single {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px 60px;
    margin-top: -80px;
    position: relative;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

/* Meta header (categoría) */
.post-meta-header {
    margin-bottom: 20px;
}

.post-category {
    display: inline-block;
    background: #2C9A56;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category a {
    color: white;
    text-decoration: none;
}

/* Título del post */
.post-title {
    font-size: 42px;
    font-weight: 900;
    color: #2d2d2d;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Meta info (fecha y autor) */
.meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.meta-info .date {
    font-weight: 600;
    color: #2C9A56;
}

.meta-info .separator {
    color: #ddd;
}

.meta-info .author a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.meta-info .author a:hover {
    color: #2C9A56;
}

/* Contenido del post */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2,
.entry-content h3 {
    font-weight: 800;
    color: #2d2d2d;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.entry-content a {
    color: #2C9A56;
    text-decoration: underline;
    font-weight: 600;
}

.entry-content a:hover {
    color: #1a7a3d;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.entry-content blockquote {
    border-left: 4px solid #2C9A56;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
}

/* Navegación entre posts */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
	padding: 15px 30px;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px  !important;
    background: #f8f9fa;
    color: #2C9A56;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
}

.post-navigation a:hover {
    background: #2C9A56;
    color: white;
    border-color: #2C9A56;
    transform: translateX(-3px);

}

.post-navigation .nav-next a:hover {
    transform: translateX(3px);
	
}

/* CTA Newsletter al final */
.post-cta-newsletter {
    background: linear-gradient(135deg, #2C9A56 0%, #1a7a3d 100%);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    color: white;
}

.post-cta-newsletter h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.post-cta-newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn {
    min-width: 250px;
	
}

/* Botones con estilos actualizados */
.cta-buttons .btn-primary {
    background: white;
    color: #2C9A56;
	
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .post-banner {
        height: 300px;
    }

    .post-content-single {
        padding: 40px 25px;
        margin-top: -50px;
    }

    .post-title {
        font-size: 32px;
    }

    .entry-content {
        font-size: 17px;
    }

    .entry-content h2 {
        font-size: 26px;
    }

    .entry-content h3 {
        font-size: 22px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-cta-newsletter {
        padding: 40px 25px;
    }

    .post-cta-newsletter h2 {
        font-size: 26px;
    }

    .cta-buttons {
        flex-direction: column;
		
    }

    .cta-buttons .btn {
        width: 100%;
		
    }
}

@media (max-width: 480px) {
    .post-content-single {
        padding: 30px 20px;
    }

    .post-title {
        font-size: 28px;
    }

    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .meta-info .separator {
        display: none;
    }
}

/* =====================================================
   📰 NOTICIAS DE ACTUALIDAD
   ===================================================== */

.noticias-destacadas {
    margin-bottom: 60px;
}

.noticias-destacadas .section-header {
    margin-bottom: 30px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Primera noticia (destacada) - ocupa 2 columnas */
.noticia-destacada {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    min-height: 320px;
    transition: all 0.3s ease;
}

.noticia-destacada:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #2C9A56;
}

.noticia-destacada .noticia-thumb {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background: #f5f5f5;
}

.noticia-destacada .noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-destacada:hover .noticia-thumb img {
    transform: scale(1.05);
}

.noticia-destacada .noticia-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-destacada .noticia-cat {
    display: inline-block;
    background: #2C9A56;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.noticia-destacada h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.noticia-destacada h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.noticia-destacada h3 a:hover {
    color: #2C9A56;
}

.noticia-destacada p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.noticia-destacada .noticia-meta {
    font-size: 14px;
    color: #999;
}

/* Noticias secundarias (cards pequeñas) */
/* 🔧 Asegurar fondo claro y contraste del texto */
/* Fix para noticias secundarias */
.noticia-card {
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Forzar altura mínima */
}

.noticia-card .noticia-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticia-card h3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.noticia-card p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2C9A56;
}

.noticia-card .noticia-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.noticia-card .noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-thumb img {
    transform: scale(1.05);
}

.noticia-card .noticia-content {
    padding: 20px;
}

.noticia-card .noticia-cat {
    display: inline-block;
    background: #e8f5e9;
    color: #2C9A56;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.noticia-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}


.noticia-card .noticia-meta {
    font-size: 12px;
    color: #999;
}

/* Placeholder de imagen */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    color: #2C9A56;
    font-size: 48px;
}

.noticia-destacada .placeholder-img {
    font-size: 72px;
}

/* Responsive */
@media (max-width: 1024px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .noticia-destacada {
        grid-template-columns: 1fr;
    }

    .noticia-destacada .noticia-thumb {
        min-height: 250px;
    }

    .noticia-destacada .noticia-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .noticia-destacada .noticia-content {
        padding: 25px;
    }

    .noticia-destacada h3 {
        font-size: 24px;
    }

    .noticia-card .noticia-thumb {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .noticia-destacada .noticia-thumb {
        min-height: 200px;
    }

    .noticia-destacada h3 {
        font-size: 22px;
    }

    .noticia-card h3 {
        font-size: 16px;
    }
}

/* 🩹 Fix para visibilidad de tarjetas en escritorio */
.fade-scroll {
  opacity: 1 !important;
  transform: none !important;
}

/* Refuerzo del texto sobre fondos oscuros */
.noticia-card,
.noticia-card .noticia-content {
  position: relative;
  z-index: 5;
  background: #fff !important;
  color: #333 !important;
}
/* =====================================================
   🎥 SECCIÓN DE VIDEOS - DISEÑO PROFESIONAL
   ===================================================== */

.videos-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.videos-section .section-header {
    margin-bottom: 40px;
}

.videos-section .ver-todas i {
    margin-left: 5px;
    color: #FF0000;
}

/* Grid de videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Card de video */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Thumbnail del video */
.video-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Overlay oscuro al hover */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

/* Botón de play */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    padding-left: 5px; /* Centrar el triángulo */
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    transform: scale(1.2);
    background: #FF0000;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
}

/* Badge de YouTube */
.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.video-badge i {
    color: #FF0000;
}

/* Info del video */
.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 44px; /* Altura consistente */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h4 a {
    color: #2d2d2d !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.video-info h4 a:hover {
    color: #2C9A56;
}

.video-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.video-channel i {
    color: #2C9A56;
}

/* Placeholder de video */
.video-placeholder-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C9A56 0%, #1a7a3d 100%);
    color: white;
    font-size: 56px;
}

/* CTA de YouTube */
.cta-youtube {
    text-align: center;
    margin-top: 40px;
}

.cta-youtube .btn {
    min-width: 280px;
}

.cta-youtube .btn i {
    font-size: 18px;
}

/* Mensaje de error */
.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

.no-videos a {
    color: #2C9A56;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .videos-section {
        padding: 60px 20px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-thumb {
        height: 220px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .video-info h4 {
        font-size: 15px;
        min-height: auto;
    }
}
/* =====================================================
  📧 SECCIÓN CTA + NEWSLETTER - DISEÑO PREMIUM MEJORADO
  ===================================================== */


.cta-newsletter {
    /* Mantenemos el padding */
    padding: 80px 0 !important;

    /* CAMBIO CLAVE: Degradado a Gris/Negro (Alto Contraste) */
    background: 
        linear-gradient(135deg, rgba(29, 29, 29, 0.9) 0%, rgba(51, 51, 51, 0.9) 100%), 
        url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1600&q=80') !important;
    
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Grid */
.cta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Cajas CTA y Newsletter */
.cta-box,
.newsletter-box {
    background: white !important;
    /* ELIMINADO: border: 2px solid #e5e5e5 !important; */
    border-top: 4px solid #2C9A56 !important; /* Toque de color */
    padding: 40px !important;
    border-radius: 20px !important;
    
    /* MEJORA 1: Sombra más sutil y elegante */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.cta-box:hover,
.newsletter-box:hover {
    transform: translateY(-5px) !important;
    /* MEJORA 2: Sombra de hover más sutil */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Títulos */
.cta-box h3,
.newsletter-box h3 {
    /* MEJORA 3: Títulos más grandes e impactantes */
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important; /* Más oscuro */
    margin-bottom: 20px !important; /* Más espacio */
    line-height: 1.15 !important;
    font-family: var(--font-heading) !important;
}

/* Párrafos */
.cta-box p,
.newsletter-box p {
    /* MEJORA 4: Párrafos más legibles */
    font-size: 17px !important;
    color: #444 !important; /* Más oscuro para contraste */
    line-height: 1.7 !important; /* Mejor interlineado */
    margin-bottom: 25px !important;
}

/* Botones CTA */
.cta-buttons {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.cta-buttons .btn {
    flex: 1 !important;
    min-width: 180px !important;
}

/* Botón WhatsApp */
.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: 2px solid #25D366 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.btn-whatsapp:hover {
    background: #1ebe5d !important;
    border-color: #1ebe5d !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    transform: translateY(-3px) !important;
    text-decoration: none !important;
}

/* Formulario newsletter */
.newsletter-form {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.newsletter-form input[type="email"] {
    flex: 1 !important;
    padding: 14px 20px !important;
    /* MEJORA 5: Estilo de campo de email más refinado */
    border: 1px solid #ddd !important; 
    border-radius: 50px !important;
    font-size: 15px !important;
    font-family: var(--font-body) !important;
    transition: all 0.3s ease !important;
    background: white !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); /* Sombra interna sutil */
}

.newsletter-form input[type="email"]:focus {
    outline: none !important;
    border-color: #2C9A56 !important;
    background: white !important;
    /* MEJORA 5: Sombra de foco ajustada */
    box-shadow: 0 0 0 3px rgba(44, 154, 86, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.newsletter-form button[type="submit"] {
    padding: 14px 28px !important;
    white-space: nowrap !important;
    background: #2C9A56 !important;
    color: white !important;
    border: 2px solid #2C9A56 !important;
    border-radius: 50px !important;
    /* MEJORA 6: Botón con más peso visual */
    font-weight: 800 !important; 
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(44, 154, 86, 0.2) !important;
}

.newsletter-form button[type="submit"]:hover {
    background: #1a7a3d !important;
    border-color: #1a7a3d !important;
    transform: translateY(-2px) !important;
    /* MEJORA 6: Sombra de hover más acentuada */
    box-shadow: 0 6px 20px rgba(44, 154, 86, 0.3) !important;
}

/* Nota */
.newsletter-nota {
    font-size: 13px !important;
    color: #999 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-newsletter {
        padding: 60px 20px !important;
    }
    
    .cta-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .cta-box,
    .newsletter-box {
        padding: 30px 25px !important;
    }
    
    .cta-box h3,
    .newsletter-box h3 {
        font-size: 26px !important; /* Ajuste para móvil */
    }
    
    .cta-buttons {
        flex-direction: column !important;
    }
    
    .cta-buttons .btn {
        width: 200px !important;
        min-width: auto !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
    }
    
    .newsletter-form button {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .cta-box,
    .newsletter-box {
        padding: 25px 20px !important;
    }
    
    .cta-box h3,
    .newsletter-box h3 {
        font-size: 22px !important;
    }
}

/* =====================================================
   ⬇️ 2. FOOTER - DISEÑO PROFESIONAL
   ===================================================== */

/* Contenedor principal del footer */
.site-footer {
    background: #1a1a1a !important; /* Fondo muy oscuro, casi negro */
    color: #f0f0f0 !important; /* Texto claro */
    padding-top: 60px !important;
}

/* Contenedor de las columnas (Grid) */
.footer-container {
    display: grid !important;
    /* 3 columnas: 1.5 para el logo/descripción, 1 para cada menú */
    grid-template-columns: 1.5fr 1fr 1fr !important; 
    gap: 40px !important;
    max-width: 1200px !important; 
    margin: 0 auto !important; 
    padding: 0 20px 40px 20px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* Separador sutil */
}

/* Estilo para los títulos de las columnas (Enlaces, Legales) */
.footer-nav h3,
.footer-legal h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2C9A56 !important; /* Título en color primario (Verde) */
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Estilo para el logo y la descripción */
.footer-brand .custom-logo-link {
    display: block !important;
    margin-bottom: 10px !important;
}

/* Nota: Esto asume que el logo es oscuro y necesita contraste. Si ya es blanco, quita 'filter' */
.footer-brand img {
    max-height: 40px !important; 
    width: auto !important;
    filter: brightness(0) invert(1); /* Si el logo es oscuro, lo hacemos blanco */
}

.footer-brand p {
    font-size: 15px !important;
    color: #ccc !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
    max-width: 300px !important;
}

/* Estilo para los menús (Enlaces y Legales) */
.footer-menu, 
.footer-legal ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li,
.footer-legal li {
    margin-bottom: 10px !important;
}

.footer-menu a,
.footer-legal a {
    color: #f0f0f0 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: color 0.3s ease !important;
    padding: 2px 0 !important; 
    display: inline-block !important; 
}

.footer-menu a:hover,
.footer-legal a:hover {
    color: #25D366 !important; /* Hover con un verde ligeramente más claro */
    text-decoration: underline !important;
}

/* Banda de Copyright */
.footer-bottom {
    text-align: center !important;
    padding: 20px !important;
}

.footer-bottom p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #aaa !important;
}


/* =====================================================
   📱 RESPONSIVE - FOOTER
   ===================================================== */

@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px !important;
    }

    .footer-container {
        /* Cambio a una sola columna */
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important; 
        padding-bottom: 30px !important;
    }

    /* Centrar el logo y descripción */
    .footer-brand {
        padding-bottom: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .footer-brand .custom-logo-link {
        display: inline-block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-brand p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-nav h3,
    .footer-legal h3 {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* Centrar los menús */
    .footer-menu, 
    .footer-legal ul {
        text-align: center !important;
    }
    
    /* Mostrar elementos del menú en línea para ahorrar espacio */
    .footer-menu li,
    .footer-legal li {
        display: inline-block !important;
        margin: 0 10px !important;
    }
    
    .footer-menu li:last-child,
    .footer-legal li:last-child {
        margin-right: 0 !important;
    }
}


/* =====================================================
   🍪 3. BANNER DE COOKIES
   ===================================================== */

.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(26, 26, 26, 0.95) !important; /* Oscuro y semitransparente */
    color: #fff !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1000 !important; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
}

.cookie-banner p {
    flex: 1 !important;
    margin: 0 20px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.cookie-banner a {
    color: #25D366 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    margin-left: 5px !important;
}

.cookie-actions {
    display: flex !important;
    gap: 10px !important;
}

/* Botón Principal (Aceptar) */
.cookie-actions .btn-primary {
    background: #2C9A56 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.cookie-actions .btn-primary:hover {
    background: #1a7a3d !important;
}

/* Botón Secundario (Rechazar) */
.cookie-actions .btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.cookie-actions .btn-outline:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* Responsive del banner */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-bottom: 80px !important; 
    }

    .cookie-banner p {
        margin: 0 0 15px 0 !important;
    }

    .cookie-actions {
        width: 100% !important;
    }

    .cookie-actions button {
        flex: 1 !important; 
    }
}

.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    /* Usamos 'display: none' por defecto en el HTML. */
    background: rgba(26, 26, 26, 0.95) !important; 
    color: #fff !important;
    padding: 15px 20px !important;
    
    /* Estado inicial: oculto y preparado para la animación (si la quieres) */
    display: none !important;
    
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1000 !important; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* CLASE AÑADIDA POR JS: Esto sobrescribe el 'display: none' cuando es necesario mostrarlo. */
/* Al tener la clase 'is-visible', se fuerza el display. */
.cookie-banner.is-visible {
    display: flex !important;
}

/* =====================================================
   🎨 MODAL VOXPOLL - DISEÑO PREMIUM DESDE CERO
   ===================================================== */

/* Overlay */
.voxpoll-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voxpoll-modal.is-open {
    display: block;
    opacity: 1;
}

/* Wrapper con scroll */
.voxpoll-modal-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Container del modal */
.voxpoll-modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón cerrar */
.voxpoll-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.voxpoll-modal-close:hover {
    background: #2C9A56;
    color: white;
    transform: rotate(90deg);
}

/* Header */
.voxpoll-modal-header {
    padding: 48px 48px 32px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.voxpoll-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C9A56;
}

.voxpoll-modal-title {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.voxpoll-modal-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Body */
.voxpoll-modal-body {
    padding: 40px 48px;
}

/* Formularios */
.voxpoll-form {
    display: none;
}

.voxpoll-form.active-form {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Form rows */
.voxpoll-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Form fields */
.voxpoll-form-field {
    margin-bottom: 20px;
}

.voxpoll-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.voxpoll-form-field input,
.voxpoll-form-field textarea,
.voxpoll-form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.voxpoll-form-field input:focus,
.voxpoll-form-field textarea:focus,
.voxpoll-form-field select:focus {
    outline: none;
    border-color: #2C9A56;
    box-shadow: 0 0 0 4px rgba(44, 154, 86, 0.1);
}

.voxpoll-form-field input::placeholder,
.voxpoll-form-field textarea::placeholder {
    color: #aaa;
}

.voxpoll-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.voxpoll-form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* Botón submit */
.voxpoll-btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2C9A56 0%, #1a7a3d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(44, 154, 86, 0.3);
    margin-top: 30px;
}

.voxpoll-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 154, 86, 0.4);
}

.voxpoll-btn-submit svg {
    transition: transform 0.3s ease;
}

.voxpoll-btn-submit:hover svg {
    transform: translateX(4px);
}

/* Footer */
.voxpoll-modal-footer {
    padding: 24px 48px 40px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.voxpoll-modal-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.voxpoll-modal-footer a {
    color: #2C9A56;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voxpoll-modal-footer a:hover {
    color: #1a7a3d;
    text-decoration: underline;
}

/* =====================================================
   📱 RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .voxpoll-modal-wrapper {
        padding: 20px 15px;
    }
    
    .voxpoll-modal-container {
        border-radius: 20px;
    }
    
    .voxpoll-modal-header {
        padding: 40px 30px 24px;
    }
    
    .voxpoll-modal-title {
        font-size: 26px;
    }
    
    .voxpoll-modal-body {
        padding: 32px 30px;
    }
    
    .voxpoll-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .voxpoll-modal-footer {
        padding: 20px 30px 32px;
    }
    
    .voxpoll-modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .voxpoll-modal-header {
        padding: 32px 24px 20px;
    }
    
    .voxpoll-modal-body {
        padding: 24px;
    }
    
    .voxpoll-modal-footer {
        padding: 16px 24px 28px;
    }
    
    .voxpoll-modal-title {
        font-size: 24px;
    }
    
    .voxpoll-modal-subtitle {
        font-size: 14px;
    }
}

/* =====================================================
   📊 PÁGINA DE ENCUESTAS - DISEÑO PREMIUM
   ===================================================== */

.encuestas-page {
    background: #f8f9fa;
}

/* =====================================================
   🎯 HERO DE ENCUESTAS
   ===================================================== */

.servicios-hero {
    background: linear-gradient(135deg, #1a5a35 0%, #2C9A56 50%, #34a85f 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil */
.servicios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.servicios-hero .contenedor {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-brand {
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* =====================================================
   🔍 SECCIÓN DE FILTROS
   ===================================================== */

.filtros-encuestas {
    background: white;
    padding: 50px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.filtro-encuestas {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filtro-encuestas label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-encuestas select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C9A56' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
}

.filtro-encuestas select:focus {
    outline: none;
    border-color: #2C9A56;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 154, 86, 0.1);
}

.filtro-encuestas select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.filtro-encuestas button[type="submit"] {
    padding: 14px 32px;
    white-space: nowrap;
    align-self: end;
}

/* =====================================================
   📋 LISTADO DE ENCUESTAS
   ===================================================== */

.encuestas-lista {
    padding: 80px 20px;
}

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

/* Card de encuesta */
.servicio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Thumbnail */
.servicio-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    position: relative;
}

.servicio-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-card:hover .servicio-thumb::after {
    opacity: 1;
}

.servicio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Contenido del card */
.servicio-card h3 {
    padding: 24px 24px 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.servicio-card h3 a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.servicio-card h3 a:hover {
    color: #2C9A56;
}

.servicio-card p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Botón "Leer más" / "Ver más" sin estilos de link */
.servicio-card .btn,
.servicio-card .btn-secondary,
.servicio-card a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    background: white !important;
    color: #2C9A56 !important;
    border: 2px solid #2C9A56 !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.servicio-card .btn:hover,
.servicio-card .btn-secondary:hover {
    background: #2C9A56 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Placeholder para cards sin imagen */
.servicio-thumb:empty::before {
    content: '📊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
}

/* =====================================================
   📄 PAGINACIÓN
   ===================================================== */

.paginacion {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: #2C9A56;
    color: #2C9A56;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: #2C9A56;
    border-color: #2C9A56;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 154, 86, 0.3);
}

.pagination .prev,
.pagination .next {
    font-size: 15px;
    padding: 0 20px;
}

/* Mensaje cuando no hay encuestas */
.encuestas-lista p {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* =====================================================
   📱 RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .servicios-hero {
        padding: 100px 20px 60px;
    }
    
    .hero-brand {
        font-size: 42px;
    }
    
    .hero-subtitle p {
        font-size: 18px;
    }
    
    .filtros-encuestas {
        padding: 40px 20px;
        margin-top: -30px;
    }
    
    .filtro-encuestas {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filtro-encuestas button[type="submit"] {
        width: 100%;
    }
    
    .encuestas-lista {
        padding: 60px 20px;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .servicios-hero {
        padding: 80px 15px 50px;
    }
    
    .hero-brand {
        font-size: 36px;
    }
    
    .hero-subtitle p {
        font-size: 16px;
    }
    
    .filtros-encuestas {
        padding: 30px 15px;
    }
    
    .servicio-card h3 {
        font-size: 18px;
        padding: 20px 20px 10px;
    }
    
    .servicio-card p {
        padding: 0 20px 16px;
        font-size: 14px;
    }
}

/* =====================================================
   ✨ ANIMACIONES
   ===================================================== */

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Placeholder en thumbnail vacío */
.servicio-thumb .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
}

/* No resultados mejorado */
.no-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-resultados-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.no-resultados h3 {
    font-size: 28px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 0 0 15px 0;
}

.no-resultados p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    padding: 0;
}

/* =====================================================
   👥 PÁGINA NOSOTROS - DISEÑO PREMIUM
   ===================================================== */

.nosotros-page {
    background: white;
}

/* =====================================================
   🎯 HERO NOSOTROS
   ===================================================== */

.nosotros-hero {
    background: linear-gradient(135deg, #1a5a35 0%, #2C9A56 50%, #34a85f 100%);
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.nosotros-hero h1 {
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin: 0 0 24px 0;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nosotros-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   📖 QUIÉNES SOMOS
   ===================================================== */

.quienes-somos {
    padding: 100px 20px;
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 42px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.content-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.content-text p strong {
    color: #2C9A56;
    font-weight: 700;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 154, 86, 0.1) 100%);
}

/* =====================================================
   👨‍🏫 DIRECTOR
   ===================================================== */

.director-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

.director-card {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 400px 1fr;
}

.director-image {
    position: relative;
    background: linear-gradient(135deg, #1a5a35 0%, #2C9A56 100%);
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.director-badge i {
    color: #2C9A56;
    font-size: 20px;
}

.director-badge span {
    font-weight: 700;
    color: #2d2d2d;
    font-size: 14px;
}

.director-content {
    padding: 50px;
}

.director-content h2 {
    font-size: 36px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.director-title {
    font-size: 18px;
    color: #2C9A56;
    font-weight: 700;
    margin-bottom: 30px;
}

.director-bio p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.instituciones-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.instituciones-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #666;
}

.instituciones-list i {
    color: #2C9A56;
    font-size: 16px;
}

/* =====================================================
   📊 EXPERIENCIA EN NÚMEROS
   ===================================================== */

.experiencia-numeros {
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 60px 0;
}

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

.numero-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid #2C9A56;
}

.numero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(44, 154, 86, 0.2);
}

.numero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #2C9A56;
}

.numero-valor {
    font-size: 48px;
    font-weight: 900;
    color: #2C9A56;
    margin-bottom: 10px;
}

.numero-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* =====================================================
   💪 FORTALEZA
   ===================================================== */

.fortaleza-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

.fortaleza-items {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fortaleza-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.fortaleza-item i {
    color: #2C9A56;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.fortaleza-item h4 {
    font-size: 20px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 0 0 8px 0;
}

.fortaleza-item p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* =====================================================
   🚀 TECNOLOGÍA
   ===================================================== */

.tecnologia-section {
    padding: 100px 20px;
}

.tech-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.tech-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.tech-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

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

.tech-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(44, 154, 86, 0.15);
}

.tech-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 0 0 12px 0;
}

.tech-card p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   💡 FILOSOFÍA
   ===================================================== */

.filosofia-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a5a35 0%, #2C9A56 100%);
    position: relative;
    overflow: hidden;
}

.filosofia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.filosofia-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.filosofia-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.filosofia-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: white;
    margin: 0 0 30px 0;
}

.filosofia-quote {
    font-size: 28px;
    font-weight: 700;
    color: white;
    font-style: italic;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.filosofia-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   📞 CTA FINAL
   ===================================================== */

.nosotros-cta {
    padding: 100px 20px;
    background: #f8f9fa;
}

.nosotros-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.nosotros-cta h2 {
    font-size: 42px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 20px 0;
}

.nosotros-cta p {
    font-size: 20px;
    color: #666;
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: #2C9A56;
    border: 2px solid #2C9A56;
}

.btn-outline-white:hover {
    background: #2C9A56;
    color: white;
}

/* =====================================================
   📱 RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .director-card {
        grid-template-columns: 1fr;
    }
    
    .director-image {
        height: 400px;
    }
    
    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nosotros-hero h1 {
        font-size: 42px;
    }
    
    .nosotros-hero p {
        font-size: 18px;
    }
    
    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    
    .content-text h2,
    .section-title {
        font-size: 32px;
    }
    
    .director-content {
        padding: 40px 30px;
    }
    
    .director-content h2 {
        font-size: 28px;
    }
    
    .instituciones-list {
        grid-template-columns: 1fr;
    }
    
    .numeros-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .filosofia-quote {
        font-size: 22px;
    }
    
    .nosotros-cta h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .nosotros-hero {
        padding: 100px 15px 70px;
    }
    
    .nosotros-hero h1 {
        font-size: 32px;
    }
    
    .director-content {
        padding: 30px 20px;
    }
    
    .numero-valor {
        font-size: 36px;
    }
}

/* Animaciones */
.fade-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   📞 PÁGINA DE CONTACTO - DISEÑO PREMIUM
   ===================================================== */
   
   .contacto-page {
    background: white;
}

/* =====================================================
   🎯 HERO CONTACTO
   ===================================================== */

.contacto-hero {
    background: linear-gradient(135deg, #1a5a35 0%, #2C9A56 50%, #34a85f 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.contacto-hero .contenedor {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contacto-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.contacto-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.contacto-page {
    background: #f8f9fa;
    padding: 100px 0;
}

.contacto-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   GRID 2 COLUMNAS
   ===================================================== */

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

/* =====================================================
   📝 COLUMNA FORMULARIO
   ===================================================== */

.contacto-form {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.contacto-form h2 {
    font-size: 36px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.subtexto {
    font-size: 17px;
    color: #666;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

/* Estilos del formulario */
.contacto-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacto-form input[type="text"],
.contacto-form input[type="email"],
.contacto-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 25px;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #2C9A56;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 154, 86, 0.1);
}

.contacto-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Botón submit */
.contacto-form button[type="submit"] {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #2C9A56 0%, #1a7a3d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(44, 154, 86, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacto-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(44, 154, 86, 0.4);
}

.nota-confianza {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* =====================================================
   📞 COLUMNA INFORMACIÓN
   ===================================================== */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contacto-info h2 {
    font-size: 32px;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 12px 0;
}

.contacto-info > p {
    font-size: 17px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Botones de contacto */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-contact i {
    font-size: 22px;
}

/* WhatsApp */
.btn-contact.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1ebe5d 100%);
    color: white;
}

.btn-contact.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Email */
.btn-contact.email {
    background: white;
    color: #2d2d2d;
    border: 2px solid #e5e5e5;
}

.btn-contact.email:hover {
    border-color: #2C9A56;
    color: #2C9A56;
    transform: translateY(-3px);
}

.btn-contact.email i {
    color: #EA4335;
}

/* Teléfono */
.btn-contact.phone {
    background: white;
    color: #2d2d2d;
    border: 2px solid #e5e5e5;
}

.btn-contact.phone:hover {
    border-color: #2C9A56;
    color: #2C9A56;
    transform: translateY(-3px);
}

.btn-contact.phone i {
    color: #4285F4;
}

/* Redes sociales circulares */
.social-links.circle {
    display: flex;
    gap: 15px;
    padding: 25px 0;
    border-top: 2px solid #e5e5e5;
    border-bottom: 2px solid #e5e5e5;
}

.social-links a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-links a.whatsapp {
    background: #25D366;
    color: white;
}

.social-links a.whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-5px) scale(1.1);
}

.social-links a.facebook {
    background: #1877F2;
    color: white;
}

.social-links a.facebook:hover {
    background: #0d5dbf;
    transform: translateY(-5px) scale(1.1);
}

.social-links a.twitter {
    background: #1DA1F2;
    color: white;
}

.social-links a.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-5px) scale(1.1);
}

.social-links a.instagram {
    background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
    color: white;
}

.social-links a.instagram:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Nota de autoridad */
.nota-autoridad {
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #2C9A56;
    font-size: 16px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}

/* =====================================================
   🗺️ MAPA
   ===================================================== */

.contacto-mapa {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contacto-mapa h3 {
    font-size: 24px;
    font-weight: 800;
    color: #2d2d2d;
    margin: 0 0 20px 0;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    padding-top: 60%;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   📱 RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-form {
        position: static;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contacto-page {
        padding: 60px 0;
    }

    .contacto-form {
        padding: 35px 30px;
    }

    .contacto-form h2 {
        font-size: 28px;
    }

    .contacto-info h2 {
        font-size: 26px;
    }

    .btn-contact {
        padding: 16px 24px;
        font-size: 15px;
    }

    .social-links.circle {
        justify-content: center;
    }

    .contacto-mapa {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .contacto-form {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .contacto-form h2 {
        font-size: 24px;
    }

    .subtexto {
        font-size: 15px;
    }

    .contacto-form input[type="text"],
    .contacto-form input[type="email"],
    .contacto-form textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    .btn-contact {
        padding: 14px 20px;
        font-size: 14px;
    }

    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* =====================================================
   ✨ ANIMACIONES
   ===================================================== */

.contacto-form,
.contacto-info > * {
    animation: fadeInUp 0.6s ease;
}

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

/* Estados de validación */
.contacto-form input:invalid:not(:placeholder-shown),
.contacto-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

.contacto-form input:valid:not(:placeholder-shown),
.contacto-form textarea:valid:not(:placeholder-shown) {
    border-color: #2C9A56;
}