/* ============================================
   VARIABLES Y RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a9f8e;
    --primary-light: #6bbbad;
    --primary-dark: #357f70;
    --secondary: #f8b500;
    --tertiary: #81206c;
    --accent: #e76f51;
    --accent-light: #f4a261;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --purple-light: #a37baa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER - MENÚ RESPONSIVO MEJORADO
   ============================================ */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-psi {
    width: 70px;
    height: 35px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--tertiary);
    margin-left: 10px;
}

/* Menú Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: rgba(74, 159, 142, 0.08);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 60%;
}

/* Botón Menú Móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 1001;
    line-height: 1;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-menu-btn .fa-bars,
.mobile-menu-btn .fa-times {
    transition: transform 0.3s;
}

.mobile-menu-btn.active .fa-bars {
    display: none;
}

.mobile-menu-btn .fa-times {
    display: none;
}

.mobile-menu-btn.active .fa-times {
    display: inline-block;
}

/* Overlay del menú */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Responsive Menú Móvil --- */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .header-container {
        margin: 10px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 30px 40px;
        gap: 0;
        z-index: 1000;
        animation: menuSlideIn 0.3s ease forwards;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        max-width: 400px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 16px 20px;
        display: block;
        border-radius: 0;
        font-weight: 600;
        color: var(--dark);
        transition: all 0.3s;
    }
    
    .nav-menu a:hover {
        background: rgba(74, 159, 142, 0.1);
        color: var(--primary);
        transform: translateX(5px);
    }
    
    .nav-menu a:after {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .logo-psi {
        width: 55px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 14px;
        margin-left: 6px;
    }
    .header-container {
        margin: 10px;
    }
    
    .mobile-menu-btn {
        font-size: 18px;
        padding: 6px 12px;
    }
    
    .nav-menu {
        padding: 70px 20px 30px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 14px 16px;
    }
}

@media (min-width: 993px) {
    .menu-overlay {
        display: none !important;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(129, 32, 108, 0.85) 0%, rgba(74, 159, 142, 0.85) 100%), url('IMAG/ima2.jpg') no-repeat center center/cover;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 25px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-highlight {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
}

.hero-tag {
    background-color: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: white;
    color: var(--primary);
    margin-right: 10px;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary);
}

.btn-tertiary {
    background-color: var(--tertiary);
    color: white;
}

.btn-tertiary:hover {
    background-color: var(--accent-light);
    color: var(--dark);
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* ============================================
   SOBRE MÍ
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.about-text .subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-text .intro {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

.credentials > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials i {
    color: var(--primary);
    font-size: 1.2rem;
}

.credentials p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   ACORDEÓN
   ============================================ */
.accordion {
    margin: 20px 0 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* ============================================
   FORMACIÓN
   ============================================ */
.formacion-simple {
    padding: 60px 0;
    background-color: #fafafa;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.foto-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.foto-item:hover {
    transform: translateY(-5px);
}

.foto-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.info-extra {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-extra p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--dark);
}

.info-extra i {
    color: var(--primary);
    margin-right: 10px;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    background-color: var(--light);
    padding: 60px 0;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid #af1d83;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(2) {
    border-top-color: var(--tertiary);
}
.service-card:nth-child(3) {
    border-top-color: var(--accent);
}
.service-card:nth-child(4) {
    border-top-color: var(--accent-light);
}
.service-card:nth-child(5) {
    border-top-color: var(--purple-light);
}
.service-card:nth-child(6) {
    border-top-color: var(--secondary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: var(--primary-dark);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray);
    flex-grow: 1;
}

.servicio-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ============================================
   CERTIFICADOS
   ============================================ */
.certificates {
    background-color: #f5f9ff;
}

.certificate-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

.certificates-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.certificates-grid-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 15px);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
}

.certificates-grid-scroll::-webkit-scrollbar {
    display: none;
}

.certificate-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 220px;
    min-height: 200px;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-img-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.certificate-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.certificate-img-container:hover .certificate-thumb {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.certificate-img-container:hover .certificate-overlay {
    opacity: 1;
}

.view-cert-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-cert-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.certificates-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--light-gray);
}

.cert-counter {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   MODAL CERTIFICADOS
   ============================================ */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cert-modal.active {
    display: flex !important;
}

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    animation: modalFade 0.3s;
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(0,0,0,0.8);
}

.modal-image-container {
    max-height: 70vh;
    overflow: auto;
    text-align: center;
}

.modal-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.modal-cert-info {
    padding: 20px;
    text-align: center;
}

.modal-cert-info h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.modal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-nav button {
    padding: 10px 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-nav button:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   ENFOQUE
   ============================================ */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 25px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
}

.step:nth-child(2) {
    border-top-color: var(--tertiary);
}
.step:nth-child(3) {
    border-top-color: var(--accent);
}
.step:nth-child(4) {
    border-top-color: var(--secondary);
}

.step-number {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray);
}

/* ============================================
   EVENTOS PASADOS
   ============================================ */
