﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', sans-serif;
    background: #f5f5f5;
    color: #222;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}


/* HEADER */
.header {
    background: linear-gradient(120deg, #2046f0 0%, #0e1b75 70%);
    color: #fff;
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(5, 16, 66, 0.25);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.nav a.active {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* HERO */
.hero {
    background: url('images/cajeros.png') no-repeat;
    background-color: #001441;
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(76, 112, 255, 0.35), transparent 35%),
                radial-gradient(circle at 75% 30%, rgba(41, 68, 255, 0.25), transparent 35%),
                linear-gradient(120deg, rgba(0, 8, 46, 0.85) 25%, rgba(0, 8, 46, 0.45) 100%);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(70, 120, 255, 0.28), transparent 55%);
    border-radius: 40% 60% 55% 45%;
    top: 15%;
    right: 8%;
    filter: blur(12px);
    z-index: 0;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
    z-index: 1;
    text-align: center;
    align-items: center;
    margin: 0 auto;
}

.hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9fc5ff;
}

.hero-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 6vw, 55px);
    color: #f2f6ff;
    font-weight: 900;
    z-index: 1;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #04124a;
    z-index: -1;
    -webkit-text-stroke: clamp(3px, 0.8vw, 7px) #182a7a;
}

.hero-subtitle {
    color: #d8e6ff;
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
}


.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #2c58ff 0%, #1d34c5 50%, #0e1b75 100%);
    color: #fff;
    width: auto;
    min-width: 170px;
    height: 52px;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #1d34c5;
    box-shadow: 0px 18px 36px rgba(20, 60, 200, 0.35);
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    margin-top: 0.2rem;
    padding: 0 1.7rem;
    align-self: center;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0px 22px 44px rgba(20, 60, 200, 0.45);
    filter: brightness(1.03);
}
.btn-primary::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background-color: #0a1762;
    transition: width 0.35s ease;
    z-index: 2;
}
.btn-primary::after {
    content: attr(data-hover);
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, #1d34c5 0%, #0e1b75 100%);
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    display: grid;
    place-items: center;
    z-index: 1;
}
.btn-primary:hover::before { width: 100%; }
.btn-primary:hover::after { transform: translateY(0); }

/* VARIABLES PARA CONTROLAR LA ANIMACIÓN */
:root {
    --card-transform: translateY(20px);
}

/* SECCIÓN CALIDAD */
.quality-section {
    background: radial-gradient(circle at 18% 18%, rgba(56,110,255,0.16), transparent 38%),
                radial-gradient(circle at 82% 12%, rgba(14,36,131,0.20), transparent 40%),
                linear-gradient(160deg, #2046f0 0%, #0e1b75 55%, #0a1245 100%);
    min-height: 115vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem 4.5rem;
    position: relative;
    overflow: hidden;
}

.quality-section::before {
    content: "";
    position: absolute;
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(44,88,255,0.22), transparent 60%);
    top: -8%; left: -10%;
    filter: blur(18px);
    opacity: 0.65;
    z-index: 0;
}

.quality-section::after {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(14,27,117,0.30), transparent 60%);
    bottom: -12%; right: -14%;
    filter: blur(22px);
    opacity: 0.7;
    z-index: 0;
}

.quality-section > * { 
    position: relative; 
    z-index: 1; 
}

/* TITULO */
.quality-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 6vw, 55px);
    color: #f2f6ff;
    font-weight: 900;
    text-shadow: 0px 12px 28px rgba(0, 0, 0, 0.35);
}

.quality-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    color: #0c1a52;
    z-index: -1;
    -webkit-text-stroke: 7px #0c1a52;
}

/* DESCRIPCIÓN */
.quality-description {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #d4e3ff;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* CONTENEDOR DE TARJETAS */
.quality-cards {
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 2.25rem);
    flex-wrap: wrap;
}

/* TARJETA */
.quality-card {
    background: linear-gradient(155deg, rgba(32,70,240,0.75), rgba(14,27,117,0.8));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    max-width: 320px;
    
    /* ANIMACIÓN + HOVER SIN BLOQUEOS */
    transform: var(--card-transform);
    transition: var(--card-transition, transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease, filter 0.5s ease);

    opacity: 0;
    backdrop-filter: blur(6px);

    animation: cardFloat 0.8s ease forwards;
}

/* DELAYS */
.quality-card:nth-child(2) { animation-delay: 0.12s; }
.quality-card:nth-child(3) { animation-delay: 0.24s; }

/* HOVER 100% FUNCIONAL */
.quality-card:hover {
    transform: translateY(-8px) scale(1.03); /* saltito suave */
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(56,110,255,0.45);
    background: linear-gradient(155deg, rgba(45,90,255,0.9), rgba(20,40,160,0.92));
    filter: brightness(1.04);
}

/* IMAGEN */
.quality-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

/* TEXTO */
.quality-card p {
    padding: 1rem 1.25rem 1.35rem;
    font-weight: 700;
    color: #e7edff;
    line-height: 1.4;
}

/* ANIMACIÓN DE ENTRADA SUAVE */
@keyframes cardFloat {
    0% { opacity: 0; --card-transform: translateY(20px); }
    100% { opacity: 1; --card-transform: translateY(0); }
}




