/* =========================================
   NOSOTROS.CSS
   Estilos exclusivos de la página Sobre Nosotros
   ========================================= */

/* ---- HERO ---- */
.nos-hero {
    position: relative;
    background: var(--grad-hero);
    color: var(--blanco);
    padding: 5rem 0 4rem;
    overflow: hidden;
    text-align: center;
}
.nos-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(0,188,212,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(0,151,167,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.nos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nos-eyebrow {
    display: inline-block;
    background: rgba(0,188,212,0.18);
    border: 1px solid rgba(0,188,212,0.4);
    color: var(--cian-claro);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.nos-hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.nos-hero-content h1 span { color: var(--cian); }
.nos-hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 520px;
    margin: 0 auto;
}
.nos-hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
}
.nos-hero-wave svg { display: block; width: 100%; height: 60px; }

/* ---- SECCIONES GENERALES ---- */
.nos-section { margin-bottom: 4rem; }

/* ---- HISTORIA ---- */
.nos-img-block {
    position: relative;
    display: flex;
    justify-content: center;
}
.nos-img-placeholder {
    width: 100%;
    max-width: 460px;
    height: 320px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nos-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nos-img-badge {
    position: absolute;
    bottom: -16px;
    right: 60px;
    background: var(--cian);
    color: var(--azul-marino);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-cian);
}
.nos-badge-num  { font-family: var(--font-secondary); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.nos-badge-text { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.nos-text {
    font-size: 0.95rem;
    color: var(--gris-oscuro);
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* Stats */
.nos-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gris-claro);
}
.nos-stat { display: flex; flex-direction: column; }
.nos-stat-num {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--azul-marino);
    line-height: 1;
}
.nos-stat-label { font-size: 0.78rem; color: var(--gris-medio); margin-top: 0.2rem; }

/* ---- GALERÍA ---- */
.nos-galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.nos-galeria-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}
.nos-galeria-item--oculta {
    display: none;
}
.nos-galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.nos-galeria-item:hover img {
    transform: scale(1.08);
}
@media (max-width: 768px) {
    .nos-galeria-grid { grid-template-columns: repeat(3, 1fr); }
    .nos-galeria-item--extra { display: none; }
    .nos-galeria.show-all .nos-galeria-item--extra { display: block; }
}
@media (max-width: 480px) {
    .nos-galeria-grid { grid-template-columns: repeat(2, 1fr); }
}
.nos-galeria-mas {
    position: absolute;
    inset: 0;
    background: rgba(75, 78, 80, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    transition: background 0.2s;
}
.nos-galeria-mas:hover {
    background: rgba(0, 188, 212, 0.80);
    color: #fff;
}

/* Botón toggle galería */
.nos-galeria-toggle {
    display: none;
    margin: 1.5rem auto 0;
    font-family: var(--font-primary);
    font-size: .85rem;
    font-weight: 700;
    color: var(--cian);
    background: transparent;
    border: 2px solid var(--cian);
    padding: .65rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.nos-galeria-toggle:hover {
    background: var(--cian);
    color: var(--azul-marino);
}
@media (max-width: 768px) {
    .nos-galeria-toggle { display: inline-block; }
}

/* ---- MODAL GALERÍA ---- */
.nos-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.9);
    align-items: center;
    justify-content: center;
}
.nos-modal.show { display: flex; }
.nos-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nos-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.nos-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: opacity .2s;
}
.nos-modal-close:hover { opacity: .6; }
.nos-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    transition: opacity .2s;
    opacity: .7;
}
.nos-modal-nav:hover { opacity: 1; }
.nos-modal-prev { left: 16px; }
.nos-modal-next { right: 16px; }

.nos-mvv-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    border-bottom: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.nos-mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--cian);
}

.nos-mvv-icon {
    width: 52px; height: 52px;
    background: rgba(0,188,212,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--cian);
    margin-bottom: 1.1rem;
}
.nos-mvv-card:not(.nos-mvv-card--valores) .nos-mvv-icon {
    background: var(--cian);
}
.nos-mvv-card:not(.nos-mvv-card--valores) .nos-mvv-icon i {
    color: #222;
}

.nos-mvv-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 0.65rem;
}
.nos-mvv-card p { font-size: 0.88rem; color: var(--gris-oscuro); line-height: 1.75; margin: 0; }
.nos-mvv-card--valores {
    padding: 2rem 2.5rem;
    border-left: 4px solid var(--cian);
    background: linear-gradient(135deg, #f8fcff, #fff);
}
.nos-mvv-card--valores .nos-mvv-icon {
    background: var(--cian);
    color: var(--azul-marino);
}
.nos-mvv-card--valores h3 {
    font-size: 1.25rem;
    color: var(--azul-marino);
    margin-bottom: 1.2rem;
}

.nos-valores-list { list-style: none; padding: 0; margin: 0; }
.nos-valores-list li {
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.65;
    border-bottom: 1px solid #f0f3f7;
}
.nos-valores-list li:last-child { border-bottom: none; }

.nos-valores-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--cian);
    background: rgba(0,188,212,0.1);
    width: 22px; height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0.2rem;
}

.nos-valores-list li strong { color: var(--azul-marino); white-space: normal; }
.val-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.6; }

.no-line::after { display: none; }
.nos-section.py-5 { padding-bottom: 0; margin-bottom: 0; }
.nos-section.py-5:last-of-type { padding-bottom: 1rem; }
.main-content:has(.nos-faq-card) + .footer-main {
    margin-top: 0 !important;
}