.events {
    background-color: var(--light);
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.event-date {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--purple-light) 100%);
    color: white;
    padding: 15px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    font-weight: 500;
}

.event-content {
    padding: 20px;
    flex: 1;
}

.event-content h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.event-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray);
}

.event-tag {
    background-color: var(--light-gray);
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 10px;
}

/* ============================================
   EVENTOS DESTACADOS - MEJORADO RESPONSIVE
   ============================================ */
.event-single-section {
    background-color: var(--light);
    padding: 60px 0;
}

.event-single-section .event-single-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.event-gallery {
    padding: 30px;
    background: #fafafa;
}

.event-main-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.event-main-image img {
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.event-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.event-thumbnails .thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.event-thumbnails .thumb:hover {
    opacity: 1;
}

.event-thumbnails .thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.event-info {
    padding: 40px 40px 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.event-date-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.event-date-large .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-large .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.event-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
}

.event-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-event-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-event-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 159, 142, 0.35);
}

.btn-event-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.btn-event-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Programa del evento */
.event-program {
    margin-top: 40px;
    display: grid;
    gap: 30px;
    align-items: start;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 50px;
}

.program-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.program-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.program-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.program-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.program-item h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 3px;
}

.program-item p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

.program-instructor {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-right: 50px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Evento Alzheimer */
.event-alzheimer-wrapper {
    background-color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 50px;
    padding: 40px 30px;
}

.event-alzheimer-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
}

.event-alzheimer-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.event-alzheimer-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 50%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.event-alzheimer-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .event-alzheimer-wrapper {
        padding: 25px 15px;
        border-radius: 25px;
    }
    
    .event-alzheimer-title {
        font-size: 1.4rem;
    }
    
    .event-alzheimer-images {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }
    
    .event-alzheimer-images img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .event-alzheimer-wrapper {
        padding: 20px 12px;
        border-radius: 20px;
    }
    
    .event-alzheimer-title {
        font-size: 1.1rem;
    }
    
    .event-alzheimer-images img {
        height: 180px;
    }
}

.instructor-img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 4px solid var(--primary-light);
}

