/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 15px;
    flex-wrap: nowrap;
}

.justified-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.8;
}

.header-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.header-text h1 {
    font-size: 1.2em;
    margin: 0;
    white-space: nowrap;
}

.subtitle {
    font-size: 1em;
    font-style: normal;
    white-space: nowrap;
}

/* Sección principal */
.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 120px;
}

.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.professional-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.professional-credentials {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.mission-statement {
    font-style: italic;
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

.professional-photo {
    max-width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.services {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.services h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.services-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 3px solid #4CAF50;
    border-radius: 8px 8px 0 0;
}

.service-content {
    padding: 15px;
    min-height: 120px;
}

.service-content h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-content p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Estilos para el carrusel de videos */
.video-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 30px auto;
    gap: 15px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    flex-grow: 1;
}

.video-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.video-container {
    min-width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.carousel-control {
    background-color: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-control:hover {
    background-color: rgba(44, 62, 80, 1);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #2c3e50;
}

/* Estilos para los botones de redes sociales */
.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

.social-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Sección Mapa */
.location-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.location-info {
    flex: 1;
    min-width: 300px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer fijo en la parte inferior */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: 30px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.8em;
    text-align: center;
}

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

/* Hasta 768px (tablets y móviles grandes) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 20px;
    }

    .header-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .header-text h1 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 1em;
        white-space: normal;
        line-height: 1.3;
    }

    .social-buttons {
        gap: 8px;
        margin-top: 4px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
    }

    .social-btn img {
        width: 20px;
        height: 20px;
    }

    .main-content {
        padding: 15px;
        margin-top: 120px;
    }

    .profile-section, .location-section {
        flex-direction: column;
    }

    .services-horizontal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-card {
        flex: 1 1 45%;
        margin-bottom: 15px;
    }

    .video-carousel-container {
        max-width: 90%;
        gap: 10px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .video-wrapper {
        max-width: 90%;
    }

    .footer-content {
        flex-direction: column;
        padding: 5px 10px;
    }

    .footer-content p {
        font-size: 0.7em;
        text-align: center;
    }
}

/* Hasta 600px (móviles medianos) */
@media (max-width: 600px) {
    .header-content {
        gap: 4px;
        padding: 6px 15px;
    }

    .header-text h1 {
        font-size: 1.2em;
        margin: 0;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .social-buttons {
        gap: 6px;
        margin-top: 3px;
    }

    .social-btn {
        width: 28px;
        height: 28px;
    }

    .social-btn img {
        width: 18px;
        height: 18px;
    }

    .main-content {
        padding: 12px;
        margin-top: 120px;
    }

    .service-card {
        flex: 1 1 100%;
    }

    .service-img {
        height: 150px;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .video-wrapper {
        max-width: 95%;
    }

    .video-carousel-container {
        max-width: 95%;
        gap: 8px;
    }

    .contact-info li {
        font-size: 1em;
    }
}

/* Hasta 480px (móviles pequeños) */
@media (max-width: 480px) {
    .header-content {
        gap: 2px;
        padding: 4px 10px;
    }

    .header-text h1 {
        font-size: 1em;
    }

    .subtitle {
        font-size: 0.8em;
        line-height: 1.2;
    }

    .social-buttons {
        gap: 5px;
        margin-top: 2px;
    }

    .social-btn {
        width: 26px;
        height: 26px;
    }

    .social-btn img {
        width: 16px;
        height: 16px;
    }

    .main-content {
        padding: 10px;
        margin-top: 120px;
    }

    .service-img {
        height: 140px;
    }

    .video-carousel-container {
        gap: 5px;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
