/* Variables de Color */
:root {
    --primary: #004a8c;
    --secondary: #00a8e8;
    --text: #333;
    --light: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--light);
}

.text-center {
    text-align: center;
}

/* Nav */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-container .logo img {
    height: 96px;
    border-radius: 8px;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    margin: 0 5px;
    padding: 10px;
}

.nav-links li a:hover {
    color: white;
    background: #00a8e8;
}

.btn-turnos {
    background: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: #ddd;
    font-weight: bold;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.tab-content {
    display: none;
    align-items: center;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.tab-content.active {
    display: flex;
}

.tab-content img {
    width: 300px;
    border-radius: 8px;
}

.slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contenedor Principal del Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Ocupa el 85% de la altura de la pantalla */
    overflow: hidden;
    background-color: #000;
}

/* Estilo Individual de cada Slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Oculto por defecto */
    transition: opacity 1.5s ease-in-out;
    /* Efecto de desvanecimiento */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    /* Se muestra el slide activo */
    z-index: 2;
}

/* Texto dentro del Slider */
.slide-content {
    text-align: right;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.4rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Indicadores de puntos (Dots) */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.nav-active {
    display: flex !important;
    flex-direction: column;
    /* tus estilos de menú móvil aquí */
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.bio-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.distinctions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.badge {
    background: var(--light);
    border-left: 3px solid var(--secondary);
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
}

.profile-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--light);
    /* Efecto decorativo moderno */
}

/* Estilos generales del Footer */
.main-footer {
    background-color: var(--primary);
    /* El azul que definimos al inicio */
    color: #ffffff;
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    /* Columnas desiguales para mejor balance */
    gap: 3rem;
}

.footer-col h4 {
    color: var(--secondary);
    /* El azul claro/celeste para títulos */
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

/* Línea decorativa bajo los títulos del footer */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

/* Columna Logo */
.logo-footer {
    max-width: 256px;
    margin-bottom: 1rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Columna About Us */
.footer-about p {
    line-height: 1.8;
    opacity: 0.9;
}

/* Columna Enlaces */
.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(5px);
    /* Pequeño desplazamiento al pasar el mouse */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* El mapa es ligeramente más ancho */
    gap: 2rem;
    align-items: start;
}

.map-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-circle {
    background: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.contact-item p {
    color: #666;
    line-height: 1.4;
}

.btn-whatsapp {
    display: block;
    background-color: #004a8c;
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background-color: #00a8e8;
}

/* Centrado de la sección */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.tabs-container {
    margin-top: 2rem;
}

/* Cabeceras de pestañas */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: #e0e7ef;
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    /* Se maneja por JS */
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    gap: 30px;
    align-items: center;
}

.tab-content.active {
    display: flex;
    /* Clase para mostrar la pestaña activa */
}

.tab-image img {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.tab-text h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tab-text p {
    line-height: 1.6;
    color: #555;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin: 1.5rem auto;
    max-width: 104px;
    text-align: center;
}

.icon-svg {
    width: 24px;
    height: 24px;
    fill: #004a8c;
    /* Color inicial blanco */
    transition: all 0.3s ease;
}

.footer-logo .footer-social-icons a .icon-svg {
    fill: #ffffff;
}

.footer-social-icons a:hover .icon-svg {
    fill: var(--secondary);
    /* Cambia al azul claro que definimos */
    transform: translateY(-3px);
    /* Pequeño salto al pasar el mouse */
}

/* Opcional: Color específico por red en hover si prefieres */
.footer-social-icons a[title="Instagram"]:hover .icon-svg {
    fill: #d325a4;
}

.footer-social-icons a[title="WhatsApp"]:hover .icon-svg {
    fill: #25D366;
}

.footer-social-icons a[title="LinkedIn"]:hover .icon-svg {
    fill: #0077b5;
}

.untercio {
    float: left;
    width: 31%;
    margin: 1%;
}

.untercio>p {
    text-align: center;
    margin: 10px;
}

.untercio>p>a {
    margin-top: 5px;
    display: inline-block;
    text-decoration: none;
}

.untercio>p>a:hover {
    color: white;
    background: #00a8e8;
}

.clear {
    clear: both;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Clases de activación (se activan con JS) --- */
.nav-active {
    transform: translateX(0%) !important;
}

/* Animación de los links al abrir */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Animación de la hamburguesa a "X" */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Responsive */
@media (max-width: 1024px) {
    .untercio {
        width: 48%;
    }

    .nav-container .logo img {
        height: 56px;
    }

    .nav-links li a {
        padding: 5px;
    }
}

/* Ajuste Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 790px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: white;
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* Ocupa todo el ancho */
        transform: translateX(100%);
        /* Lo saca de pantalla */
        transition: transform 0.5s ease-in;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding-top: 50px;
    }

    .nav-links li {
        margin: 5px 0;
        opacity: 0;
        /* Para efecto de entrada */
    }

    .burger {
        display: block;
        /* Aparece solo en móvil */
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Evita scroll lateral */
    }

    .tab-content {
        flex-direction: column;
        text-align: center;
    }

    .tab-image img {
        width: 100%;
    }

    .tab-btn {
        width: 45%;
        margin-bottom: 5px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a:hover {
        transform: none;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .distinctions {
        flex-wrap: wrap;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    /* Aquí implementarías el menú hamburguesa */
    .profile-grid,
    .tab-content {
        flex-direction: column;
        text-align: center;
    }

    .tab-content img {
        width: 100%;
    }

}

@media (max-width: 700px) {
    .untercio {
        width: 98%;
    }
}

/* Animación de entrada de texto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}