@font-face {
    font-family: "principal";
    src: url(/frontend/fonts/OleoScript/OleoScript-Bold.ttf);
}

@font-face {
    font-family: "menu";
    src: url(/frontend/fonts/Josefin_Sans/JosefinSans-Bold.ttf);
}

html, body {
    overflow-x: hidden;
}

.contenedor1 {
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: 72px;
    position: relative;
    overflow: hidden;
}

/* Accent background shape behind photos */
.contenedor1::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 0;
    width: 50%;
    height: calc(100% - 90px);
    background: linear-gradient(160deg, #e8f0fd 0%, #d8e6f7 100%);
    border-radius: 0 32px 32px 0;
    z-index: 0;
}

.contenedor1 .row {
    position: relative;
    z-index: 1;
}

.fotos1,
.fotos2 {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(1, 75, 160, 0.16);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Primary photo — anchor of the composition */
.fotos1 {
    animation: somos-slideLeft 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

/* Secondary photo — slightly offset downward, white frame, elevated */
.fotos2 {
    margin-top: 32px;
    border: 5px solid #ffffff;
    box-shadow: 0 16px 44px rgba(1, 75, 160, 0.22);
    animation: somos-slideLeft 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.25s;
}

.fotos1:hover,
.fotos2:hover {
    box-shadow: 0 20px 52px rgba(1, 75, 160, 0.30);
    transform: translateY(-4px);
}

.fotos1 img,
.fotos2 img {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    display: block;
    transition: transform 600ms ease;
}

.fotos1:hover img,
.fotos2:hover img {
    transform: scale(1.07);
}

.divTexto {
    margin-top: 0;
    padding-top: 24px;
    padding-left: 32px;
    animation: somos-slideRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
    position: relative;
    z-index: 1;
}

.pregunta::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #013a7a, #0266d6);
    border-radius: 2px;
    margin-bottom: 14px;
}

.pregunta {
    font-size: 0.78rem;
    font-family: "menu";
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #014ba0;
    display: block;
}

.titulo {
    font-size: 2.5rem;
    font-family: "menu";
    color: #0f1d35;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.texto {
    font-size: 0.98rem;
    font-family: "menu";
    color: #4a5568;
    line-height: 1.9;
    margin-top: 0;
}

.contenedor2 {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 56px;
}

.titEquipo {
    font-size: 1.8rem;
    font-family: "Principal";
    display: inline-block;
}

.titEquipo::after,
.titUbicación::after,
.titMarcas::after,
.titHorario::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #013a7a, #0266d6);
    border-radius: 2px;
    margin: 6px auto 0;
}

.equipo1 {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 0 0 24px;
    box-shadow: 0 4px 24px rgba(1, 75, 160, 0.10);
    border: 1px solid #eaedf3;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin: 10px 8px;
    overflow: hidden;
    position: relative;
}

/* Blue gradient band at the top of each card */
.equipo1::before {
    content: '';
    display: block;
    height: 88px;
    background: linear-gradient(135deg, #013a7a 0%, #0266d6 100%);
    width: 100%;
    flex-shrink: 0;
}

.equipo1:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(1, 75, 160, 0.22);
}

.equipo1 img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 20px rgba(1, 75, 160, 0.28);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-top: -48px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.equipo1:hover img {
    transform: scale(1.07);
    box-shadow: 0 10px 28px rgba(1, 75, 160, 0.40);
}

/* Staggered entrance animations for team cards */
.contenedor2 .col-6:nth-child(1) .equipo1 { animation: somos-fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.1s; }
.contenedor2 .col-6:nth-child(2) .equipo1 { animation: somos-fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.2s; }
.contenedor2 .col-6:nth-child(3) .equipo1 { animation: somos-fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.3s; }
.contenedor2 .col-6:nth-child(4) .equipo1 { animation: somos-fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.4s; }

.textInfoPerfil {
    font-family: "menu";
    text-align: center;
    margin: 4px 16px;
}

.textInfoPerfil:first-of-type {
    font-size: 1rem;
    color: #0f1d35;
    margin-top: 14px;
    font-weight: 700;
}

.textInfoPerfil:last-of-type {
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #013a7a 0%, #0266d6 100%);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 6px;
}

.titUbicación {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: "Principal";
    text-align: center;
}

.mapa{
    text-align: center;
}

.mapa iframe {
    width: 100%;
    max-width: 960px;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(1, 75, 160, 0.14);
}

.titMarcas {
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 10px;
    font-family: "Principal";
    text-align: center;
}

.contenedor4 {
    margin-bottom: 0;
    padding-bottom: 20px;
}