.program-instructor h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.program-instructor p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Detalles inferiores */
.event-details-bottom {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.detail-box {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    align-items: center;
    justify-content: center;
}

.detail-box:hover {
    transform: translateY(-5px);
}

.detail-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Responsive Eventos Destacados --- */
@media (max-width: 992px) {
    .event-single-section .event-single-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
        margin-top: 25px;
    }

    .event-gallery {
        padding: 20px;
    }

    .event-main-image {
        height: 260px;
        border-radius: 10px;
    }

    .event-info {
        padding: 30px 30px 35px;
    }

    .event-program {
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 16px;
    }

    .program-instructor {
        margin-right: 0;
    }

    .program-instructor img {
        max-width: 100%;
        height: 200px;
    }

    .event-details-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .event-single-section {
        padding: 40px 0;
    }

    .event-single-section .section-title h2 {
        font-size: 1.4rem;
    }

    .event-single-section .section-title p {
        font-size: 0.9rem;
    }

    .event-single-section .event-single-card {
        border-radius: 12px;
        margin-top: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    }

    .event-gallery {
        padding: 15px;
    }

    .event-main-image {
        height: 200px;
        border-radius: 8px;
    }

    .event-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .event-thumbnails .thumb {
        height: 50px;
        border-radius: 6px;
        border-width: 2px;
    }

    .event-info {
        padding: 20px 20px 25px;
    }

    .event-header-info {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .event-date-large {
        padding: 10px 18px;
        min-width: 80px;
        border-radius: 10px;
    }

    .event-date-large .day {
        font-size: 1.6rem;
    }

    .event-date-large .month {
        font-size: 0.7rem;
    }

    .event-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .event-description p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .event-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-event-primary,
    .btn-event-secondary {
        justify-content: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 30px;
        text-align: center;
    }

    .event-program {
        grid-template-columns: 1fr;
        gap: 15px;
        border-radius: 12px;
        margin-top: 25px;
    }

    .program-content {
        padding: 20px;
        border-radius: 12px;
    }

    .program-items {
        gap: 14px;
    }

    .program-item {
        gap: 10px;
        padding-bottom: 12px;
        flex-direction: column;
    }

    .program-item:last-child {
        padding-bottom: 0;
    }

    .program-item h4 {
        font-size: 0.95rem;
    }

    .program-item p {
        font-size: 0.85rem;
    }

    .program-instructor {
        padding: 20px;
        margin-right: 0;
        border-radius: 12px;
    }

    .instructor-img {
        max-width: 100%;
        height: 170px;
        border-radius: 10px;
        border-width: 3px;
    }

    .program-instructor h3 {
        font-size: 1rem;
    }

    .program-instructor p {
        font-size: 0.85rem;
    }

    .event-details-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .detail-box {
        padding: 18px;
        border-radius: 10px;
    }

    .detail-box img {
        border-radius: 6px;
    }

    /* Corrección para sección de 2 imágenes en fila */
    .program-instructor[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .program-instructor[style*="grid-template-columns: 1fr 1fr"] img {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .event-single-section {
        padding: 30px 0;
    }

    .event-single-section .section-title h2 {
        font-size: 1.2rem;
    }

    .event-single-section .section-title p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .event-gallery {
        padding: 12px;
    }

    .event-main-image {
        height: 160px;
        border-radius: 6px;
    }

    .event-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .event-thumbnails .thumb {
        height: 40px;
        border-radius: 4px;
        border-width: 2px;
    }

    .event-info {
        padding: 15px 15px 20px;
    }

    .event-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-date-large {
        padding: 8px 14px;
        min-width: auto;
        border-radius: 8px;
    }

    .event-date-large .day {
        font-size: 1.3rem;
    }

    .event-date-large .month {
        font-size: 0.65rem;
    }

    .event-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .event-description p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .btn-event-primary,
    .btn-event-secondary {
        font-size: 0.85rem;
        padding: 10px 16px;
        border-radius: 25px;
    }

    .btn-event-primary i,
    .btn-event-secondary i {
        font-size: 0.85rem;
    }

    .event-program {
        gap: 12px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .program-content {
        padding: 15px;
        border-radius: 10px;
    }

    .program-items {
        gap: 12px;
    }

    .program-item {
        gap: 6px;
        padding-bottom: 10px;
    }

    .program-item h4 {
        font-size: 0.9rem;
    }

    .program-item p {
        font-size: 0.8rem;
    }

    .program-instructor {
        padding: 15px;
        border-radius: 10px;
    }

    .instructor-img {
        height: 140px;
        border-radius: 8px;
        border-width: 2px;
    }

    .program-instructor h3 {
        font-size: 0.95rem;
    }

    .program-instructor p {
        font-size: 0.8rem;
    }

    .event-details-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .detail-box {
        padding: 14px;
        border-radius: 8px;
    }

    .program-instructor[style*="grid-template-columns: 1fr 1fr"] img {
        height: 160px !important;
    }
}

/* Mejora de tocabilidad en móviles */
@media (max-width: 768px) {
    .event-thumbnails .thumb {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .event-thumbnails .thumb:active {
        transform: scale(0.95);
        opacity: 0.7;
    }

    .btn-event-primary:active,
    .btn-event-secondary:active {
        transform: scale(0.97);
        opacity: 0.8;
    }
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 22px;
    color: var(--primary);
    margin-right: 12px;
    margin-top: 5px;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--tertiary) 100%);
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.credential-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 8px;
    border-left: 3px solid var(--secondary);
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE GENERAL (OTRAS SECCIONES)
   ============================================ */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 12px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .event-details-bottom {
        grid-template-columns: 1fr 1fr;
    }
    
    .certificates-grid-scroll {
        grid-auto-columns: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        margin-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        margin-right: 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .services-carousel .owl-nav {
        display: none;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .certificates-grid-scroll {
        grid-auto-columns: calc(50% - 15px);
    }
    
    .certificates-scroll-container {
        padding: 0 40px;
    }
    
    .certificates-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
    }
    
    .about-text h3,
    .about-text .subtitle,
    .about-text .intro,
    .about-text .accordion {
        order: 1;
    }
    
    .about-text .credentials {
        order: 2;
        margin: 25px 0 20px;
    }
    
    .about-image {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .about-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        border-radius: 15px;
    }
    
    .credentials {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .hero-tags {
        gap: 8px;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .fotos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .foto-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .servicio-img {
        height: 150px;
    }
    
    .service-card h3,
    .step h3,
    .event-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .certificates-grid-scroll {
        grid-auto-columns: calc(100% - 15px);
    }
    
    .program-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-box {
        padding: 18px;
    }
    
    .about-image img {
        height: auto;
        max-height: 300px;
    }
}

/* ============================================
   MODAL PARA IMÁGENES DE EVENTOS
   ============================================ */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.event-modal.active {
    display: flex !important;
}

.event-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    animation: modalFade 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-modal-image-container {
    max-height: 70vh;
    overflow: auto;
    text-align: center;
    padding: 20px;
    background: #fafafa;
}

.event-modal-image-container img {
    max-width: 100%;
    max-height: 65vh;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.event-modal-info {
    padding: 20px 30px 25px;
    text-align: center;
    background: white;
}

.event-modal-info h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.event-modal-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.close-event-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-event-modal:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Animación para el modal */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .event-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .event-modal-image-container {
        max-height: 60vh;
        padding: 15px;
    }
    
    .event-modal-image-container img {
        max-height: 55vh;
    }
    
    .event-modal-info {
        padding: 15px 20px 20px;
    }
    
    .event-modal-info h3 {
        font-size: 1.1rem;
    }
    
    .close-event-modal {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .event-modal-image-container {
        padding: 10px;
    }
    
    .event-modal-image-container img {
        max-height: 50vh;
    }
    
    .event-modal-info h3 {
        font-size: 1rem;
    }
    
    .event-modal-info p {
        font-size: 0.85rem;
    }
}