/* ---- POR QUÉ ELEGIRNOS ---- */
.nos-title-center { margin-left: auto; margin-right: auto; }
.nos-title-center::after { left: 50%; transform: translateX(-50%); }

.nos-porque-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    border: 1.5px solid #E8EFF6;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.nos-porque-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cian);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}
.nos-porque-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(0,188,212,0.3);
}
.nos-porque-card:hover::before { transform: scaleX(1); }

.nos-porque-icon {
    width: 48px; height: 48px;
    background: rgba(0,188,212,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--cian);
    margin-bottom: 1rem;
    transition: background 0.3s;
}
.nos-porque-card:hover .nos-porque-icon { background: var(--cian); color: var(--azul-marino); }

.nos-porque-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 0.4rem;
}
.nos-porque-card p { font-size: 0.85rem; color: var(--gris-medio); line-height: 1.7; margin: 0; }

.nos-porque .section-title::after {
    display: none;
}
/* ---- EQUIPO ---- */
.nos-equipo-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
    border: 1.5px solid #E8EFF6;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.nos-equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--cian);
}
.nos-equipo-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--azul-marino), #0D3D57);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: rgba(0,188,212,0.6);
    margin: 0 auto 1rem;
    border: 3px solid rgba(0,188,212,0.2);
    transition: border-color 0.3s;
}
.nos-equipo-card:hover .nos-equipo-avatar { border-color: var(--cian); }

.nos-equipo-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 0.25rem;
}
.nos-equipo-cargo {
    font-size: 0.8rem;
    color: var(--cian-oscuro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- CTA ---- */
.nos-cta {
    background: var(--grad-dark);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nos-cta-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
}
.nos-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
    z-index: 1;
    pointer-events: none;
}
.nos-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.nos-cta h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 0.75rem;
}
.nos-cta h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cian);
    margin: 0.75rem auto 1rem;
    border-radius: 2px;
}
.nos-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.nos-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.nos-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--cian);
    color: var(--azul-marino);
    font-weight: 800;
    font-size: .95rem;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: .5px;
    transition: background .3s, transform .3s;
}
.nos-cta-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    color: var(--azul-marino);
}



/* ---- MAX-WIDTH CONTENEDOR PRINCIPAL ---- */


/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .nos-hero-content h1 { font-size: 2.3rem; }
    .nos-mvv { padding: 1.75rem 1.25rem; }
    .nos-stats { gap: 1rem; }
    .nos-section.py-5 .row.g-4 {
        --bs-gutter-y: 0;
    }
    .nos-faq-img {
        height: 180px;
    }
    .col-lg-6:last-child .nos-faq-card .nos-faq-img img {
        object-position: 65% center;
    }
}

@media (max-width: 768px) {
    .nos-hero { padding: 4rem 0 3rem; }
    .nos-hero-content h1 { font-size: 1.85rem; }
    .nos-img-placeholder { height: 240px; }
    .nos-img-badge {
        padding: 0.45rem 0.75rem;
        right: 20px;
        bottom: -10px;
        border-radius: 8px;
    }
    .nos-badge-num { font-size: 1rem; }
    .nos-badge-text { font-size: 0.5rem; }
    .nos-cta h2 { font-size: 1.6rem; }
    .nos-stats { gap: 1rem; }
    .nos-stat-num { font-size: 1.4rem; }
    .nos-section.nos-mvv .nos-mvv-card--valores { padding: 1.25rem; }
    .nos-faq-img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .nos-hero-content h1 { font-size: 1.5rem; }
    .nos-hero-content p  { font-size: 0.92rem; }
    .nos-cta { padding: 1.25rem 1rem; min-height: auto; }
    .nos-cta h2 { font-size: 1.4rem; }
    .nos-cta h2::after { margin: 0.5rem auto 0.75rem; }
    .nos-cta p { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .nos-cta h2 { font-size: 1.35rem; }
    .nos-stats { flex-wrap: wrap; gap: 1rem; }
    .nos-stat { flex: 0 0 calc(50% - 0.5rem); }
    .nos-img-placeholder { height: 200px; font-size: 3.5rem; }
    .nos-section.nos-mvv { padding: 0; }
    .nos-section.py-5 { padding-bottom: 0 !important; }
    .nos-section.nos-mvv .nos-mvv-card { padding: 1.25rem 0.75rem; }
    .nos-valores-list li { flex-direction: column; gap: 0.15rem; }
    .nos-valores-list li strong { white-space: normal; }
    .nos-section.nos-porque { margin-bottom: 1rem; }
    .nos-faq-img {
        height: 140px;
    }
}

/* ---- PREGUNTAS FRECUENTES (FAQ) ---- */
.nos-faq-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.nos-faq-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--cian);
}

.nos-faq-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.nos-faq-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nos-faq-content {
    padding: 1.25rem 1.25rem 0.5rem;
}

.nos-faq-content .nos-faq-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-marino);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}
.nos-faq-content .nos-faq-btn:hover { color: var(--cian); }
.nos-faq-content .nos-faq-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: var(--cian);
    flex-shrink: 0;
}
.nos-faq-content .nos-faq-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.nos-faq-content .nos-faq-body {
    font-size: 0.92rem;
    color: var(--gris-medio);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}
.nos-faq-content .nos-faq-body.show {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    max-height: 500px;
}
.nos-faq-content .nos-faq-body p { margin: 0; }

@media (max-width: 768px) {
    .nos-faq-content .nos-faq-body.show {
        max-height: 1200px;
    }
}
