/* ============================================================
   ARVIZU ASESORÍA — styles.css
   ============================================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.navbar {
    background: #4682B4;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: 72px;
    object-fit: contain;
}

/* Menú principal (desktop) */
.nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.nav-link:hover {
    color: #d1fae5;
    transform: translateY(-1px);
}

/* Botón hamburguesa — OCULTO en desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Botón cerrar — OCULTO en desktop */
.nav-close {
    display: none;
}

/* Overlay oscuro — OCULTO por defecto */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.show {
    opacity: 1;
}

/* ── DROPDOWN ── */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chevron {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.dropdown.active .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    color: #1e293b;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #ecfdf5;
}

.dropdown-item i {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.dropdown-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item small {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
    background: #10b981;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}

.btn-primary.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url('https://images.unsplash.com/photo-1554224155-6726b3ff338f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.lead {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 40px;
    color: #e2e8f0;
}

.quienes-somos {
    max-width: 760px;
    margin: 48px auto 40px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 32px 28px;
}

.quienes-somos h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.quienes-somos p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #e2e8f0;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 8px;
}

.section-alt {
    background: #f1f5f9;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: white;
    padding: 36px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.service-card i {
    font-size: 2.6rem;
    color: #10b981;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #475569;
}

/* ============================================================
   PLANES
   ============================================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.plan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.plan-header {
    padding: 24px 20px;
    color: white;
    text-align: center;
}

.plan-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.plan-header.blue   { background: #1e40af; }
.plan-header.green  { background: #059669; }
.plan-header.purple { background: #6d28d9; }

.plan-card ul {
    list-style: none;
    padding: 20px 24px;
    font-size: 0.97rem;
    flex: 1;
}

.plan-card ul li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    color: #334155;
}

.plan-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.price {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
}

.contact-cta {
    text-align: center;
    margin-top: 48px;
}

.contact-cta p {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
    background: #0f172a;
    color: white;
}

.contacto h2 {
    color: white;
}

.contacto .section-subtitle {
    color: #94a3b8;
}

.contact-form {
    max-width: 680px;
    margin: 40px auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

input, textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #10b981;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

textarea {
    margin-bottom: 16px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.form-status {
    text-align: center;
    margin-top: 14px;
    font-size: 0.95rem;
    min-height: 22px;
}

.phone-big {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 32px 0 0;
    color: #10b981;
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #020617;
    color: #94a3b8;
    padding: 48px 0 32px;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .logo-img {
        height: 56px;
    }

    .hamburger {
        display: flex;
    }

    /* Panel lateral deslizable */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100dvh;
        background: #1e3a5f;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 24px 20px;
        gap: 0;
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.show {
        pointer-events: auto;
    }

    .nav-close {
        display: flex;
        align-self: flex-end;
        background: none;
        border: none;
        color: white;
        font-size: 1.6rem;
        cursor: pointer;
        padding: 4px 8px;
        margin-bottom: 24px;
        transition: color 0.2s;
    }

    .nav-close:hover {
        color: #10b981;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    /* Dropdown dentro del menú móvil */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        margin: 8px 0 4px;
        min-width: unset;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-item {
        color: #e2e8f0;
        border-bottom-color: rgba(255,255,255,0.08);
        padding: 12px 14px;
    }

    .dropdown-item:hover {
        background: rgba(16,185,129,0.15);
    }

    .dropdown-item span {
        color: white;
    }

    .dropdown-item small {
        color: #94a3b8;
    }

    .nav-cta {
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }

    /* ── Hero ── */
    .hero {
        padding: 100px 0 60px;
        min-height: unset;
    }

    .quienes-somos {
        padding: 24px 20px;
        margin: 32px auto 28px;
    }

    /* ── Secciones ── */
    .section {
        padding: 60px 0;
    }

    /* ── Servicios ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .service-card {
        padding: 28px 20px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 18px;
    }

    .service-card i {
        font-size: 2rem;
        margin-bottom: 0;
        flex-shrink: 0;
        margin-top: 4px;
    }

    /* ── Planes ── */
    .plans-grid {
        max-width: 100%;
    }

    /* ── CTA ── */
    .contact-cta .btn-primary.large {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
    }

    /* ── Formulario ── */
    .form-row {
        grid-template-columns: 1fr;
    }

    .phone-big {
        font-size: 1.4rem;
    }

    /* ── Footer ── */
    footer {
        padding: 36px 0 24px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .logo-img {
        height: 48px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }
}
