/* Variables globales */
:root {
    --primary-color: #66398e;
    --secondary-color: #66398E;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6fa;
}

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    height: 90px;
    padding: 5px 0;
    gap: 20px;
    text-decoration: none;
    cursor: default;
    margin-right: auto;
}

.logo img {
    width: 220px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    object-position: left center;
}

.logo-text {
    color: #66398E;
    font-size: 1.4rem;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    margin-left: -10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #66398E;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    transform: scale(1);
    transform-origin: center;
}

.nav-links a:hover {
    color: #66398E;
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-toggle i {
    color: #66398E;
}

/* Hero Section con Parallax */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 32px;
    height: auto;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background: url('assets/img/Slide_auto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /**background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));**/
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    margin-left: 10%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: #4F46E5;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: #fff;
    font-size: 1.15rem;
    margin-top: 0;
    text-shadow: 1px 1px 4px #4F46E5;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

.hero-logo img {
    width: 200px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
}
/* Botones CTA */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sección Nosotros */
.about {
    padding: 100px 0;
    background: var(--light-gray);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.value-card i {
    font-size: 2.5rem;
    color: #66398E;
    margin-bottom: 1rem;
}

/* Sección Seguros */
.seguros {
    padding: 100px 0;
}

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

.seguros h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.seguros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.seguros-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.seguros-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.seguros-card i {
    font-size: 2.5rem;
    color: #66398E;
    margin-bottom: 1rem;
}

/* Sección FAQ */
.faq {
    padding: 100px 0;
    background: var(--light-gray);
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Sección Contacto */
.contact {
    padding: 100px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Estilos para el botón de enviar del formulario */
.contact-form button[type="submit"] {
    padding: 12px 30px;
    background: #66398E;
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 57, 142, 0.3);
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    background-color: #7544a3;
    box-shadow: 0 4px 10px rgba(102, 57, 142, 0.4);
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 0 10px #25D366,
                0 0 20px rgba(37, 211, 102, 0.4),
                0 0 30px rgba(37, 211, 102, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 0 15px #25D366,
                0 0 25px #25D366,
                0 0 35px rgba(37, 211, 102, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    background-color: #28e76b;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    height: 80px;
    object-fit: contain;
}

.footer-social {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .seguros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sidebar-menu {
        width: 60px;
        padding-top: 16px;
    }

    .sidebar-links a {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .sidebar-links a span {
        display: none;
    }

    body {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .nav-links.active {
        display: block;
        padding: 20px 0;
        background: var(--white);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        background: var(--white);
        border-bottom: none;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        background: var(--white);
        transform: none;
    }

    .nav-links .cta-button {
        display: inline-block;
        margin: 15px auto;
        width: auto;
        min-width: 200px;
        padding: 12px 30px;
        background: #66398E;
        color: var(--white);
        box-shadow: 0 0 10px #66398E,
                    0 0 20px rgba(102, 57, 142, 0.4),
                    0 0 30px rgba(102, 57, 142, 0.2);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(102, 57, 142, 0.3);
        transition: all 0.3s ease;
    }

    .nav-links .cta-button:hover {
        box-shadow: 0 0 15px #66398E,
                    0 0 25px #66398E,
                    0 0 35px rgba(102, 57, 142, 0.6);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
        background-color: #7544a3;
        transform: translateY(-2px);
    }

    .value-card,
    .seguros-card {
        margin-bottom: 1rem;
    }

    .logo-text {
        display: none;
    }

    .hero-content {
        margin-left: 5%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .seguros-container {
        padding: 0 15px;
    }
    
    .seguros-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seguros-card {
        padding: 1.25rem;
    }
}

/* Eliminar los estilos anteriores de parallax en html y body */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Estilos del botón CTA en el nav (versión desktop) */
.nav-links .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #66398E;
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #66398E,
                0 0 20px rgba(102, 57, 142, 0.4),
                0 0 30px rgba(102, 57, 142, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 57, 142, 0.3);
}

.nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px #66398E,
                0 0 25px #66398E,
                0 0 35px rgba(102, 57, 142, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    background-color: #7544a3;
    color: var(--white);
}

/* Sidebar lateral */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #4F46E5;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    z-index: 1000;
}
.sidebar-logo img {
    width: 90px;
    margin-bottom: 32px;
}
.sidebar-links {
    list-style: none;
    padding: 0;
    width: 100%;
}
.sidebar-links li {
    width: 100%;
}
.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.sidebar-links a i {
    margin-right: 12px;
    font-size: 1.2rem;
}
.sidebar-links a:hover {
    background: #372fa5;
}

.main-content {
    padding: 32px;
}

.comisiones-section {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.comision-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem 2.5rem;
    min-width: 320px;
    max-width: 350px;
    text-align: center;
}

.comision-card h2 {
    margin-bottom: 1rem;
    color: #4F46E5;
}

.comision-table {
    margin-top: 1rem;
}

.comision-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.comision-header {
    font-weight: bold;
    background: #f3f4f6;
}

.comision-col {
    flex: 1;
    text-align: center;
}

.calculo-card input, .calculo-card button {
    margin: 8px 0;
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.calculo-card button {
    background: #4F46E5;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.calculo-card button:hover {
    background: #372fa5;
}

#resultadoComision {
    margin-top: 16px;
    font-weight: 500;
    color: #10B981;
}
