/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', sans-serif;
    background: #f5f5f5;
    color: #222;
    font-weight: 700;
}

/* HEADER */
.header {
    background: linear-gradient(90deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    padding: 1rem 0;
    
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
}

.nav a.active {
    border-bottom: 2px solid #fff;
}

/* HERO SECTION */
.hero {
    background: url('images/imagenInicio2.png') no-repeat;
    background-size: cover;
    background-position: 85% center; /* 👈 Mueve la imagen a la derecha */
    min-height: 95vh;
    background-color: #002b8b;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-content {
    position: absolute;
    left: 140px; /* Desktop: posición exacta */
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 🔥 Espacio entre título y botón */
}

.hero-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 55px;
    color: #021891;
    font-weight: 900;
    z-index: 1;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff; /* Capa blanca detrás */
    z-index: -1;
    -webkit-text-stroke: 7px #fff; /* Borde más ancho */
}



.btn-primary {
    background: linear-gradient(90deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    width: 170px;           /* ✅ Ancho fijo como en Figma */
    height: 50px;           /* ✅ Alto fijo como en Figma */
    text-decoration: none;
    border-radius: 30px 0 30px 0; /* ✅ Esquinas exactas */
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.25); /* ✅ Igual a Figma */
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;          /* ✅ Centra texto */
    align-items: center;    /* ✅ Vertical */
    justify-content: center;/* ✅ Horizontal */
    transition: background 0.3s, transform 0.2s;
    margin-top: 0.2rem;       /* 🔥 Ajusta separación con el texto */
}

.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0A1D85 0%, #040A2D 100%);
}


/* SECCIÓN POLÍTICA DE CALIDAD */
.quality-section {
    background: linear-gradient(160deg, #FFFFFF 0%, #F1D48B 110%);
    min-height: 115vh; /* ✅ LLENAR PANTALLA COMPLETA */
    display: flex;     /* ✅ Centrar contenido */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}



.quality-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 55px;
    color: #021891;
    font-weight: 900;
    z-index: 1;
    
    /* ✅ Sombra suave para más contraste */
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.quiality-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff; /* Capa blanca detrás */
    z-index: -1;
    -webkit-text-stroke: 7px #fff; /* Borde más ancho */
}

.quality-description {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #091972;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.quality-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quality-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-5px); /* 🔥 Efecto al pasar el mouse */
}

.quality-card img {
    width: 100%;
    height: 200px; /* ✅ Altura fija */
    object-fit: cover; /* ✅ Recorta y centra la imagen */
    display: block;
    border-radius: 15px 15px 0 0;
}


.quality-card p {
    padding: 1rem;
    font-weight: 700;
    color: #091972;
}

/* 🎯 Números SECTION */
.numbers-section {
    background: url('images/producto2.png') no-repeat center center / cover;
    text-align: center;
    min-height: 100vh; /* ✅ LLENA TODA LA PANTALLA */
    display: flex;
    flex-direction: column;
    justify-content: center; /* ✅ Centrado vertical */
    align-items: center;
    padding: 2rem;
    position: relative;
}

.numbers-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 50px;
    color: #021891; /* Azul sólido */
    font-weight: 900;
    z-index: 1;
    margin-bottom: 3rem;
}

.numbers-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff; /* ✅ Capa blanca detrás */
    z-index: -1;
    -webkit-text-stroke: 7px #fff; /* ✅ Borde blanco grueso */
}

/* 🎨 Tarjetas */
.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; /* 🪄 Animación suave */
    text-align: center;
    cursor: pointer; /* Cambia cursor al pasar */
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🪄 Animación al pasar el mouse */
.card:hover {
    transform: translateY(-10px) scale(1.03); /* Sube y crece un poco */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4); /* Resalta con sombra */
}

/* ✅ Número grande */
.number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

/* ✅ Subtítulos como hero-title */
.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; /* ✅ Capa blanca detrás */
    z-index: -1;
    -webkit-text-stroke: 3px #fff; /* ✅ Borde blanco detrás */
}

.description {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}



/* 🎯 SECCIÓN SERVICIOS */
.services-section {
    background: url('images/ImagenNosotros2.png') no-repeat center center / cover;
    position: relative;
    min-height: 100vh; /* ✅ Llena la pantalla completa */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 🔥 Oscurecer imagen para más contraste */
    z-index: 0;
}

.services-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 50px;
    color: #021891;
    font-weight: 900;
    margin-bottom: 3rem;
    z-index: 2; /* ✅ Ponerlo arriba del overlay */
}

.services-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff; /* ✅ Borde blanco */
    z-index: -1;
    -webkit-text-stroke: 6px #fff;
}

/* 🎨 Tarjetas */
.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    z-index: 2; /* ✅ Para que estén sobre el fondo oscuro */
    position: relative;
}

.service-card {
    background: linear-gradient(160deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    border-radius: 20px;
    max-width: 300px;
    padding: 3rem 1.5rem 2rem; /* Más espacio para ícono */
    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;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.4);
}

.service-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateX(-50%) scale(1.1);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .services-title {
        font-size: 36px;
    }
    .service-card {
        max-width: 90%;
        margin-bottom: 2rem;
    }
    .service-icon {
        width: 50px;
        height: 50px;
        top: -30px;
    }
}

/* 🖌 SECCIÓN NOSOTROS */ 
.about-section {
    background: url('images/jefes.png') no-repeat center center / cover;
    min-height: 100vh; /* 📱 Pantalla completa */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* 🎨 Capa oscura encima del fondo */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 🎯 Oscurece la imagen (ajusta el 0.4) */
    z-index: 1;
}

/* ✅ Asegúrate que el contenido quede arriba */
.about-section > * {
    position: relative;
    z-index: 2;
}


.about-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 50px;
    color: #021891;
    font-weight: 900;
    margin-bottom: 1rem;
    z-index: 1;
}

.about-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #fff; /* ✅ Fondo blanco detrás */
    z-index: -1;
    -webkit-text-stroke: 6px #fff; /* ✅ Borde blanco grueso */
}

.about-description {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 900px;
    margin-bottom: 3rem;
}

/* 🟦 Tarjetas Misión / Visión */
.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;
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.03); /* 🪄 Flotante */
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.4);
}

.about-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mission {
    color: #FFD700; /* 🟡 Amarillo para misión */
}

.vision {
    color: #FFD700; /* 🟡 Amarillo para visión */
}

.about-card p {
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .about-title {
        font-size: 36px;
    }
    .about-description {
        font-size: 1rem;
    }
    .about-card {
        max-width: 90%;
    }
}

/* 🖌 SECCIÓN CONTACTO */
.contact-section {
    background: url('images/contac.jpg') no-repeat center center / cover;
    min-height: 100vh; /* Pantalla completa */
    display: flex;
    justify-content: flex-start; /* 👈 Alinea a la izquierda */
    align-items: center;
    padding: 2rem 4rem; /* ✅ Margen interno general */
    position: relative;
}

.contact-content {
    background: rgba(0, 0, 0, 0.3); /* 🔥 Fondo semitransparente opcional */
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px; /* ✅ Máximo ancho */
    margin-left: 3rem; /* 👈 Espacio extra desde el borde izquierdo */
    text-align: left;
}

.contact-title {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 50px;
    color: #021891;
    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;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.4);
}

.contact-card a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 700;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .contact-section {
        justify-content: center; /* ✅ Centrar en móvil */
        padding: 2rem;
    }
    .contact-content {
        margin-left: 0;
        text-align: center;
    }
}


/* FOOTER */
.footer {
    background: linear-gradient(90deg, #0D25A8 0%, #091972 60%, #050E42 100%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}
