/* ====================== */
/* ESTILOS GLOBALES       */
/* ====================== */
:root {
    --primary-color: #042F9B;
    --secondary-color: #0072ff;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #fff;
    --black: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    background-color: #042F9B;
    color: var(--white);
    padding: 10px 50px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 140px;
    text-align: center;
}

.btn:hover, .btn:focus {
    background-color: #0674F9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ====================== */
/* HEADER & NAVEGACIÓN    */
/* ====================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color 0.5s ease, padding 0.5s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header.scrolled .menu-bottom-line {
    display: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    height: 50px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    display: block;
}

.nav-menu ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--white);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover:after,
.nav-menu ul li a:focus:after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons {
    margin-right: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.call-now {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.call-now span {
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.call-now a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.call-now a:hover,
.call-now a:focus {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
}

/* Línea separadora de contacto */
.contact-separator-line {
    height: 90px;
    width: 1px;
    background: #ddd;
    margin: 0 -20px;
    opacity: 0.3;
}

/* Línea inferior del menú */
.menu-bottom-line {
    height: 1px;
    background: #ddd;
    width: 100%;
    margin: 15px 0;
    margin-bottom: -16px;
    opacity: 0.3;
}

/* ====================== */
/* Parallax Section */
/* ====================== */
.parallax {
    padding: 150px 0;
    background-image: url('imagenes/parallax/img-2.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    text-align: center;       
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.652);
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.parallax-content h2 {
    font-size: 50px;
    margin-bottom: 20px;
    margin-top: 10%;
}

.parallax-subtitle {
    font-size: 24px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ====================== */
/* NOSOTROS SECTIONS     */
/* ====================== */
.section {
    padding: 80px 0;
    background: #ebebf0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Historia Section */
.historia-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.historia-img {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    
}

.historia-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.historia-img img:hover {
    transform: scale(1.03);
}

.historia-text {
    flex: 1;
    min-width: 300px;
}

.historia-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.historia-text h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: var(--black);
    bottom: 0;
    left: 0;
}

.historia-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Quienes Somos Section */
.quienes-container {
    background: #ebebf0;
    padding: 60px 0;
}

.quienes-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.quienes-text {
    flex: 1;
    min-width: 300px;
}

.quienes-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.quienes-text h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 2px;
    background: var(--black);
    bottom: 0;
    left: 0;
}

.quienes-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.quienes-img {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quienes-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.quienes-img img:hover {
    transform: scale(1.03);
}

/* Valores Section */
 .valores-section {
            padding: 80px 0;
            background-color: #ffffff;
        }

        .valores-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            align-items: stretch;
        }

        .valor-box {
            background: #ebebf0;
            padding: 40px 30px;
            border-radius: 8px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .valor-box:hover {
            transform: translateY(-10px);
            background-color: #dcdfea;
            
        }

        .valor-icon {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
        }

        .valor-box h3 {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 1.8rem;
            margin-bottom: 20px;
        }

        .valor-box p {
            font-size: 1.01rem;
            line-height: 1.8;
            color: #333;
            flex-grow: 1;
            text-align: left;
        }

        .valor-box ul {
            text-align: left;
            padding-left: 20px;
            margin-top: 0px;
            flex-grow: 1;
        }

        .valor-box ul li {
            margin-bottom: 10px;
            line-height: 1.6;
        }

/* CTA Cards Section */
.cta-cards {
    padding: 80px 0;
    background-color: var(--white);
}

.cta-cards .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.cta-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #ebebf0 ;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    background-color: #dcdfea;
}

.cta-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--primary-color);
    margin-top: 25px;
}

/* Filosofia Section */
.filosofia-container {
    padding: 80px 0;
    text-align: center;
    background-image: url('imagenes/img/b2.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.filosofia-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Ajustable */
}

.filosofia-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.filosofia-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.filosofia-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

/* ====================== */
/* FOOTER                 */
/* ====================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    max-height: 40px;
}

.footer-col p {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col.contact-col ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-col.contact-col ul li i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.copyright {
    text-align: left;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: -3.1%;
}

.legal-links a {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ====================== */
/* WhatsApp Float Button */
/* ====================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* ====================== */
/* RESPONSIVE STYLES      */
/* ====================== */
@media (max-width: 992px) {
    .parallax-content h2 {
        font-size: 40px;
    }
    
    .parallax-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .valor-box {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        transition: all 0.5s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-right {
        display: none;
    }
    
    .contact-separator-line {
        display: none;
    }
    
    .parallax-content h2 {
        font-size: 32px;
    }
    
    .parallax-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .historia-text h2,
    .quienes-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .parallax {
        padding: 100px 0;
    }
    
    .parallax-content h2 {
        font-size: 26px;
    }
    
    .parallax-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .historia-text h2,
    .quienes-text h2 {
        font-size: 1.6rem;
    }
    
    .valor-box {
        min-width: 100%;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .legal-links {
        justify-content: center;
        margin-top: 0;
    }
}
