/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img {
    width: 60px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========== CONFIGURACIÓN GENERAL ========== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita scroll horizontal */
    box-sizing: border-box; /* Incluye padding y border en width */
    font-family: Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: inherit; /* Hereda box-sizing para todo */
}

/* ========== HEADER (Encabezado) ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001f3f;
    padding: 15px 30px;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 70px;
    width: 70px;
    border-radius: 10px;
    border: 2px solid white;
}

.text-container {
    display: flex;
    flex-direction: column;
}

.text-container h1 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.text-container p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: #ddd;
}

/* ========== MENÚ DE NAVEGACIÓN ========== */
.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.menu a:hover,
.menu a.active {
    color: #FFD700;
}

/* ========== SECCIÓN ACERCA DE NOSOTROS ========== */
.about-intro {
    text-align: justify;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.about-intro .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    gap: 5px;
}

/* Asegura que el padding no cause overflow */
.about-intro .container, .about-intro p, .about-intro h2 {
    box-sizing: border-box;
}

.about-intro h2 {
    text-align: center;
    color: #001f3f;
    font-size: 28px;
    margin-bottom: 15px;
}

.about-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* ========== SECCIÓN PARALLAX ========== */
.parallax-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('FONDO2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.parallax-section .parallax-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
}

.parallax-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.parallax-section p {
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
}

/* ========== SECCIÓN MISIÓN VISIÓN ========== */
.about-misvis {
    text-align: justify;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.about-misvis .container-misvis {
    max-width: 800px;
    margin: auto;
    margin-bottom: 10px;
    padding: 15px;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.about-misvis h2 {
    color: #001f3f;
    font-size: 28px;
    margin-bottom: 15px;
}

.about-misvis p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* ========== SECCIÓN VALORES COMERCIALES ========== */
.valores {
    position: relative;
    width: 100%; /* Evita auto que puede crecer */
    height: auto;
    padding: 80px 20px;
    background-image: url('val.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

.valores-container {
    max-width: 1000px;
    margin: auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.valores-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.valores-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.valor {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    color: #001f3f;
    text-align: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.valor h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.valor p {
    font-size: 16px;
    line-height: 1.5;
}

.valor:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

/* ========== FOOTER ========== */
.footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ========== RESPONSIVE (Móviles) ========== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .about h2 {
        font-size: 24px;
    }

    .valores-container {
        padding: 20px;
    }

    .valores-container h2 {
        font-size: 26px;
    }

    .valores-container p {
        font-size: 16px;
    }

    .parallax-section {
        height: auto;
        padding: 60px 15px;
        background-attachment: scroll;
    }

    .parallax-section .parallax-content {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 20px;
        margin: 0 auto;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .parallax-section h2 {
        font-size: 22px;
    }

    .parallax-section p {
        font-size: 14px;
    }
}
