/* =====================================================
   VARIABLES / BOOTSTRAP COLORS
===================================================== */
:root {
    --bs-primary: #012C66;
    --bs-primary-rgb: 1, 44, 102;
}

/* Forzar uso del color corporativo */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar-custom {
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    transition: color .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #ffffff;
}

.navbar-scrolled {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    background-color: rgba(1, 44, 102, 0.95) !important;
}

/* =====================================================
   HERO CON VIDEO
===================================================== */
.hero-slider,
.hero-slide {
    position: relative;
    height: 75vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(1, 44, 102, 0.45),
        rgba(1, 44, 102, 0.85)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
}

/* =====================================================
   SERVICIOS
===================================================== */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 15px;
}

.service-card h6 {
    font-weight: 600;
    margin-top: 10px;
}

/* ---- Servicios interactivos ---- */
.service-hover {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.service-front,
.service-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}

.service-front {
    z-index: 2;
}

.service-back {
    background: var(--bs-primary);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
}

.service-hover:hover .service-front {
    transform: translateY(-100%);
}

.service-hover:hover .service-back {
    transform: translateY(0);
}

/* Mobile friendly */
@media (max-width: 768px) {
    .service-front,
    .service-back {
        position: static;
        transform: none !important;
    }

    .service-back {
        background: #f8f9fa;
        color: #333;
    }
}

/* =====================================================
   MISIÓN / MÉTRICAS
===================================================== */

.metric-card {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all .4s ease;
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.metric-card i {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 10px;
    transition: transform .4s ease;
}

.metric-card:hover i {
    transform: scale(1.15);
}

.metric-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin: 10px 0;
    transition: transform .4s ease;
}

.metric-title {
    font-weight: 600;
    color: #333;
}

.metric-info {
    font-size: .95rem;
    color: #666;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(25px);
    transition: all .4s ease;
}

.metric-card:hover .metric-info {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:hover h3 {
    transform: scale(0.9);
}

.percent {
    font-size: 1.5rem;
    margin-left: 2px;
}
/* Línea decorativa superior */
.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--bs-primary),
        rgba(1, 44, 102, 0.4)
    );
    opacity: 0;
    transition: opacity .4s ease;
}

.metric-card:hover::before {
    opacity: 1;
}
.mision-features {
    position: relative;
}

.mision-features::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 40px auto 0;
    background: var(--bs-primary);
    opacity: 0.25;
    border-radius: 10px;
}
.mision-pill {
    background: #ffffff;
    padding: 30px 22px;
    border-radius: 16px;
    height: 100%;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    transition: all .4s ease;
}

.mision-pill:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.mision-pill i {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 12px;
}

.mision-pill h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mision-pill p {
    font-size: .95rem;
    color: #666;
    line-height: 1.5;
}

/* =====================================================
   CONTACTO / FORMULARIOS
===================================================== */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    text-align: center;
}

.contact-card i {
    color: var(--bs-primary);
    margin-right: 8px;
}

.contact-form input,
.contact-form textarea {
    border-radius: 8px;
}

.nosotros-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.about-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.about-card i {
    font-size: 2.2rem;
    color: var(--bs-primary);
    margin-bottom: 12px;
}

.about-card h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.about-card p {
    font-size: .95rem;
    color: #555;
    margin: 0;
}
/* ================= CONTACTO ================= */

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .4s ease, box-shadow .4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* ICONOS SIN CONTENEDOR */
.contact-icon {
    font-size: 42px;
    color: var(--bs-primary);
    margin-bottom: 15px;
    display: inline-block;
    transition: transform .35s ease, color .35s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15);
    color: #012C66;
}

/* Texto */
.contact-card p {
    color: #555;
    font-size: .95rem;
    line-height: 1.4;
    margin-bottom: .4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
    }

    .contact-icon {
        font-size: 36px;
    }
}
/* ================= LOADER ================= */

#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--bs-primary);
}

.loader-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: pulse 1.6s infinite ease-in-out;
}

.loader-content p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Animación */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}
/* =====================================================
   SEPARADOR OFICIAL TETSA (SIN FONDO)
===================================================== */
.tetsa-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 70px 0;
    background: transparent;
}

.tetsa-divider span {
    width: 90px;
    border-top: 2px solid rgba(1, 44, 102, 0.45);
}

.tetsa-divider i {
    color: var(--bs-primary);
    font-size: 1.3rem;
    background: transparent;
    transition: transform .4s ease, opacity .3s ease;
}

/* Micro interacción */
.tetsa-divider:hover i {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.9;
}
/* =====================================================
   COOKIES MODAL TETSA (SWEET STYLE)
===================================================== */
.tetsa-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.tetsa-cookie-modal {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: pop .45s ease;
}

@keyframes pop {
    0% {
        transform: scale(.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-icon {
    width: 70px;
    height: 70px;
    background: rgba(1,44,102,.1);
    color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
}

.tetsa-cookie-modal h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.cookie-text {
    font-size: .95rem;
    color: #555;
}

.cookie-options {
    margin: 25px 0;
    text-align: left;
}

.cookie-option {
    margin-bottom: 15px;
}

.cookie-option small {
    display: block;
    font-size: .8rem;
    color: #777;
    margin-left: 22px;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.cookie-link {
    display: block;
    margin-top: 15px;
    font-size: .85rem;
    color: var(--bs-primary);
    text-decoration: none;
}
.swal-privacy-link {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #012C66;
    text-decoration: underline;
}
/* =====================================================
   FIX RESPONSIVE HERO / VIDEO (SOLO AJUSTES)
===================================================== */

/* Altura correcta en desktop */
.hero-slider,
.hero-slide {
    height: 85vh;
    min-height: 520px;
}

/* Video siempre centrado y sin deformarse */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido centrado verticalmente */
.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* Reduce altura del hero */
    .hero-slider,
    .hero-slide {
        height: 60vh;
        min-height: 420px;
    }

    /* Evita que el texto quede hasta abajo */
    .hero-content {
        align-items: center;
        padding-top: 60px;
    }

    /* Texto más compacto */
    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}

/* ================= EXTRA PEQUEÑOS ================= */
@media (max-width: 480px) {

    .hero-slider,
    .hero-slide {
        height: 55vh;
        min-height: 380px;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}
