:root {
    --primary-color: #8C1D18; 
    --rojo-ladrillo: #A63A2A; 
    --text-dark: #0A2E4E;  
    --text-enegro: #0A0F1F;
    --sub-titulos:#0B3C5D; 
    --text-light: #64748b;    
    --bg-light: #f8fafc;      
    --white: #ffffff;

    --size-h1: 2.9rem;
    --size-h2: 1.8rem;
    --size-h3: 1.2rem;
    --size-p: 1.05rem;
}

h1 { font-size: var(--size-h1); line-height: 1.2; }
h2 { font-size: var(--size-h2); line-height: 1.3; }
h3 { font-size: var(--size-h3); line-height: 1.4; }
p  { font-size: var(--size-p);  line-height: 1.6; }

@media (max-width: 768px) {
    :root {
        --size-h1: 2rem;
        --size-h2: 1.4rem;
        --size-h3: 1.0rem;
        --size-p: 0.85rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-enegro);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

h3 { color: var(--sub-titulos); }
h4 { color: var(--text-enegro); }
p { color: var(--text-enegro); }


img {
    max-width: 70%;
    clear: both;
    height: auto;
    display: block;
}

/* Clases de utilidad */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


.section-padding {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: var(--size-h2);
}


.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 3px 10px;
}


.logo-img {
    height: clamp(45px, 20vw, 115px);
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}


@media (max-width: 768px) {
    .logo-img {
        height: 40px; 
        margin: 0 auto; 
    }
    .nav-container {
        min-height: 60px; 
        padding: 5px 15px;
    }
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-enegro);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color); 
}

.btn-nav {
    background: var(--rojo-ladrillo); 
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}


.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #4c0519 0%, #8C1D18 100%);
    background-size: auto 100%; 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}


@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 300px !important;
        padding: 0 15px;
    }
}
.hero h1 {
    font-size: var(--size-h1);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero h1 span {
    color: var(--rojo-ladrillo);
}

.hero-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.btn-primary, 
.btn-secundario-blanco {
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    box-sizing: border-box; 
    height: 50px; 
    padding: 0 25px; 
    gap: 15px !important;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--rojo-ladrillo); 
    color: var(--white) !important; 
    border: 2px solid var(--rojo-ladrillo); 
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #701812; 
    border-color: #701812; 
    box-shadow: 0 5px 15px rgba(166, 58, 42, 0.4);
}


.btn-secundario-blanco {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white); 
}

.btn-secundario-blanco:hover {
    transform: translateY(-3px);
    background-color: var(--white); 
    color: var(--text-dark) !important; 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}


@media (max-width: 768px) {
    .hero-botones {
        flex-direction: column; 
        align-items: center; 
        width: 100%;
        gap: 10px;
    }
    
    .btn-primary, 
    .btn-secundario-blanco {
        width: auto; 
    }
}


.intro-empresa {
    background-color: var(--white);
    padding: 10px 10px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .intro-text {
        font-size: var(--size-p);
        color: var(--text-enegro);
        width: 85%;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
}

.intro-text strong {
    color: var(--text-dark );
    font-weight: 600;
}


.texto-columna h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: var(--size-h2); 
    line-height: 1.2;
}

.texto-columna p {
    margin-bottom: 20px;
    font-size: var(--size-p);
    color: var(--text-enegro);
}

.img-final {
    display: block;
    width: 110%;
    height: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}

.seccion-estructura {
    text-align: center; 
}

.titulo-rojo {
    font-size: var(--size-h2);
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.bloque-centrado {
    margin-bottom: 30px;
}

.img-centro-fija {
    max-width: 350px;
    width: 100%;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}

.grid-tres-columnas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;    
    margin: 0 auto 50px auto; 
    text-align: center;   
}

.columna-item h3 {
    color: var(--sub-titulos);
    font-size: var(--size-h3);
    margin-bottom: 10px;
}

.columna-item p {
    font-size: 0.95rem;
}

.bloque-final-ancho {
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px; 
    margin: 0 auto;      
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}


.subtitulo-general {
    font-size: var(--size-h3);
    color: var(--text-dark);
    max-width: 700px;
    margin: -10px auto 40px auto; 
}

.grid-cuatro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px; 
    text-align: center;
}

.item-columna {
    display: flex;             
    flex-direction: column;    
    align-items: center;       
    padding: 10px;
    height: 100%;              
}

.icono-foto {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%; 
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--white); 
    background-color: var(--white);
}


.slider-ventana {
    width: 100%;
    overflow: hidden; 
    position: relative;
    padding: 20px 0; 
}

