﻿/* TITULOS */
.titulo{
    text-align: center;
    margin-bottom: 60px;
}
.titulo h2{
    font-size:60px;
    font-weight:800;
    line-height:1.2;
    text-align:center;
    color:#005ca8;
    margin-bottom:20px;
    word-break:break-word;
    overflow-wrap:break-word;
}
.titulo p{
    font-size: 22px;
    color: #444;
}
/* SECCIONES */
.nosotros,
.multimedia,
.productos,
.servicios,
.agencias,
.anuncios,
.asociate,
.contacto{
    width: 100%;
    padding: 140px 60px;
    position: relative;
    clear: both;
}
.nosotros,
.productos,
.agencias,
.asociate{
    background: #f7f7f7;
}
.multimedia,
.servicios,
.anuncios{
    background: white;
}
/* MISION Y VISION */
.contenedor-mision{
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 70px;
}
.mision-card{
    background: transparent;
    border-radius: 25px;
    transition: .3s;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: auto;
}
/* Primera tarjeta (Visión) invertida */
.mision-card:first-child{
    flex-direction: row-reverse;
}
/* VIDEO: TARJETA FLOTANTE */
.mision-video{
    width: calc(50% - 15px);
    max-width: 650px;
    height: auto;
    flex-shrink: 1;
    flex-grow: 0;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 92, 168, 0.25);
    border: 3px solid rgba(0, 92, 168, 0.1);
    transition: .3s;
}
.mision-video:hover{
    box-shadow: 0 20px 50px rgba(0, 92, 168, 0.35);
    transform: translateY(-5px);
}
/* CONTENIDO: TARJETA AZUL (diseño profesional) */
.mision-contenido{
    width: calc(50% - 15px);
    max-width: 650px;
    height: auto;
    min-height: 300px;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background:
        linear-gradient(160deg, rgba(0,92,168,0.96), rgba(0,40,75,0.97)),
        radial-gradient(circle at 80% 15%, rgba(255,255,255,0.08), transparent 55%);
    border-radius: 22px;
    box-shadow:
        0 20px 45px rgba(0, 40, 75, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);
    color: white;
    transition: .35s ease;
    flex-shrink: 1;
    flex-grow: 0;
    overflow: hidden;
}
/* Línea decorativa superior */
.mision-contenido::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffffff80, #176c22, #ffffff80);
}
.mision-contenido:hover{
    box-shadow:
        0 28px 55px rgba(0, 40, 75, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.mision-contenido h3{
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 4px;
    position: relative;
}
/* Subrayado decorativo bajo el título */
.mision-contenido h3::after{
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #ffffffb0;
    border-radius: 2px;
    margin: 18px auto 0;
}
.mision-contenido p{
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 18px 0 0;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    letter-spacing: 0.4px;
    max-width: 520px;
}
/* HISTORIA */
.historia {
    width: 100%;
    padding: 110px 8%;
    background: linear-gradient(135deg, #04182e 0%, #062d50 50%, #083d6b 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    position: relative;
    overflow: hidden;
}
/* Decoración de fondo */
.historia::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,92,168,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.historia::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23,108,34,0.14) 0%, transparent 70%);
    pointer-events: none;
}
/* GALERÍA */
.historia-galeria {
    position: relative;
    z-index: 1;
}
.historia-img-wrap {
    position: relative;
}
.historia-img-principal img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    display: block;
    border: 3px solid rgba(255,255,255,0.1);
}
.historia-img-secundarias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.historia-img-secundarias img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: 3px solid rgba(255,255,255,0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.historia-img-secundarias img:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
/* Badge año */
.historia-badge-año {
    position: absolute;
    top: -18px;
    right: -18px;
    background: linear-gradient(135deg, #005ca8, #176c22);
    border-radius: 18px;
    padding: 16px 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.15);
}
.badge-numero {
    font-family: 'Sora', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.badge-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    white-space: nowrap;
}
/* CONTENIDO */
.historia-contenido {
    position: relative;
    z-index: 1;
}
.historia-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.historia-contenido h2 {
    font-family: 'Sora', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 36px;
    color: #fff;
}
/* Hitos */
.historia-hitos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.historia-hito {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 18px;
    transition: background .25s;
}
.historia-hito:hover {
    background: rgba(255,255,255,0.12);
}
.hito-icono {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #005ca8, #176c22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.hito-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hito-fecha {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #7dd3fc;
}
.hito-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
}
.historia-contenido p {
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
}
.historia-contenido p:last-child {
    margin-bottom: 0;
}
/* ASOCIATE */
.asociate{
    padding: 80px 8%;
}
/* Grid de dos columnas para las tarjetas */
.asociate-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
/* Cada tarjeta: imagen a la izquierda, cuadro a la derecha */
.asociate-card{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .3s, box-shadow .3s;
}
.asociate-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.13);
}
.asociate-img{
    width: 40%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #005ca8 0%, #0a7a3a 100%);
}
.asociate-img img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.cuadro-asociate{
    flex: 1;
    padding: 30px;
    background: white;
    border-left: 6px solid #176c22;
}
/* ENLACE AGENCIAS */
.link-agencias{
    color: white;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: opacity .2s;
    white-space: nowrap;
}
.link-agencias:hover{
    opacity: 0.75;
}
.cuadro-asociate h3{
    color:#005ca8;
    font-size:32px;
    margin-bottom:20px;
    font-weight:700;
}
.cuadro-asociate ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.cuadro-asociate li{
    padding:12px 0;
    border-bottom:1px solid #eee;
    font-size:18px;
    color:#444;
    display:flex;
    align-items:center;
    gap:12px;
}
.cuadro-asociate li i{
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,92,168,0.12), rgba(23,108,34,0.12));
    color: #176c22;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}
