:root {
    --primary-color: #00329e;
    --secondary-color: #333;
    --light-gray: #f9f9f9;
    --white: #fff;
    --font-main: 'Graphik', sans-serif;
    --font-secondary: 'Fauna One', serif;
}

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    background-color: var(--light-gray);
    margin-top: 90px;
}

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

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo img {
    max-height: 60px;
}

nav {
    display: flex;
    align-items: center;
}

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

.nav-links li {
    margin: 0 10px;
}

.nav-button {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    white-space: nowrap;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 90, 158, 0.6);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-weight: bold;
    font-size: 50px;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: var(--font-secondary);
    font-size: 24px;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

/* Que es Elysion Section */
#que-es-elysion {
    background-color: var(--white);
    text-align: center;
}

#que-es-elysion p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.elysion-logo {
    display: block;
    margin: 0 auto 40px;
    max-width: 250px;
}

/* Beneficios Section */
#beneficios {
    background-image: url('assets/fondo_2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

#beneficios .container {
    position: relative;
    z-index: 1;
}

#beneficios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 90, 158, 0.7);
    z-index: 0;
}

#beneficios h2 {
    color: var(--white);
}

.beneficios-container {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 20px;
    flex-wrap: wrap;
}

.beneficios-container > div {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    width: calc(25% - 20px);
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.beneficios-container > div:hover {
    transform: translateY(-10px);
}

.beneficio-icon {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.beneficios-container p {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* Why Choose Us Section */
.benefits {
    background-color: var(--white);
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.benefits-image {
    flex: 1;
}

.benefits-image img {
    width: 100%;
    border-radius: 10px;
}

.benefits-list {
    flex: 1;
}

.benefit-item {
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.benefit-item p {
    font-family: var(--font-secondary);
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
    background-color: var(--white);
    border-radius: 5px;
}

.faq-item summary {
    font-weight: bold;
    font-size: 20px;
    padding: 20px;
    cursor: pointer;
    outline: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 30px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    font-family: var(--font-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Special Promotion Section */
#oferta-especial {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

#oferta-especial h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

#oferta-especial p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Cierre Section */
#cierre {
    background-color: var(--white);
}

#cierre .cierre-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

#cierre .cierre-left {
    flex: 1;
}

#cierre .cierre-right {
    flex: 1;
    max-width: 540px;
    overflow: hidden;
    border-radius: 10px;
}

#cierre .cierre-right video {
    width: 100%;
}

#cierre .cierre-right img {
    width: 100%;
    height: auto;
    display: block;
}

#cierre .cta-button {
    margin-top: 20px;
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
}

#cierre .cta-button:hover {
    background-color: #00487d;
}

/* Footer */
footer {
    background-color: #212121;
    color: #f1f1f1;
    padding: 60px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    flex: 1;
    min-width: 280px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #f0e68c; /* Khaki */
    margin-bottom: 20px;
}

.footer-col p {
    font-family: var(--font-secondary);
    line-height: 1.7;
}

.social-links a {
    display: inline-block;
    height: 44px;
    width: 44px;
    background-color: #3a3a3a;
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 44px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

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

/* Joinchat Widget */
.joinchat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.joinchat__button {
    background-color: #25D366; /* WhatsApp Green */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.joinchat__button i {
    font-size: 30px;
    color: var(--white);
}

.joinchat__button:hover {
    transform: scale(1.1);
}

.joinchat__tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.joinchat__button:hover .joinchat__tooltip {
    opacity: 1;
}

.joinchat__badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.joinchat__chatbox {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.joinchat__header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#joinchat__label {
    font-weight: bold;
    font-size: 18px;
}

.joinchat__close {
    cursor: pointer;
    position: relative;
    width: 20px;
    height: 20px;
}

.joinchat__close::before,
.joinchat__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
}

.joinchat__close::before {
    transform: rotate(45deg);
}

.joinchat__close::after {
    transform: rotate(-45deg);
}

.joinchat__scroll {
    max-height: 400px;
    overflow-y: auto;
}

.joinchat__content {
    padding: 20px;
}

.joinchat__chat {
    margin-bottom: 20px;
}

.joinchat__bubble {
    background-color: var(--light-gray);
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
}

.joinchat__open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
}

.joinchat__open__text {
    font-weight: bold;
    margin-left: 10px;
}

.joinchat__open__icon {
    color: var(--primary-color);
    font-size: 20px;
}



/* Responsive */
@media screen and (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide on tablet */
    }

    .burger {
        display: block; /* Show burger on tablet */
    }

    .benefits-content, #cierre .cierre-content {
        flex-direction: column;
    }

    .benefits-image, .cierre-left, .cierre-right {
        width: 100%;
        max-width: 100%;
    }

    .cierre-left {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    body {
        margin-top: 75px;
    }

    header {
        padding: 10px 0;
    }

    .logo img {
        max-height: 50px;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 75px;
        background-color: var(--white);
        width: 100%;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding: 20px 0;
        display: flex; /* Ensure it is flex for column direction */
    }
    
    .nav-links li {
        margin-bottom: 15px;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .beneficios-container > div {
        width: calc(50% - 20px);
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }

    .hero h1, #que-es-elysion h2, #beneficios h2, .benefits h2, .faq-section h2, #oferta-especial h2, #cierre h2 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .beneficios-container > div {
        width: 100%;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}