/* ===============================
   🎨 PALETA GLOBAL
================================= */
:root {
    --gris-claro: #f6f5f5;
    --gris-medio: #e8e8e7;
    --gris-oscuro: #333333;
    --rojo-oscuro: #7a1210;
    --rojo-principal: #9e1412;
}

/* ===============================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f2f2;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.20) 1px, transparent 0);
    background-size: 30px 30px;
    color: var(--gris-oscuro);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===============================
   HEADER
================================= */
.header {
    background: linear-gradient(135deg, var(--rojo-oscuro), var(--rojo-principal));
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.menu-left,
.menu-right {
    display: flex;
    gap: 40px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.menu a:hover {
    color: var(--gris-medio);
    transform: translateY(-2px);
}

.menu-logo img {
    height: 100px;
    margin: -20px 40px;
    transition: 0.4s;
}

.menu-logo img:hover {
    transform: scale(1.1);
}

/* ===============================
   HERO INICIO
================================= */
.destacado-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    padding: 120px 100px;
    align-items: center;
}

.destacado-texto {
    animation: slideLeft 1s ease forwards;
    opacity: 0;
}

.destacado-texto h2 {
    font-size: 52px;
    font-weight: 800;
    color: var(--rojo-oscuro);
}

.destacado-texto h3 {
    font-size: 46px;
    font-weight: 800;
    color: var(--rojo-principal);
}

.destacado-texto p {
    font-size: 20px;
    margin-top: 20px;
}

.destacado-imagen {
    animation: slideRight 1s ease forwards;
    opacity: 0;
}

.destacado-imagen img {
    width: 100%;
    max-width: 750px;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.2);
    animation: floatImage 5s ease-in-out infinite;
    transition: 0.6s;
}

.destacado-imagen img:hover {
    transform: scale(1.05);
}

/* ===============================
   NOSOTROS CORREGIDO
================================= */

.nosotros-section {
    width: 100%;
    padding: 120px 0;
}

.nosotros-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.nosotros-header {
    text-align: center;
    margin-bottom: 100px;
}

.nosotros-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #981914;
    animation: fadeUp 1s ease;
}

.nosotros-header p{
    font-size:20px;
    animation: fadeUp 1.2s ease;
}

.bloque-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
    margin-bottom: 120px;
}

.bloque-invertido {
    direction: rtl;
}

.bloque-invertido .info-box,
.bloque-invertido .imagen-box {
    direction: ltr;
}

.imagen-box {
    display: flex;
    justify-content: center;
}

.imagen-box img {
    max-width: 450px;
    width: 100%;
}

/* ===============================
   SERVICIOS
================================= */
.services-section {
    padding: 120px 100px;
    text-align: center;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--rojo-oscuro);
    animation: fadeUp 1s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: 0.5s;
    animation: fadeUp 1s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 80%;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: 0.6s;
}

.service-card img:hover {
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* ===============================
   CONTACTOS
================================= */
.card {
    background: white;
    padding: 60px;
    border-radius: 30px;
    max-width: 700px;
    margin: 100px auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    animation: fadeUp 1s ease;
}

.card h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--rojo-oscuro);
}

.card p {
    font-size: 18px;
    margin: 12px 0;
}

/* ===============================
   CTA MITAD ROJO / MITAD BLANCO
================================= */

.cta-section {
    background: linear-gradient(
        to bottom,
        #f2f2f2 50%,
        var(--rojo-principal) 50%
    );
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

/* PATRÓN SOLO EN LA PARTE GRIS */
.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%; /* un poco más que la mitad */

    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(0,0,0,0.20) 1px,
        transparent 0
    );

    background-size: 30px 30px;

    /* DESVANECIDO SUAVE */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);

    pointer-events: none;
    z-index: 1;
}

/* CUADRO BLANCO */
.cta-content {
    max-width: 1100px;
    margin: auto;
    padding: 70px 80px;
    border-radius: 30px;
    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    box-shadow: 0 40px 80px rgba(0,0,0,0.25);

    position: relative;
    z-index: 2;

    animation: fadeUp 1s ease;
}

/* TEXTO */
.cta-text h2 {
    font-size: 40px;
    font-weight: 600;
    color: var(--rojo-oscuro);
    margin-bottom: 10px;
}

.cta-text h3 {
    font-size: 30px;
    font-weight: 800;
    color: #222;
}