.contenedor5 {
    perspective: 900px;
    width: 100%;
    height: 360px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.tarjeta {
    width: 130px;
    height: 130px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -65px;
    margin-left: -65px;
    border-radius: 14px;
    text-align: center;
    animation: Carrusel 21s linear infinite;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

@keyframes Carrusel {
    from {
        transform: rotateY(360deg) translateZ(420px);
        z-index: 10;
    }
    50% {
        z-index: -10;
    }
    to {
        transform: rotateY(0deg) translateZ(420px);
        z-index: 10;
    }
}

#xilo{
    background-image: url(/frontend/images/fondos/xilo.jpg);
    background-size: cover;
}

#wd-40{
    background-image: url(/frontend/images/fondos/wd-40.jpg);
    background-size: cover;
    animation-delay: -1s;
}

#volteck{
    background-image: url(/frontend/images/fondos/volteck.jpg);
    background-size: cover;
    animation-delay: -2s;
}

#uniflex{
    background-image: url(/frontend/images/fondos/uniflex.jpg);
    background-size: cover;
    animation-delay: -3s;
}

#truper{
    background-image: url(/frontend/images/fondos/truper.jpg);
    background-size: cover;
    animation-delay: -4s;
}

#sista{
    background-image: url(/frontend/images/fondos/sista.jpg);
    background-size: cover;
    animation-delay: -5s;
}

#profer{
    background-image: url(/frontend/images/fondos/profer.jpg);
    background-size: cover;
    animation-delay: -6s;
}

#pretul{
    background-image: url(/frontend/images/fondos/pretul.jpg);
    background-size: cover;
    animation-delay: -7s;
}

#pfister{
    background-image: url(/frontend/images/fondos/pfister.jpg);
    background-size: cover;
    animation-delay: -8s;
}

#miyako{
    background-image: url(/frontend/images/fondos/miyako.jpg);
    background-size: cover;
    animation-delay: -9s;
}

#hermex{
    background-image: url(/frontend/images/fondos/hermex.jpg);
    background-size: cover;
    animation-delay: -10s;
}

#foset{
    background-image: url(/frontend/images/fondos/foset.jpg);
    background-size: cover;
    animation-delay: -11s;
}

#fiero{
    background-image: url(/frontend/images/fondos/fiero.jpg);
    background-size: cover;
    animation-delay: -12s;
}

#eagle{
    background-image: url(/frontend/images/fondos/eagle.jpg);
    background-size: cover;
    animation-delay: -13s;
}

#durman{
    background-image: url(/frontend/images/fondos/durman.jpg);
    background-size: cover;
    animation-delay: -14s;
}

#corona{
    background-image: url(/frontend/images/fondos/corona.jpg);
    background-size: cover;
    animation-delay: -15s;
}

#coflex{
    background-image: url(/frontend/images/fondos/coflex.jpg);
    background-size: cover;
    animation-delay: -16s;
}

#tresEnUno{
    background-image: url(/frontend/images/fondos/3-en-1.jpg);
    background-size: cover;
    animation-delay: -17s;
}

#tania{
    background-image: url(/frontend/images/fondos/Tania.jpg);
    background-size: cover;
    animation-delay: -18s;
}

#redPower{
    background-image: url(/frontend/images/fondos/redPower.jpg);
    background-size: cover;
    animation-delay: -19s;
}

#pennsylvania{
    background-image: url(/frontend/images/fondos/Pennsylvania.jpg);
    background-size: cover;
    animation-delay: -20s;
}

.tarjeta h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(1, 58, 122, 0.82);
    color: #fff;
    font-size: 11px;
    padding: 5px 4px;
    margin: 0;
    border-radius: 0 0 12px 12px;
    font-family: "Menu";
    letter-spacing: 0.3px;
}

.contenedor6 {
    margin-top: 0;
    padding-top: 32px;
    padding-bottom: 64px;
}

.titHorario {
    font-size: 1.8rem;
    margin-top: 2%;
    font-family: "Principal";
    text-align: center;
    display: inline-block;
}

.horarioCard {
    background: linear-gradient(135deg, #013a7a 0%, #0266d6 100%);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 28px rgba(1, 75, 160, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horarioCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(1, 75, 160, 0.38);
}

.horarioIcon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    opacity: 0.92;
}

.horarioDias {
    font-family: "Principal";
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.horarioHoras {
    font-family: "Menu";
    font-size: 1rem;
    margin: 4px 0;
    opacity: 0.92;
}

/* ===== ANIMACIONES DE ENTRADA ===== */

@keyframes somos-slideLeft {
    from { opacity: 0; transform: translateX(-52px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes somos-slideRight {
    from { opacity: 0; transform: translateX(52px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes somos-fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