.slider-track {
    display: flex; 
    width: max-content;
    animation: scroll 35s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slide-item {
    width: 160px;
    padding: 0 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.slide-item img {
    max-height: 120px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.slide-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


.servicios-grid {
    display: flex !important;;              
    flex-direction: row;        
    flex-wrap: nowrap;          
    justify-content: center;    
    align-items: stretch;       
    gap: 2rem;                  
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0 auto;             
    padding: 20px;
    align-items: stretch !important;
}

/* TARJETAS INDIVIDUALES */
.card-plan {
    flex: 1 1 30%;              
    max-width: 400px;           
    min-width: 280px;           
    
    /* Estilos Visuales */
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: auto;               
}

.card-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.plan-header {
    padding: 2rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.plan-header h3 {
    margin: 0 0 1rem 0;
    font-size: var(--size-h3); 
    font-weight: 700;
    text-transform: uppercase;
}

.precio {
    font-size: var(--size-h2);
    font-weight: 800;
    color: var(--text-dark);
    margin: 1rem 0 0 0;
}

.precio span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

.plan-body {
    padding: 2rem;
    flex-grow: 1; 
}

.modulo-item h4 {
    font-size: var (--size-h3);
    margin-bottom: 10px;
    color: #334155;
    text-transform: uppercase;
}

.card-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.card-plan ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.card-plan ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.plan-footer {
    padding: 2rem;
    margin-top: auto;
    background: #fff;
}

.btn-primary.full-width {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--rojo-ladrillo);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 0; 
}

.main-footer {
    background-color: #0f1c2e;   
    color: #ffffff;             
    padding: 60px 0 0 0;
    margin-top: 10px !important;
}

.main-footer p,
.main-footer h4,
.main-footer li,
.main-footer a {
    color: #ffffff;
}

.main-footer a {
    text-decoration: none;
    transition: 0.3s ease;
}

.main-footer a:hover {
    color: #4cc9f0;   
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    background: white; 
    padding: 5px;
    border-radius: 5px;
}

.footer-item ul {
    list-style: none;
    padding: 0;
    display: block;
}

.footer-item li {
    margin-bottom: 8px;
}

.footer-bottom {
    background-color: #0f172a; 
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 0px;
    padding: 20px 0;
    text-align: center;
    font-size: var(--size-p);
}

.mapa-contenedor {
    width: 100%;
    height: 200px;
    background: #2a3547; 
    border-radius: 12px;
    overflow: hidden;
}

.mapa-contenedor iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

@media (max-width: 1024px) {
    .servicios-grid {
        flex-wrap: wrap; 
    }
    .card-plan {
        flex: 1 1 45%; 
        max-width: none;
    }
    .hero { background-attachment: scroll; 
    background-size: cover;}
    
}

@media (max-width: 900px) {
    .nav-container {
        display: flex;
        flex-direction: row-reverse; 
        align-items: center;
        padding: 1px 30px;
    }
    .menu-hamburguesa {
        margin: 0; 
    }
    .logo-img {
        height: 115px; 
    }
    .logo {
        margin: 0;
    }
}
.menu-hamburguesa span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; padding: 0; }
    .nav-menu ul li { margin: 16px 0; }
    
    .btn-nav {
        margin: 0; 
        display: inline-block;
        width: 100%; 
    }
    .section-padding { padding: 40px 0; }
    .contenido-dividido { flex-direction: column; }
    .imagen-columna { order: -1; margin-bottom: 10px; }
    .servicios-grid {
        flex-direction: column; 
        align-items: center;
    }
    .card-plan {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

.footer-social-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

.footer-social-container .social-header {
    text-align: center;
    margin-bottom: 40px; 
}

.footer-social-container .payment-section-container {
    width: 100%;
    margin-top: 0; 
    padding: 0;
}

.footer-social-container .secure-payment-box {
    background: #0D2235; 
    border-radius: 12px;
    padding: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-social-container .security-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.footer-social-container .payment-logos-row { 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-container .payment-logos-row img {
    height: 95px;
    width: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    .footer-social-container .secure-payment-box {
        flex-direction: column; 
        text-align: center;
        padding: 25px 20px;
    }
    
    .footer-social-container .payment-logos-row {
        justify-content: center;
    }
}

.footer-social-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0px 0; 
    grid-column: 1 / -1; 
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.titulo-sociales {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px; 
    font-weight: 600;
    opacity: 0.8; 
}

.redes-sociales {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.redes-sociales a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 60%;
    color: var(--white);
    transition: all 0.3s ease;
}

.redes-sociales a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.redes-sociales a:hover {
    background-color: var(--rojo-ladrillo);
    transform: translateY(-5px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;    
    padding-bottom: 20px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.etiqueta-recomendado {
    position: absolute;
    top: -15px; 
    left: 50%;
    transform: translateX(-50%); 
    
    background: linear-gradient(135deg, var(--rojo-ladrillo), var(--primary-color));
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(140, 29, 24, 0.4);
    z-index: 10;
}

.contenido-dividido {
    display: flex;
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between;
    gap: 40px; 
}

.texto-columna {
    flex: 1 1 500px;
    width: 100% !important;
}

.imagen-columna {
    flex: 1 1 300px;
    display: flex;
    justify-content: center; 
}

.img-final {
    width: 100%;
    max-width: 400px;
    height: auto; 
    object-fit: contain;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .contenido-dividido {
        flex-direction: column; 
        text-align: center;     
        gap: 30px;
    }
    .imagen-columna {
        order: -1; 
    }
    .cita-estrategica {
        text-align: left; 
    }
}

.carousel-container {
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;   
    position: relative;
    overflow: hidden;
    padding-bottom: 20px; 
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.carousel-track .card {
    flex: 0 0 100%;
    max-width: 100%; 
    box-sizing: border-box;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    max-width: 600px;
}

.plataformas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 40px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.plataforma-logo img {
    max-width: 140px; 
    height: auto;
    transition: all 0.4s ease; 
    cursor: pointer;
}

.plataforma-logo img:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .plataformas-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
    
    .plataforma-logo img {
        max-width: 110px;
    }
}

