/* Estilos para el contenedor del Calendly */
.calendly-container {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(220, 134, 29, 0.83);
    margin: 3rem auto;
    max-width: 1200px;
    opacity: 0;
}

@media screen and (max-width: 768px) {
    .calendly-container {
        margin: 1.5rem;
        padding: 1rem;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(220, 134, 29, 0.6);
    }
}
body.dark-mode .calendly-container {
    display: none;
    background: #333;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(220, 134, 29, 0.567);
    margin: 3rem auto;
    max-width: 1200px;
    opacity: 0;
    
}

.calendly-container.active {
    display: block;
    animation: slideIn 0.5s ease forwards;
}

.tipo-reunion {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.tipo-reunion h3 {
    font-size: 2em;
    margin-bottom: 1rem;
    color: #ff6b00;
}

.tipo-reunion p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.beneficios-reunion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 15px;
}
body.dark-mode .beneficios-reunion {
    display: grid;
    
    background: #333;
    border-radius: 15px;
}

.beneficio {
    text-align: center;
    padding: 1.5rem;
}

.beneficio i {
    font-size: 2.5em;
    color: #ff6b00;
    margin-bottom: 1rem;
}

.beneficio h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.beneficio p {
    color: #666;
    font-size: 0.9em;
}
body-dark-mode .beneficio h4 {
    color: #ffff;
    margin-bottom: 0.5rem;
}

body.dark-mode .beneficio p {
    color: #ffff;
    font-size: 0.9em;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ff6b00;
}



.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contenido-agenda {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.botones-agenda {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.boton-agenda {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    background: linear-gradient(45deg, #ff6b00, #ff9d00);
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.boton-agenda:hover {
    transform: translateY(-5px);
}

.boton-agenda::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.boton-agenda:hover::before {
    left: 100%;
}

.boton-agenda i {
    margin-right: 10px;
}

.calendly-iframe-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

/* Estilos base para la sección de calendly */
.calendly-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    display: none;
}

.contenido-agenda {
    text-align: center;
    padding: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.botones-agenda {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.boton-agenda {
    padding: 1rem 2rem;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff6b00, #ff9d00);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

/* Media Queries para dispositivos específicos */

/* iPhone SE, 5, 5S (320px) */
@media screen and (max-width: 320px) {
    .contenido-agenda {
        padding: 1rem;
    }
    
    .botones-agenda {
        flex-direction: column;
        gap: 1rem;
    }
    
    .boton-agenda {
        font-size: 0.9em;
        padding: 0.8rem 1.5rem;
    }
    
    .calendly-iframe-container {
        height: 500px;
    }
}

/* iPhone 6, 7, 8 (375px) */
@media screen and (min-width: 321px) and (max-width: 375px) {
    .botones-agenda {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .calendly-container {
        padding: 1rem;
    }
}

/* iPhone X, 11 Pro, 12 Mini (375px+) */
@media screen and (min-width: 375px) and (max-width: 390px) {
    .botones-agenda {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

/* iPhone 12, 13, 14 (390px) */
@media screen and (min-width: 391px) and (max-width: 428px) {
    .calendly-container {
        margin: 1rem;
    }
    
    .beneficios-reunion {
        grid-template-columns: 1fr;
    }
}

/* Ajustes generales para móviles */
@media screen and (max-width: 768px) {
    .beneficios-reunion {
        display: grid;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .beneficio {
        padding: 1rem;
    }
    
    .beneficio h4 {
        font-size: 1.1em;
    }
    
    .beneficio p {
        font-size: 0.9em;
    }
    
    .tipo-reunion {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .close-button {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Orientación horizontal */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .calendly-iframe-container {
        height: 400px;
    }
    
    .botones-agenda {
        margin-top: 1rem;
    }
}

/* Soporte para notch */
@supports (padding: env(safe-area-inset-top)) {
    .calendly-container {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }
}

/* Dispositivos de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .boton-agenda {
        backdrop-filter: blur(10px);
    }
}
