/* Reset básico */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #4F39F6;
    --secondary-color: #0F172B;
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #272745;
    --border-color: #ddd;
    --border-radius: 8px;
    --padding-section: 60px 20px;
}

/* Scroll suave para anchors */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* ===========================
   HEADER STICKY + HAMBURGUESA
   =========================== */

.site-header {
    width: 100%;
    background-color: var(--secondary-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 42px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    text-decoration-color: var(--primary-color);
    transition: text-decoration-color 0.2s ease;
}

.header-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none; /* visible solo en mobile */
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animación botón abierto */
.site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}
.site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */

.hero-section {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--padding-section);
    min-height: 520px; /* altura aumentada */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: #5a2fd8;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-image: url('hero.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
}

/* ===========================
   SECCIÓN NEED
   =========================== */

.need-section {
    padding: var(--padding-section);
    text-align: center;
    background-color: #fff;
}

.need-section h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.need-section p {
    font-size: 1.1em;
    margin-bottom: 50px;
    opacity: 0.9;
}

.need-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.need-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.need-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    flex-shrink: 0;
}

.need-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.3em;
}

.need-item p {
    font-size: 1em;
    margin-bottom: 0;
    opacity: 0.8;
}

/* ===========================
   CTA
   =========================== */

.cta-section {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: var(--padding-section);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ===========================
   FAQ
   =========================== */

.faq-section {
    padding: var(--padding-section);
    background-color: var(--bg-light);
    text-align: center;
}

.faq-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.1em;
    background-color: #fff;
    transition: background-color 0.3s;
    user-select: none;
}

.faq-question:hover {
    background-color: #f4f4f4;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--text-color);
    transition: max-height 0.3s ease-out, padding 0.3s ease, opacity 0.3s ease;
}

.faq-answer.open {
    padding: 20px 25px;
    opacity: 1;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: var(--padding-section);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.7;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 100px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        background-size: cover;
    }

    .need-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 10px 20px 16px;
        gap: 10px;
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .site-header.is-open .header-nav {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .need-section h2,
    .cta-section h2,
    .faq-section h2 {
        font-size: 2em;
    }

    .faq-question {
        font-size: 1em;
    }
}
