/* ============================================
   VARIABLES CSS - TEMA CLARO (por defecto)
   ============================================ */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #f8f9fa;
    --bg-card: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #777;
    --text-heading: #2e2e2e;
    --text-dark: #555;
    --brand-blue: #062962;
    --brand-yellow: #F6B802;
    --border-color: var(--border-color);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
    --input-bg: #fff;
    --contact-card-bg: #f8f9fa;
    --cert-bg: #f5f5f5;
    --event-type-bg: #f5f5f5;
    --process-step-bg: #f8f9fa;
    --video-card-bg: #f8f9fa;
    --event-service-bg: #f8f9fa;
    --advantage-item-bg: #fff;
    --service-detail-bg: #f8f9fa;
    --carrusel-bg: #fff;
    --transition-theme: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ============================================
   VARIABLES CSS - TEMA OSCURO
   ============================================ */
body.dark-mode {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #1e2130;
    --bg-card: #1e2130;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-heading: #f1f5f9;
    --text-dark: #cbd5e1;
    --brand-blue: #3b82f6;
    --brand-yellow: #F6B802;
    --border-color: #2d3748;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.4);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.5);
    --input-bg: #1a1d27;
    --contact-card-bg: #1e2130;
    --cert-bg: #1e2130;
    --event-type-bg: #1e2130;
    --process-step-bg: #1e2130;
    --video-card-bg: #1e2130;
    --event-service-bg: #1e2130;
    --advantage-item-bg: #1a1d27;
    --service-detail-bg: #1e2130;
    --carrusel-bg: #1e2130;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: var(--bg-primary);
    line-height: 1.6;
    color: var(--text-primary);
    transition: var(--transition-theme);
}

/* ============================================
   BOTÓN DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    width: 52px;
    height: 28px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px;
    margin-left: 15px;
    transition: border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: #F6B802;
}

.theme-toggle-track {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    position: relative;
}

.theme-toggle-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F6B802;
    top: 50%;
    transform: translateY(-50%);
    left: 2px;
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

body.dark-mode .theme-toggle-thumb {
    left: calc(100% - 22px);
}

body.dark-mode .theme-toggle {
    border-color: rgba(246,184,2,0.5);
    background: rgba(246,184,2,0.1);
}

/* Header encabezado de la pagina*/
header {
    height: 120px;
    background: #062962;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container_header {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Logo img {
    width: 180px;
    height: auto;
}

.menu nav ul {
    display: flex;
    list-style: none;
}

.menu nav ul li {
    padding: 0 20px;
}

.menu nav ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #FFF;
    transition: color 0.3s ease;
    position: relative;
}

.menu nav ul li a.active {
    color: #F6B802;
}

.menu nav ul li a:hover {
    color: #F6B802;
}

.menu nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #F6B802;
    transition: width 0.3s ease;
}

.menu nav ul li a:hover::after,
.menu nav ul li a.active::after {
    width: 100%;
}

.btn_header-events {
    padding: 14px 30px;
    margin-left: 20px;
    border: none;
    background-color: #F6B802;
    color: #FFF;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn_header-events:hover,
.btn_header-events.active {
    background: #FDFD2F;
    transform: translateY(-2px);
}

#icon_menu {
    display: none;
    color: #F5F5F5;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#icon_menu:hover {
    color: #F6B802;
}

/* Contenido del main*/
main {
    width: 100%;
    max-width: 1200px;
    margin: 140px auto 0;
    padding: 40px;
}

/* Página de inicio - Cover  */
.cover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 40px;
    margin-bottom: 80px;
}

.text_information-cover {
    flex: 1;
    max-width: 50%;
}

.text_information-cover h1 {
    font-size: clamp(32px, 5vw, 50px);
    text-align: left;
    color: var(--text-heading);
    margin-bottom: 20px;
    font-weight: 700;
}

.text_information-cover p {
    font-size: 18px;
    margin-top: 20px;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.8;
}

