/* Reset y cuerpo */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
}

/* Header fijo arriba */
.mi-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(19, 19, 79, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 1.5rem;
    z-index: 1000;
}

.header-title {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    padding: 0.1rem 0;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.mi-header .logo-icons { display: flex; align-items: center; gap: 0.8rem; }
.mi-header .logo { height: 12vh; object-fit: contain; }
.mi-header .icons { display: flex; align-items: center; gap: 0.4rem; }
.mi-header .icons a { font-size: 6vh; text-decoration: none; }
.mi-header .icons .fa-facebook { color: white; }
.mi-header .icons .fa-instagram { color: white; }

.contact-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.logo-wat i { color: #25D366; font-size: 3rem; }
.contact-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.contact-text .contactanos { font-size: 1rem; color: white; margin: 0; }
.contact-text .num-tel { font-size: 0.9rem; color: white; text-decoration: none; }

.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: white; }

.mi-header nav { width: 100%; display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.menu li { position: relative; }
.menu li a { text-decoration: none; color: white; font-size: 1.1rem; padding: 0.15rem 0.8rem; display: block; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background-color: rgba(0,0,255,0.9); list-style: none; padding:0; margin:0; min-width:200px; max-height:250px; overflow-y:auto; border-radius:4px; z-index:1000; }
.submenu::-webkit-scrollbar { width: 5px; }
.submenu::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.5); border-radius:4px; }
.submenu::-webkit-scrollbar-track { background-color: rgba(255,255,255,0.1); }
.tiene-submenu:hover .submenu { display: block; }
.submenu li a { padding: 0.4rem 0.8rem; font-size: 0.95rem; color: white; }
.submenu li a:hover { background-color: rgba(0,0,200,0.9); }
.menu li a:hover { background-color: rgba(0, 0, 200, 0.7); border-radius: 4px; }