.mensaje-asociate{
    margin-top:50px;
    text-align:center;
}
.mensaje-asociate p{
    display:inline-block;
    background:#176c22;
    color:white;
    padding:18px 35px;
    border-radius:50px;
    font-size:20px;
    font-weight:600;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}
/* MOBILE */
@media(max-width:900px){
    /* SECCIONES */
    .nosotros,
    .multimedia,
    .productos,
    .servicios,
    .agencias,
    .anuncios,
    .asociate,
    .contacto{
        padding: 140px 20px 80px;
    }
    /* TITULOS */
    .titulo h2{
        font-size: 38px;
    }
    .titulo p{
        font-size: 18px;
    }
    /* MISION Y VISION */
    .mision-card{
        flex-direction: column;
        gap: 20px;
    }
    .mision-card:first-child{
        flex-direction: column;
    }
    .mision-video{
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .mision-contenido{
        width: 100%;
        height: auto;
        padding: 40px 28px;
        text-align: center;
    }
    .mision-contenido h3{
        font-size: 30px;
        letter-spacing: 2.5px;
    }
    .mision-contenido p{
        font-size: 18px;
        line-height: 1.8;
        margin-top: 20px;
    }
    /* HISTORIA */
    .historia {
        padding: 80px 6% 70px;
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .historia-contenido {
        order: 1;
    }
    .historia-galeria {
        order: 2;
    }
    .historia-contenido h2 {
        font-size: 38px;
    }
    .historia-contenido p {
        font-size: 15px;
    }
    .historia-img-principal img {
        height: 220px;
    }
    .historia-img-secundarias img {
        height: 130px;
    }
    .historia-badge-año {
        top: -14px;
        right: -10px;
        padding: 12px 16px;
    }
    .badge-numero {
        font-size: 26px;
    }
    .hito-fecha {
        font-size: 13px;
    }
    .hito-desc {
        font-size: 12.5px;
    }
    /* Una tarjeta abajo de la otra en móvil */
    .asociate-grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* Cuadro arriba, imagen abajo en móvil */
    .asociate-card{
        flex-direction: column;
    }
    .asociate-img{
        width: 100%;
        order: 2;
    }
    .cuadro-asociate{
        order: 1;
    }
    .asociate-img img{
        height: auto;
        max-height: none;
        object-fit: contain;
        padding: 10px;
    }
    .cuadro-asociate{
        border-left: none;
        border-top: 6px solid #176c22;
    }
    .cuadro-asociate h3{
        font-size: 24px;
    }
    .cuadro-asociate li{
        font-size: 15px;
    }
    .mensaje-asociate p{
        font-size: 18px;
        padding: 16px 22px;
        line-height: 1.6;
    }
    /* CONTACTO */
    .contacto-card p{
        font-size: 16px;
        word-break: break-word;
    }
}