.buttons_cover {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn_contactenos-cover,
.btn_services-cover {
    padding: 14px 25px;
    border: none;
    background-color: #121214;
    color: #FFF;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn_contactenos-cover:hover,
.btn_services-cover:hover {
    background-color: #F6B802;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.media_cover {
    flex: 1;
    max-width: 50%;
}

.media_cover video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Seccion dedicada al banner */
.container_banner {
    margin: 80px 0;
}

.banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #121214 0%, #2a2a2a 100%);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.banner_icon-conector {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#icon_conector {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(-40px 0px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.banner_text {
    flex: 1;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.banner_text h2 {
    color: #FFF;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
}

.banner_text a {
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    color: #F6B802;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 12px 25px;
    border: 2px solid #F6B802;
    border-radius: 25px;
}

.banner_text a:hover {
    background: #F6B802;
    color: #121214;
}

.banner_icon-generador {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#icon_generador {
    width: 300px;
    height: auto;
    opacity: 0.6;
    margin-top: -50px;
}

/* Diseño del home de la pagina principal */

.home-body {
    padding: 40px 0;
}

.home-body-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.body-text h2 {
    text-align: justify;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.body-text p {
    text-align: justify;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.body-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50% / 20%;
}

/* Tarjetas del body  */

.home-features {
    padding: 80px 0;
}

.home-features h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.home-feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.home-feature-card:hover {
    transform: translateY(-10px);
    border-color: #F6B802;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.home-feature-card i {
    font-size: 48px;
    color: #F6B802;
    margin-bottom: 20px;
}

.home-feature-card h3 {
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.home-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reviews {
    padding: 80px 0;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.reviews p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 50px;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.home-reviews-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.home-reviews-card:hover {
    transform: translateY(-10px);
    border-color: #F6B802;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.home-reviews-card img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.home-reviews-card i {
    font-size: 38px;
    color: #F6B802;
    margin-bottom: 20px;
}

.home-reviews-card h3 {
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.home-reviews-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}




/* Header de pagina de servicios */
.page-header {
    background: linear-gradient(135deg, #062962 0%, #0a3a7a 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: -40px -40px 60px -40px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #ddd;
}

/* Cuerpo de la pagina servicios y productos  */

.productos-carrusel h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--text-heading);
}

.carrusel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
    height: 420px;
    /* Ajusta según tus necesidades */
}

.carrusel-contenedor {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.producto {
    min-width: 100%;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.producto img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.producto h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.producto p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Botones de navegación */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    font-size: 2rem;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.btn-nav:hover {
    background: var(--bg-card);
    transform: translateY(-50%) scale(1.1);
}

.btn-prev {
    left: 15px;
}

.btn-next {
    right: 15px;
}

/* Indicadores */
.indicadores {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.indicador {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.indicador.activo {
    background: #3498db;
}

/* Responsive */
@media (max-width: 650px) {
    .carrusel {
        height: 380px;
    }

    .producto img {
        width: 200px;
        height: 200px;
    }

    .producto h3 {
        font-size: 1.3rem;
    }
}

.pdf-section{
    padding: 80px 0;
    margin: 60px -40px 0 -40px;
}

.pdf-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 40px;
}

.pdf-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
    



.services-page .container {
    max-width: 1200px;
    margin: 0 auto;
}


.services-section {
    padding: 40px 0;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 15px;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-icon {
    flex-shrink: 0;
}

.service-icon i {
    font-size: 80px;
    color: #F6B802;
}

.service-content h2 {
    font-size: 28px;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: #F6B802;
}

/* Estilo para la pagina del acerca de */
.about-intro {
    padding: 40px 0;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.about-image-girar:hover {
    transform: rotate(360deg);
}

.mission-vision {
    padding: 80px 0;
    margin: 60px -40px;
}

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

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.mv-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: #F6B802;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mv-icon i {
    font-size: 40px;
    color: white;
}

.mv-card h2 {
    color: var(--text-heading);
    margin-bottom: 20px;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.values-section {
    padding: 80px 0;
}

.values-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.values-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: #F6B802;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 32px;
    color: white;
}

.value-card h3 {
    color: var(--text-heading);
    margin-bottom: 15px;
    font-size: 22px;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.certifications-section {
    padding: 80px 0;
    margin: 60px -40px 0 -40px;
}

.certifications-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.cert-item i {
    font-size: 48px;
    color: #F6B802;
    margin-bottom: 20px;
}

.cert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cert-item h4 {
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-size: 20px;
}

.cert-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Estilos para la pagina de contacto */

.contact-section {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    font-size: 32px;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.contact-form-wrapper>p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-form {
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--brand-blue);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group label i {
    margin-right: 8px;
    color: #F6B802;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--input-bg);
    color: var(--text-primary);
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F6B802;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #062962;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #F6B802;
    transform: translateY(-2px);
}

.btn-submit i {
    margin-right: 10px;
}

.contact-info-wrapper h2 {
    font-size: 32px;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: #F6B802;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 24px;
    color: white;
}

.contact-card-info h4 {
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.contact-card-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-card-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-info a:hover {
    color: #F6B802;
}

.emergency {
    color: #F6B802;
    font-weight: 500;
    margin-top: 5px;
}

.social-contact {
    margin-top: 30px;
}

.social-contact h4 {
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-links-contact a {
    width: 45px;
    height: 45px;
    background: #062962;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background: #F6B802;
    transform: translateY(-3px);
}

.map-section {
    padding: 80px 0;
    margin: 60px -40px 0 -40px;
}

.map-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 40px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Estilos para la pagina de eventos */

.events-intro {
    padding: 40px 0;
}

.events-intro-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.events-text h2 {
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.events-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.media_cover2 {
    flex: 1;
    max-width: 50%;
}

.media_cover2 video {
    width: 200%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Seccion de videos */

.events-video-galery {
    padding: 80px 0;
}

.events-video-galery h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-card video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.video-card h4 {
    color: var(--brand-blue);
    font-size: 18px;
}


/* Parte de eventos en tarjetas  */

.events-services {
    padding: 80px 0;
}

.events-services h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.events-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-service-card {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.event-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 80px;
    height: 80px;
    background: #F6B802;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-image i {
    font-size: 40px;
    color: white;
}

.event-service-card h3 {
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

.event-service-card>p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.event-service-card ul {
    list-style: none;
}

.event-service-card ul li {
    padding: 8px 0;
    color: var(--text-dark);
    padding-left: 20px;
    position: relative;
}

.event-service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F6B802;
    font-weight: bold;
}

.events-types {
    padding: 80px 0;
    margin: 60px -40px;
}

.events-types h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.events-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.event-type {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.event-type:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-type i {
    font-size: 48px;
    color: #F6B802;
    margin-bottom: 20px;
}

.event-type h3 {
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.event-type p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.events-process {
    padding: 80px 0;
}

.events-process h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 50px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.process-step {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #F6B802;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
}

.step-content h3 {
    color: var(--brand-blue);
    margin-bottom: 10px;
    text-align: center;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.events-advantages {
    padding: 80px 0;
    background: var(--bg-tertiary);
    margin: 60px -40px 0 -40px;
}

.events-advantages h2 {
    text-align: center;
    font-size: 36px;
    color: var(--brand-blue);
    margin-bottom: 50px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.advantage-item i {
    font-size: 48px;
    color: #F6B802;
    margin-bottom: 20px;
}

.advantage-item h4 {
    color: var(--brand-blue);
    margin-bottom: 10px;
}

.advantage-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Galeria de imagenes estilo movil */

.events-image-gallery {
    padding: 80px 0;
}

.events-image-gallery h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 40px;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.image-gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* MODAL */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-img {
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    transition: transform 0.25s ease;
    cursor: grab;
}

.gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    font-size: 45px;
    color: white;
    cursor: pointer;
    padding: 15px;
    user-select: none;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

@media (max-width: 768px) {

    .gallery-prev,
    .gallery-next {
        font-size: 35px;
    }
}



/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #062962 0%, #0a3a7a 100%);
    text-align: center;
    margin: 60px -40px 0 -40px;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #F6B802;
    color: #062962;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #FDFD2F;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.btn-cta-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: var(--bg-card);
    color: #062962;
}

.btn-cta-secondary i {
    margin-right: 10px;
}

/* Footer o pie de pagina*/
footer {
    background: linear-gradient(135deg, #000 0%, #2a2a2a 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #F6B802;
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-section p,
.footer-section ul {
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #F6B802;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    color: #F6B802;
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 10px;
}

.schedule h4 {
    color: #F6B802;
}

.footer-bottom p {
    text-align: center;
}


.social-links a:hover {
    color: #F6B802;
    background: rgba(246, 184, 2, 0.1);
}

/* seccion de widget whatsapp */



.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}
/* ============================================
   DARK MODE - OVERRIDES ADICIONALES
   ============================================ */

body.dark-mode header {
    background: #0a0e1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .btn_header-events {
    background-color: #F6B802;
}

body.dark-mode .banner {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1d27 100%);
}

body.dark-mode .btn_contactenos-cover,
body.dark-mode .btn_services-cover {
    background-color: #1e2130;
    color: #e2e8f0;
}

body.dark-mode .btn_contactenos-cover:hover,
body.dark-mode .btn_services-cover:hover {
    background-color: #F6B802;
    color: #0f1117;
}

body.dark-mode .indicador {
    background: #2d3748;
}

body.dark-mode .btn-nav {
    background: rgba(30, 33, 48, 0.9);
    color: #e2e8f0;
}

body.dark-mode .btn-nav:hover {
    background: rgba(246, 184, 2, 0.2);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    border-color: #2d3748;
    background-color: #1a1d27;
    color: #e2e8f0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #F6B802;
}

body.dark-mode .form-group select option {
    background-color: #1a1d27;
    color: #e2e8f0;
}

body.dark-mode .btn-submit {
    background: #3b82f6;
}

body.dark-mode .btn-submit:hover {
    background: #F6B802;
    color: #0f1117;
}

body.dark-mode .contact-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode .map-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg);
}

body.dark-mode footer {
    background: linear-gradient(135deg, #050709 0%, #0f1117 100%);
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2a4a 100%);
}

body.dark-mode .cta-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2a4a 100%);
}

body.dark-mode .home-feature-card:hover,
body.dark-mode .home-reviews-card:hover,
body.dark-mode .value-card:hover,
body.dark-mode .cert-item:hover,
body.dark-mode .event-type:hover,
body.dark-mode .event-service-card:hover,
body.dark-mode .process-step:hover,
body.dark-mode .video-card:hover,
body.dark-mode .mv-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

body.dark-mode .gallery-modal {
    background: rgba(0,0,0,0.97);
}

/* ============================================
   RESPONSIVE - MÓVIL PRIMERO
   ============================================ */

/* Header responsivo mejorado */
@media (max-width: 992px) {
    .container_header {
        padding: 0 20px;
    }

    .Logo img {
        width: 150px;
    }

    .menu nav ul li {
        padding: 0 12px;
    }

    .menu nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    /* Header */
    header {
        height: 80px;
    }

    .container_header {
        padding: 0 15px;
        position: relative;
    }

    .Logo img {
        width: 130px;
    }

    #icon_menu {
        display: block;
        order: 3;
    }

    .header_events {
        order: 2;
    }

    .btn_header-events {
        padding: 10px 16px;
        font-size: 13px;
        margin-left: 10px;
    }

    .theme-toggle {
        margin-left: 8px;
    }

    .menu {
        order: 4;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #062962;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    body.dark-mode .menu {
        background: #0a0e1a;
    }

    .menu.mostrar_menu {
        max-height: 400px;
    }

    .menu nav ul {
        flex-direction: column;
        padding: 15px 0;
    }

    .menu nav ul li {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu nav ul li:last-child {
        border-bottom: none;
    }

    .menu nav ul li a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
    }

    .menu nav ul li a::after {
        display: none;
    }

    /* Main content */
    main {
        margin: 100px auto 0;
        padding: 20px 15px;
    }

    /* Cover / Hero */
    .cover {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .text_information-cover {
        max-width: 100%;
        text-align: center;
    }

    .text_information-cover h1 {
        text-align: center;
    }

    .text_information-cover p {
        font-size: 16px;
    }

    .buttons_cover {
        justify-content: center;
    }

    .media_cover {
        max-width: 100%;
        width: 100%;
    }

    /* Banner */
    .container_banner {
        margin: 40px 0;
    }

    .banner {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .banner_icon-conector {
        width: 100%;
        height: 120px;
    }

    #icon_conector {
        max-width: 150px;
    }

    .banner_text {
        padding: 20px 10px;
    }

    .banner_icon-generador {
        display: none;
    }

    /* Home body */
    .home-body-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .body-image img {
        max-width: 100%;
        border-radius: 15px;
    }

    .body-text h2 {
        font-size: 26px;
        text-align: center;
    }

    /* Features */
    .home-features {
        padding: 40px 0;
    }

    .home-features h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .home-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reviews */
    .reviews {
        padding: 40px 0;
    }

    .reviews h2 {
        font-size: 28px;
    }

    .home-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Page header (servicios, about, etc.) */
    .page-header {
        padding: 40px 15px;
        margin: -20px -15px 40px -15px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 15px;
    }

    /* Services */
    .service-detail {
        flex-direction: column !important;
        padding: 25px;
        gap: 20px;
        text-align: center;
    }

    .service-detail.reverse {
        flex-direction: column !important;
    }

    .service-icon i {
        font-size: 60px;
    }

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

    .service-features li {
        justify-content: flex-start;
        text-align: left;
    }

     .pdf-section {
        margin: 30px -15px 0 -15px;
        padding: 40px 15px;
    }

    .pdf-section h2 {
        font-size: 28px;
    }

    /* About */
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .about-image img {
        max-width: 100%;
    }

    .mission-vision {
        margin: 30px -15px;
        padding: 40px 15px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .values-section {
        padding: 40px 0;
    }

    .values-section h2 {
        font-size: 28px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certifications-section {
        margin: 30px -15px 0 -15px;
        padding: 40px 15px;
    }

    .certifications-section h2 {
        font-size: 28px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 24px;
    }

    .map-section {
        margin: 30px -15px 0 -15px;
        padding: 40px 15px;
    }

    .map-section h2 {
        font-size: 28px;
    }

    /* Events */
    .events-intro-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .events-text h2 {
        font-size: 26px;
    }

    .media_cover2 {
        max-width: 100%;
    }

    .media_cover2 video {
        width: 100%;
    }

    .events-video-galery {
        padding: 40px 0;
    }

    .events-video-galery h2 {
        font-size: 28px;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-services {
        padding: 40px 0;
    }

    .events-services h2 {
        font-size: 28px;
    }

    .events-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-types {
        margin: 30px -15px;
        padding: 40px 15px;
    }

    .events-types h2 {
        font-size: 28px;
    }

    .events-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-process {
        padding: 40px 0;
    }

    .events-process h2 {
        font-size: 28px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-advantages {
        margin: 30px -15px 0 -15px;
        padding: 40px 15px;
    }

    .events-advantages h2 {
        font-size: 28px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-image-gallery {
        padding: 40px 0;
    }

    .events-image-gallery h2 {
        font-size: 28px;
    }

    /* CTA */
    .cta-section {
        margin: 30px -15px 0 -15px;
        padding: 50px 15px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* Tablets medianos */
@media (min-width: 769px) and (max-width: 1024px) {

    main {
        padding: 30px 25px;
        margin-top: 130px;
    }

    .cover {
        gap: 25px;
    }

    .home-body-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-intro-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .mv-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail {
        padding: 30px;
        gap: 25px;
    }

    .service-icon i {
        font-size: 60px;
    }

    .events-intro-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

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

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
    .Logo img {
        width: 110px;
    }

    .btn_header-events {
        padding: 8px 12px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 44px;
        height: 24px;
        margin-left: 5px;
    }

    .theme-toggle-thumb {
        width: 17px;
        height: 17px;
    }

    body.dark-mode .theme-toggle-thumb {
        left: calc(100% - 19px);
    }

    .buttons_cover {
        flex-direction: column;
    }

    .btn_contactenos-cover,
    .btn_services-cover {
        text-align: center;
    }
}

/* Prevenir scroll horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
