/* Estilos para la sección de inicio */
.inicio-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

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

.slide-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-30%,  -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 80%;
    max-width: 400px;
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translate(-30%, -50%) translateY(0);
}

.slide-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 1s ease;
}

.slide.active .slide-content h2 {
    transform: translateY(0);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 1s ease 0.2s;
}

.slide.active .slide-content p {
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s ease 0.4s, opacity 1s ease 0.4s, background-color 0.3s ease;
}

.slide.active .cta-button {
    transform: translateY(0);
    opacity: 1;
}

.cta-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Overlay para mejorar la legibilidad del texto */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Header y Navegación */
header {
    background: linear-gradient(to bottom, #a8d5ff 0%, #ffffff 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .nav-menu a {
        font-size: 1rem;
    }
}

/* Sección de Servicios */
.servicios-section {
    padding: 4rem 1rem;
    background: #f9f9f9;
    position: relative;
}

.servicios-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.servicios-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px;
}

.servicios-container {
    display: flex;
    transition: transform 0.3s ease;
}

.servicio {
    flex: 0 0 100%;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    margin: 0 10px;
}

.servicio i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.servicio h3 {
    margin: 1rem 0;
    color: #333;
    font-size: 1.4rem;
}

.servicio p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.btn-mas-info {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.btn-mas-info:hover {
    background: var(--primary-color-dark);
}

.servicios-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicios-button.prev {
    left: 5px;
}

.servicios-button.next {
    right: 5px;
}

.servicios-button:hover {
    background: var(--primary-color-dark);
}

/* Media Queries para Servicios */
@media (min-width: 1024px) {
    .servicios-container {
        gap: 2rem;
    }

    .servicio {
        flex: 0 0 calc(33.333% - 2rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .servicio {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media (max-width: 767px) {
    .servicios-section {
        padding: 3rem 0.5rem;
    }

    .servicio {
        flex: 0 0 calc(100% - 20px);
        padding: 2rem;
        margin: 0 10px;
    }

    .servicios-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .servicio i {
        font-size: 2.5rem;
    }

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

    .servicio p {
        font-size: 1rem;
    }

    .btn-mas-info {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* Sección Nosotros */
.nosotros-section {
    position: relative;
    padding: 4rem 0;
    background-color: white;
}

.nosotros-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.nosotros-section h2,
.nosotros-section .nosotros-intro,
.nosotros-section .equipo-container {
    position: relative;
    z-index: 2;
}

.nosotros-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
    line-height: 1.8;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nosotros-intro p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.1rem;
}

.equipo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.miembro-equipo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.miembro-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.miembro-foto {
    margin-bottom: 1rem;
}

.miembro-foto img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.miembro-titulo {
    text-align: center;
}

.miembro-titulo h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.miembro-titulo h4 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 500;
}

.bio {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.bio p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
    font-size: 1.1rem;
}

.bio h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bio ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.bio li {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .nosotros-intro {
        padding: 2rem;
        margin: 0 1rem 3rem;
    }

    .equipo-container {
        padding: 0 1rem;
    }

    .miembro-equipo {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .miembro-foto img {
        width: 180px;
        height: 180px;
    }

    .miembro-titulo h3 {
        font-size: 1.4rem;
    }

    .miembro-titulo h4 {
        font-size: 1.1rem;
    }

    .bio p, .bio li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nosotros-intro {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem;
    }

    .equipo-container {
        padding: 0 1rem;
    }

    .miembro-equipo {
        padding: 1.2rem;
    }

    .miembro-foto img {
        width: 160px;
        height: 160px;
    }

    .miembro-titulo h3 {
        font-size: 1.3rem;
    }

    .bio {
        padding: 0 0.5rem;
    }

    .bio ul {
        padding-left: 1.5rem;
    }

    .bio li {
        margin-bottom: 0.8rem;
    }
}

/* Modales de Servicios */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Compacto */
.modal-compact .modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: auto;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Modal Pantalla Completa */
.modal-fullscreen .modal-content {
    background-color: white;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    overflow-y: auto;
}

.modal-fullscreen .modal-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Estilos comunes para ambos modales */
.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-body {
    color: #444;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Modal Fullscreen específicos */
.modal-fullscreen .modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-logo {
    height: 60px;
    width: auto;
}

.modal-imagen {
    margin: 2rem 0;
    text-align: center;
}

.modal-foto {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-fullscreen .close-modal {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .modal-compact .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-fullscreen .modal-body {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-fullscreen .modal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .modal-logo {
        height: 50px;
    }

    .modal-imagen {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .modal-compact .modal-content {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-logo {
        height: 40px;
    }
}

/* Estilos para el botón de agendar */
.btn-agendar {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-agendar:hover {
    background-color: #1976D2;
}
