/* Estilos base */
body {
    color: #575756;
    background: white;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.boton-azul {
    display: inline-block;
    background-color: #004b87;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    padding: 18px 60px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.boton-azul:hover {
    background-color: #003666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.boton-azul:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contenedor-botones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h3, p {
    color: #575756 !important;
    margin-bottom: 20px;
    margin-top: -10px !important;
    text-align: justify !important;
}

h3 {
    font-weight: 900 !important;
}

.TemaContainer {
    display: block;
    text-align: center;
}

.TemaTitulo {
    font-size: 28px;
}

.TemaDesc {
    font-size: 14px;
}

.TemaVerTodos {
    font-size: 22px;
}

.testimonial-section {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-container {
    flex: 1;
    background: linear-gradient(135deg, #0d4a7e 0%, #1a5fa0 100%);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Logo principal */
.logo-containerGTO {
    position: absolute;
    top: 7%;
    left: 9%;
    z-index: 2;
    width: 80%;
    max-width: 1100px;
}

.logo-containerGTO img {
    width: 50%;
    height: auto;
    display: block;
}

/* Personas (imágenes animadas) */
.Persona-Img1, .Persona-Img2, .Persona-Img3, .Persona-Img4 {
    position: absolute;
    top: 82%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: slideInFromLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
    width: 73%;
}

.Persona-Img1 { left: 67%; z-index: 3;}
.Persona-Img2 { left: 61%; z-index: 2;}
.Persona-Img3 { left: 55%; z-index: 1;}
.Persona-Img4 { left: 49%; z-index: 1;}

.delay-0 { animation-delay: 0.6s; }
.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.0s; }
.delay-3 { animation-delay: 1.4s; }

/* Imágenes decorativas */
.logo-containerImg1, .logo-containerImg2, .logo-containerImg3,
.logo-containerImg4, .logo-containerImg5, .logo-containerImg6 {
    position: absolute;
    z-index: 2;
    width: 80%;
    max-width: 1100px;
    opacity: 0;
    animation-fill-mode: forwards;
}

.logo-containerImg1 { top: 35%; left: 79%; animation: slideInFromTop 1.8s ease-out forwards; }
.logo-containerImg2 { top: 69%; left: 95%; animation: fadeInScale 1.5s ease-out forwards; }
.logo-containerImg3 { top: 35%; left: 112%; animation: slideInFromTop 1.8s ease-out forwards; }
.logo-containerImg4 { top: 100%; left: 79%; animation: slideInFromTop 1.8s ease-out forwards; }
.logo-containerImg5 { top: 100%; left: 113%; animation: slideInFromTop 1.8s ease-out forwards; }
.logo-containerImg6 { top: 2%; left: 95%; animation: slideInFromTop 1.8s ease-out forwards; }

.logo-containerImg1 img,
.logo-containerImg2 img,
.logo-containerImg3 img,
.logo-containerImg6 img {
    width: 30%;
    height: auto;
    display: block;
}

.logo-containerImg4 img,
.logo-containerImg5 img {
    width: 27%;
    height: auto;
    display: block;
    clip-path: polygon(0% 0%, 83% 0%, 90% 52%, 0% 52%, 0% 83%);
}

.logo-containerImg6 img {
    clip-path: polygon(11% 174%, 154% 29%, 11% 27%, 0% 0%, 0% 0%);
}

/* Logo central animado */
.logo-container {
    position: absolute;
    top: 45%;
    left: 27%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 56%;
    max-width: 1100px;
    opacity: 0;
    animation: fadeInScale 1.5s ease-out forwards;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tabs */
.tabs-container {
    display: flex;
    margin: 40px auto;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    background: white;
    color: #0d4a7e;
    border: 1px solid #0d4a7e;
    padding: 25px 48px 20px 7px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
    margin-right: -40px;
    white-space: nowrap;
}

.tab:last-child {
    margin-right: 0;
    padding-left: 70px;
}

.tab.active {
    background: #0d4a7e;
    color: white;
    z-index: 2;
    border-color: #0d4a7e;
}

.tab:not(.active) {
    z-index: 1;
}

.tab:hover:not(.active) {
    background: #f0f0f0;
}

.content {
    display: none;
    color: #0d4a7e;
    font-size: 18px;
    line-height: 1.8;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-bg {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    color: white !important;
    height: 100vh !important;
    width: 100% !important; /* ← Ahora ocupa todo el ancho */
    position: relative !important; /* Importante si usas elementos absolutos dentro */
}

/* Y asegúrate de que el contenedor interno tenga un ancho máximo y esté centrado */
.hero-content {
    max-width: 1200px !important; /* Ajusta según necesites */
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

.content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Animaciones */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translate(-50%, -150%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translate(-150%, -50%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────── MEDIA QUERIES ─────────────────────── */

/* Pantallas grandes (hasta 1600px) */
@media (max-width: 1600px) {
    .logo-containerImg1 { top: 34%; left: 90%;width: 56%; }
    .logo-containerImg1 img { width: 27%; }

    .logo-containerImg2 { top: 72%; left: 102%; width: 56%; }
    .logo-containerImg2 img { width: 27%; }

    .logo-containerImg3 { top: 34%; left: 114%; width: 56%; }
    .logo-containerImg3 img { width: 27%; }

    .logo-containerImg4 { top: 101%; left: 90%; width: 56%; }
    .logo-containerImg5 { top: 101%; left: 114%; width: 56%; }
    .logo-containerImg6 { top: 7%; left: 102%; width: 56%; }
    .logo-containerImg6 img { width: 27%; }

    .logo-container {
        top: 48%;
        left: 33%;
        width: 60%;
    }

    .logo-containerGTO {
        position: absolute;
        top: 4% !important;
        left: 16% !important;
        z-index: 2 !important;
        width: 60% !important;
        max-width: 1100px;
    }

    .Persona-Img1, .Persona-Img2, .Persona-Img3, .Persona-Img4 {
        top: 87% !important;
        padding-left: 68px;
    }
    
}

/* Tablets (hasta 1024px) */
@media (max-width: 1024px) {
    .logo-container {
        top: 24%;
        left: 45%;
    }

    .logo-containerGTO {
        top: 3%;
        left: 26%;
    }

    /* Ocultar imágenes decorativas en tablets */
    .logo-containerImg1,
    .logo-containerImg2,
    .logo-containerImg3,
    .logo-containerImg4,
    .logo-containerImg5,
    .logo-containerImg6 {
        display: none;
    }

    /* Reubicar personas */
    .Persona-Img1 { top: 41%; left: 92%; }
    .Persona-Img2 { top: 41%; left: 80%; }
    .Persona-Img3 { top: 41%; left: 69%; }
    .Persona-Img4 { top: 41%; left: 57%; }

    .TemaTitulo { font-size: 24px; }
    .TemaVerTodos { font-size: 20px; }
    h2 { font-size: 26px; }
}

/* Móviles grandes (hasta 768px) */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        gap: 10px;
    }

    .tab {
        clip-path: none !important;
        margin: 0 !important;
        padding: 15px 30px !important;
        font-size: 14px;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .tab:last-child {
        padding: 15px 30px !important;
    }

    .logo-container {
        top: 20%;
        left: 47%;
    }

    .logo-containerGTO {
        top: 4%;
        left: 26%;
    }

    .Persona-Img1 { top: 36%; left: 92%; }
    .Persona-Img2 { top: 36%; left: 80%; }
    .Persona-Img3 { top: 36%; left: 69%; }
    .Persona-Img4 { top: 36%; left: 57%; }

    .Persona-Img1 img,
    .Persona-Img2 img,
    .Persona-Img3 img,
    .Persona-Img4 img {
        width: 27%;
    }

    .boton-azul {
        font-size: 16px;
        padding: 14px 40px;
    }

    .TemaTitulo { font-size: 20px; }
    .TemaVerTodos { font-size: 18px; }
    h2 { font-size: 22px; }
    .content { font-size: 16px; }

    .hero-bg {
        height: 45vh !important;
    }

    .Persona-Img1, .Persona-Img2, .Persona-Img3, .Persona-Img4 {
        top: 40% !important;
        width: 210%;
        padding-left: 270px;
    }

    .logo-containerGTO {
        width: 91% !important;
    }

    .logo-container {
        top: 25%;
        left: 51%;
        width: 124%;
    }

}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .boton-azul {
        font-size: 14px;
        padding: 12px 30px;
        width: 90%;
        text-align: center;
    }

    .contenedor-botones {
        padding: 0 10px;
    }

    h2 {
        font-size: 20px;
        padding: 0 10px;
    }

    .TemaTitulo { font-size: 18px; }
    .TemaDesc { font-size: 13px; }
    .TemaVerTodos { font-size: 16px; }

    .testimonial-container {
        padding: 30px 15px;
    }

    .logo-containerGTO img {
        width: 70%;
    }

    /* .Persona-Img1,
    .Persona-Img2,
    .Persona-Img3,
    .Persona-Img4 {
        width: 100%;
    }

    .Persona-Img1 img,
    .Persona-Img2 img,
    .Persona-Img3 img,
    .Persona-Img4 img {
        width: 35%;
    }*/
}