/* NUESTROS NUMEROS */
.numbers-section {
    background: url('images/alsara-numeros.png') no-repeat center center / cover;
    text-align: center;
    background-color: #0b1c72;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 5vw, 3rem);
    position: relative;
}

.numbers-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 6vw, 55px);;
    color: #ffffff;
    font-weight: 900;
    z-index: 1;
    margin-bottom: 3rem;
    

}



.numbers-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    background: linear-gradient(160deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 250px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease, background 0.5s ease;
    text-align: center;
    cursor: pointer;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1b3de8 0%, #1230b6 60%, #0a1c72 100%);
    filter: brightness(1.04);
}

.number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.label {
    position: relative;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.label::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    z-index: -1;
    -webkit-text-stroke: 3px #fff;
}

.description {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* SERVICIOS */
.services-section {
    background: url('images/servicios.png') no-repeat center center / cover;
    background-color: #0a1c72;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.services-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 6vw, 55px);;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 3rem;
    z-index: 2;
}



.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

.service-card {
    background: linear-gradient(160deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #9fc5ff;
    border-radius: 20px;
    max-width: 300px;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1b3de8 0%, #1230b6 60%, #0a1c72 100%);
    filter: brightness(1.04);
    color: #ffffff;
}

.service-icon {
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 40%;
    padding: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.service-card:hover .service-icon {
    transform: translateX(-50%) scale(1.1);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: #9fc5ff;
}

.service-card p {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
}

/* NOSOTROS */
.about-section {
    background: url('images/alsara-nosotros.png') no-repeat center center / cover;
    min-height: 100vh;
    background-color: #0a1c72;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.about-section > * {
    position: relative;
    z-index: 2;
}

.about-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 5.5vw, 50px);
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 1rem;
    z-index: 1;
}

.about-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    z-index: -1;
    -webkit-text-stroke: 6px #fff;
}

.about-description {
    font-family: 'PT Sans', sans-serif;
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 900px;
    margin-bottom: 3rem;
}

.about-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-card {
    background: linear-gradient(160deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    border-radius: 20px;
    max-width: 350px;
    padding: 2rem;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1b3de8 0%, #1230b6 60%, #0a1c72 100%);
    filter: brightness(1.04);
}

.about-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.mission,
.vision {
    color: #9fc5ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.about-card p {
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* CONTACTO */
.contact-section {
    background: url('images/alsara-contacto.png') no-repeat center center / cover;
    background-color: #0a1c72;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
}

.contact-content {
    background: rgba(13, 1, 40, 0.3);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin-left: 3rem;
    text-align: left;
}

.contact-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 5.5vw, 50px);
    color: #ffffff;
    font-weight: 900;
    z-index: 1;
    margin-bottom: 1rem;
}

.contact-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    z-index: -1;
    -webkit-text-stroke: 6px #fff;
}

.contact-description {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(160deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(160deg, #1b3de8 0%, #1230b6 60%, #0a1c72 100%);
    filter: brightness(1.04);
}

.contact-card a {
    color: #9fc5ff;
    text-decoration: none;
    font-weight: 700;
}

.contact-card a:hover {
    text-decoration: underline;
}

.phone-number {
    color: #9fc5ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.phone-number:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background: linear-gradient(90deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .header-container {
        width: 95%;
    }
    .hero {
    background: url('images/cajeros.png') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    background-color: #001441;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}
    .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
    z-index: 1;
    text-align: center;
    align-items: center;
    margin: 0 auto;
}
    .quality-section,
    .numbers-section,
    .services-section,
    .about-section,
    .contact-section {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav {
        width: 100%;
        justify-content: flex-start;
    }
    .numbers-container,
    .services-cards,
    .about-cards,
    .quality-cards {
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 4vw, 2.25rem);
    flex-wrap: wrap;
}
}

@media (max-width: 768px) {
    .hero {
    background: url('images/cajeros.png') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    background-color: #001441;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}
    .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
    z-index: 1;
    text-align: center;
    align-items: center;
    margin: 0 auto;
}
    .btn-primary {
    background: linear-gradient(120deg, #2c58ff 0%, #1d34c5 50%, #0e1b75 100%);
    color: #fff;
    width: auto;
    min-width: 170px;
    height: 52px;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0px 20px 40px rgba(24, 70, 255, 0.35);
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
    margin-top: 0.2rem;
    padding: 0 1.7rem;
    align-self: center;
}
    .services-title {
        font-size: 36px;
    }
    .service-card {
        max-width: 90%;
        margin-bottom: 2rem;
    }
    .service-icon {
        width: 50px;
        height: 50px;
        top: -30px;
    }
    .about-title {
        font-size: 36px;
    }
    .about-description {
        font-size: 1rem;
    }
    .about-card {
        max-width: 90%;
    }
    .contact-section {
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    .contact-content {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .header-container {
        align-items: center;
    }
    .nav {
        justify-content: center;
    }
    .hero {
    background: url('images/cajeros.png') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    background-color: #001441;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}
    .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
    z-index: 1;
    text-align: center;
    align-items: center;
    margin: 0 auto;
}
    .numbers-container,
    .quality-cards,
    .services-cards,
    .about-cards {
        gap: 1.25rem;
    }
    .card,
    .service-card,
    .about-card,
    .contact-content {
        width: 100%;
        max-width: 100%;
    }
    .contact-section {
        padding: 2rem 1.25rem;
    }
}