/* Top section con fondo */
.top-section {
    background-image: url("../img/fondo.jpeg");
    background-size: cover;
    background-position: top;
    padding: 150px 2rem 2rem 2rem;
}

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    max-width: 300px; 
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid white;
    border-radius: 6px;
}
.form .label-title { color: white; font-weight: bold; margin-bottom: 1rem; font-size: 1.2rem; }
.form label { margin-top: 0.5rem; margin-bottom: 0.2rem; font-size: 0.95rem; color: white; }
.form input { width: 100%; padding: 0.4rem; margin-bottom: 0.5rem; border-radius: 4px; border: 1px solid #ccc; background-color: white; color: black; }
.form .btn { margin-top: 0.5rem; padding: 0.5rem 1rem; background-color: #0044cc; color: white; border-radius: 4px; cursor: pointer; border: none; }
.form .btn:hover { background-color: #0033aa; }

/* Contenedor de texto y card */
.content-card-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem;
    gap: 2rem;
}

.container { max-width: 600px; }
.container h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.container h2 { font-size: 4vh; line-height: 1.5; margin-left: 0; }

.ubicacion-titulo {
    margin-top: 2rem;
    font-size: 1.8rem;
    color: #0033aa;
}

.mapa {
    margin-top: 1rem;
    width: 100%;
}

/* Flip card */
.card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    position: relative;
}
.card .front, .card .back {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    backface-visibility: hidden;
    position: absolute;
    top:0; left:0;
    transition: transform 0.6s;
}
.card .front {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card .front img { width: 80%; margin-bottom: 1rem; }
.card .front .nombre_lic { font-weight: bold; text-align: center; }
.card .back {
    background-color: #0044cc;
    color: white;
    transform: rotateY(180deg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1vh;
}
.card:hover .front { transform: rotateY(180deg); }
.card:hover .back { transform: rotateY(0deg); }

/* Footer */
.mi-footer {
    width: 100%;
    background-color: #001f3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    color: white;
    margin-top: 2rem;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Redes sociales izquierda */
.footer-left {
    align-items: flex-start;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insta i, .face i { font-size: 2rem; color: white; }
.title-insta, .title-face { font-size: 1rem; margin: 0; }

/* Logo centro */
.logo-footer { width: 120px; height: auto; }

/* Contacto derecha alineada a la izquierda */
.footer-right {
    align-items: flex-start;
    text-align: end;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0%;
}

.contactanos-footer { font-size: 1.2rem; margin: 0 0 0.5rem 0; }
.contact-info { display: flex; align-items: center; gap: 0.5rem; }
.num-tel-footer { color: white; text-decoration: none; font-size: 1rem; }
.footer-wat i { font-size: 2rem; color: #25D366; }

html, body {
    overflow-x: hidden;
}
/* Solo para la página Nosotros: top-section más alto */
.nosotros_top {
    background-image: url("../img/fondo.jpeg"); /* Asegúrate de la ruta */
    background-size: cover;
    background-position: center;
    min-height: 40vh; /* puedes aumentar este valor a 80vh o 90vh si quieres más alto */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ajuste del h1 de Nosotros si quieres mantenerlo centrado */
.nosotros_top h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
}

/* Solo para el h1 de la página Nosotros */
.top-section h1 {
    color: white;
    font-size: 6rem;
    text-align: center;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Solo para la página Nosotros */
.nosotros-top {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nosotros-top h1 {
    color: white;
    font-size: 4rem;
    text-align: center;
}

/* Contenedor del slider y fondo */
.slider-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Imagen de fondo del slider */
.fondo-slider {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Slider encima de la imagen de fondo */
.slider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contenedor-texto{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.texto{
    width: 90%;
    text-align: justify;
    
}
.testimonios-container {
    display: flex;
    flex-wrap: wrap;         /* permite que las imágenes se ajusten a varias filas */
    justify-content: center; /* centra las imágenes horizontalmente */
    gap: 1rem;               /* espacio entre imágenes */
    padding: 2rem 0;         /* espacio arriba y abajo del contenedor */
}

.testimonios-container .testimonios {
    max-width: 150px;        /* tamaño máximo de las imágenes, ajustable */
    height: auto;
    border-radius: 8px;      /* opcional, bordes redondeados */
}
.testimonios-container img{
    width: 100vh;
    height: 40vh;
}
/* Slides individuales */
.slides {
    display: flex;
    gap: 1rem;
}

.slides .slide {
    display: none; /* ocultas por defecto, JS mostrará la activa */
}

.slides .slide img {
    width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
/* Estilos nuevos para los cards de Nosotros */
.team-cards {
    width: 90%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.row-center {
    justify-content: center;
}

.row-space {
    justify-content: space-between;
}

/* Card individual */
.card-team {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card-team:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.team-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: 1rem;
}

.team-info h3 {
    margin: 0.5rem 0;
    color: #0044cc;
}

.team-info p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}
/* Flip cards estilo nosotros */
/* Flip cards estilo nosotros */
.team-cards {
    width: 90%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    
}

.row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    
}

.card-team {
    width: 250px;
    height: 350px;
    perspective: 1000px;
    position: relative;
    border-radius: 50%;
}

.card-team .front, .card-team .back {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.6s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.card-team .front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-team .front img {
    width: 100%;
    height: 250px; /* altura de la imagen */
    object-fit: cover;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}

.card-team .front .nombre {
    font-weight: bold;
    text-align: center;
    color: #0044cc;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

.card-team .back {
    background-color: #0044cc;
    color: white;
    transform: rotateY(180deg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
}

.card-team:hover .front {
    transform: rotateY(180deg);
}

.card-team:hover .back {
    transform: rotateY(0deg);
}

/* Para espaciar filas */
.row-space {
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .row-space {
        flex-direction: column;
        align-items: center;
    }
    .card-team {
        width: 80%;
        height: 300px;
    }
}


/* Responsivo */
@media (max-width: 768px) {
    .row-space {
        flex-direction: column;
        align-items: center;
    }
    .card-team {
        width: 80%;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .menu { flex-direction: column; position: absolute; top: calc(3rem + 60px); left: 0; width: 100%; display: none; background-color: rgba(0,0,255,0.9);}
    .menu.active { display: flex; }
    .menu li { width: 100%; text-align: center; }
    .submenu { position: relative; top:0; left:0; min-width:100%; max-height:200px; }
    .mi-header { flex-wrap: wrap; height: auto; padding: 0.2rem 1rem; }
    .contact-section { margin-top: 0.5rem; justify-content: center; margin-right: 0; }
    .form { margin: 0 auto; width: 90%; max-width: 350px; }
    .content-card-container { flex-direction: column; align-items: center; gap: 1.5rem; }
    .card { width: 80%; height: 350px; }
    .container { max-width: 90%; text-align: center; }

    .mi-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right { align-items: center; }
    .footer-right { text-align: center; }
    .contact-info { justify-content: center; }
}