/* BOTÓN */
.cta-btn {
    background: linear-gradient(135deg, var(--rojo-principal), var(--rojo-oscuro));
    color: white;
    padding: 10px 80px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.cta-btn:hover {
    transform: translateY(-6px) scale(1.05);
}

/* ===============================
   FOOTER MEJORADO
================================= */

.footer-empresa {
    background: linear-gradient(to right, #2e2e2e, #3b3b3b);
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 80px 60px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--rojo-principal);
    margin-bottom: 20px;
    font-size: 18px;
}

/* LISTA VERTICAL */
.footer-col a {
    display: block;
    color: white;           /* 🔥 ahora blanco */
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 15px;
}

/* QUITAR MORADO VISITED */
.footer-col a:visited {
    color: white;
}

/* HOVER ELEGANTE */
.footer-col a:hover {
    color: var(--rojo-principal);
    transform: translateX(5px);
}

.footer-col p {
    font-size: 15px;
    line-height: 1.8;
    color: #dcdcdc;
}

/* FOOTER FINAL */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ===============================
   ANIMACIONES
================================= */
@keyframes pageFade {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideLeft {
    from {opacity: 0; transform: translateX(-60px);}
    to {opacity: 1; transform: translateX(0);}
}

@keyframes slideRight {
    from {opacity: 0; transform: translateX(60px);}
    to {opacity: 1; transform: translateX(0);}
}

@keyframes fadeUp {
    from {opacity: 0; transform: translateY(40px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes floatImage {
    0% {transform: translateY(0);}
    50% {transform: translateY(-10px);}
    100% {transform: translateY(0);}
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {

    .bloque-nosotros {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .bloque-invertido {
        direction: ltr;
    }

    .nosotros-header {
        margin-bottom: 60px;
    }
}
/* ===============================
   SECCIÓN SERVICIOS INFO PREMIUM
================================= */

.servicios-info-section {
    padding: 140px 40px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Caja principal */
.servicios-info-box {
    max-width: 1100px;
    background: white;
    padding: 80px;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    position: relative;
    animation: fadeUp 1s ease;
    overflow: hidden;
}

/* Línea decorativa lateral */
.servicios-info-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--rojo-principal),
        var(--rojo-oscuro)
    );
    border-radius: 30px 0 0 30px;
}

/* TÍTULO LLAMATIVO */
.servicios-titulo {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--rojo-oscuro);
    position: relative;
    animation: slideLeft 1s ease;
}

/* Subrayado animado */
.servicios-titulo::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    background: var(--rojo-principal);
    margin-top: 12px;
    transition: 0.6s ease;
}

.servicios-info-box:hover .servicios-titulo::after {
    width: 120px;
}

/* Texto */
.servicios-info-box p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #444;
    animation: fadeUp 1.2s ease;
}

/* Hover suave en caja */
.servicios-info-box:hover {
    transform: translateY(-8px);
    transition: 0.5s;
}

/* CONTENEDOR GENERAL */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

/* ICONOS BASE */
.icon {
    position: absolute;
    font-size: 90px;
    color: rgba(139, 25, 23, 0.015); /* rojo oscuro transparente */
    animation: float 6s ease-in-out infinite;
}

/* POSICIONES PERSONALIZADAS */
.icon1 { top: 15%; left: 8%; animation-delay: 0s; }
.icon2 { top: 55%; left: 15%; animation-delay: 2s; }
.icon3 { top: 25%; right: 10%; animation-delay: 1s; }
.icon4 { bottom: 15%; right: 20%; animation-delay: 3s; }

/* NUEVAS POSICIONES */

.icon6  { top: 40%; left: 5%; animation-delay: 1.5s; font-size: 60px; opacity: 0.05; }
.icon7  { top: 75%; right: 8%; animation-delay: 3.5s; font-size: 90px; opacity: 0.06; }
.icon8  { top: 50%; right: 30%; animation-delay: 2.5s; font-size: 70px; opacity: 0.05; }
.icon9  { bottom: 35%; left: 35%; animation-delay: 4s; font-size: 80px; opacity: 0.04; }
.icon10 { bottom: 10%; left: 20%; animation-delay: 5s; font-size: 65px; opacity: 0.05; }

/* Mejora animación más suave */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.nosotros-header {
    text-align: center;
    margin-bottom: 80px;
}

.nosotros-header h1 {
    font-size: 56px;
}
.nosotros-header p{
    font-size:22px;
}

.bloque-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.bloque-invertido {
    direction: rtl;
}

.bloque-invertido .info-box,
.bloque-invertido .imagen-box {
    direction: ltr;
}

.imagen-box img {
    max-width: 420px;
    width: 100%;
}

@media (max-width: 900px) {
    .bloque-nosotros {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bloque-invertido {
        direction: ltr;
    }
}

/* Asegurar ancho completo */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Sección nosotros ocupa toda la pantalla */
.nosotros-section {
    width: 100%;
    min-height: 100vh;
    padding: 100px 0;
}

/* Contenedor centrado real */
.nosotros-container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}


/* LOGO EN FOOTER */

.footer-logo{
display:flex;
justify-content:flex-end;
align-items:center;
padding-left:20px;
}

.footer-logo img {
    max-width: 300px;   /* tamaño del logo */
    width: 100%;
    opacity: 0.95;
    transition: 0.4s;
}

.footer-logo img:hover {
    transform: scale(1.1);
    opacity: 1;
}


.valores-section{
margin-top:80px;
text-align:center;
}

.valores-container{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
margin-top:40px;
}

.valor-box{
width:18%;
background:#f5f5f5;
padding:20px;
border-radius:10px;
box-shadow:0px 4px 10px rgba(0,0,0,0.1);
}

/* ===============================
NOSOTROS NUEVA ESTRUCTURA
================================= */

.mision-vision{
display:flex;
justify-content:space-between;
gap:50px;
margin-top:60px;
margin-bottom:100px;
}

.info-box{
background:white;
padding:40px;
border-radius:20px;
box-shadow:0px 10px 30px rgba(0,0,0,0.1);
animation:fadeUp 1s ease;
transition:0.4s;
}

.info-box:hover{
transform:translateY(-8px);
}

.info-box h2{
color:#7a1210;
margin-bottom:15px;
font-size:28px;
}

.info-box p{
line-height:1.7;
color:#444;
}


/* ===============================
VALORES
================================= */

.valores-section{
text-align:center;
margin-top:40px;
}

.valores-section h2{
font-size:36px;
color:#7a1210;
margin-bottom:10px;
}

.valores-container{
display:grid;
grid-template-columns: repeat(3, 1fr);
gap:30px;
margin-top:40px;
}

.valor-box{
background:white;
padding:30px;
border-radius:15px;
width:19%;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
}

.valor-box h3{
font-size:22px;
margin-bottom:10px;
}

.valor-box p{
font-size:17px;
}

.valor-box h3{
color:#7a1210;
margin-bottom:10px;
}


/* ===============================
RESPONSIVE
================================= */

@media (max-width:900px){

.mision-vision{
flex-direction:column;
}

.info-box{
width:100%;
}

.valores-container{
flex-direction:column;
align-items:center;
}

.valor-box{
width:80%;
}

}

/* VALORES ORDENADOS */

.valores-container{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
margin-top:40px;
justify-items:center;
}

.valor-box{
background:white;
padding:30px;
border-radius:15px;
width:100%;
max-width:260px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
}

.valor-box:hover{
transform:translateY(-8px);
}

.valor-icon{
width: 210px;
margin-bottom:2px;
}

/* EL VALOR DE ABAJO */

.valor-centro{
grid-column:2/4;
}

/* RESPONSIVE */

@media (max-width:900px){

.valores-container{
grid-template-columns:1fr 1fr;
}

.valor-centro{
grid-column:auto;
}

}

@media (max-width: 900px){

.valores-container{
grid-template-columns: repeat(2,1fr);
}

.mision-vision{
grid-template-columns:1fr;
}

}

@media (max-width: 600px){

.valores-container{
grid-template-columns:1fr;
}

.info-box{
padding:25px;
}

.nosotros-header h1{
font-size:34px;
}

}

.mision-vision{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
margin-bottom:80px;
}

/* ===============================
   RESPONSIVE NOSOTROS
================================= */

@media (max-width: 900px){

/* MISION Y VISION */
.mision-vision{
grid-template-columns:1fr;
gap:30px;
}

/* CAJAS */
.info-box{
padding:25px;
}

/* TITULO */
.nosotros-header h1{
font-size:34px;
}

/* TEXTO */
.nosotros-header p{
font-size:18px;
}

/* VALORES */
.valores-container{
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.valor-box{
width:100%;
}

}


/* ===============================
   CELULAR
================================= */

@media (max-width: 600px){

.nosotros-container{
padding:60px 20px;
}

/* TITULO */
.nosotros-header h1{
font-size:30px;
}

/* TEXTO */
.nosotros-header p{
font-size:16px;
}

/* MISION VISION */
.info-box{
padding:20px;
}

/* VALORES */
.valores-container{
grid-template-columns:1fr;
}

.valor-box{
padding:25px;
}

.valor-box img{
width:60px;
}

}

/* ===============================
RESPONSIVE NOSOTROS MOVIL
================================= */

@media (max-width:768px){

/* CONTENEDOR */
.nosotros-container{
padding:60px 20px;
}

/* TITULO */
.nosotros-header h1{
font-size:32px;
line-height:1.2;
}

/* TEXTO DEBAJO DEL TITULO */
.nosotros-header p{
font-size:16px;
padding:0 10px;
}

/* MISION Y VISION */
.mision-vision{
grid-template-columns:1fr;
gap:25px;
}

/* CAJAS */
.info-box{
padding:25px;
}

/* TITULOS DE CAJA */
.info-box h2{
font-size:22px;
}

/* TEXTO CAJAS */
.info-box p{
font-size:15px;
line-height:1.6;
}

/* VALORES */
.valores-container{
grid-template-columns:repeat(2,1fr);
gap:15px;
}

/* TARJETAS */
.valor-box{
padding:20px;
}

/* ICONOS */
.valor-box img{
width:45px;
}

}


/* ===============================
CELULARES PEQUEÑOS
================================= */

@media (max-width:480px){

.valores-container{
grid-template-columns:1fr;
}

.nosotros-header h1{
font-size:28px;
}

.info-box{
padding:20px;
}

.valor-box{
padding:18px;
}

}