/* assets/css/style.css - VERSIÓN PROFESIONAL */
:root {
    --bg: #f5f5f7;
    --bg-rgb: 245, 245, 247;
    --text: #1f2937;
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #ffffff;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg: #0a0a0a;
    --bg-rgb: 10, 10, 10;
    --text: #f3f4f6;
    --secondary: #111111;
    --border: #2a2a2a;
    --card-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
}

/* ========== TOPBAR PROFESIONAL ========== */
.topbar {
    background: #1a202c;
    color: #e2e8f0;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    position: relative;
    z-index: 1002;
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
}

.topbar.hidden {
    display: none;
}

.topbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-text {
    text-align: center;
    letter-spacing: 0.2px;
}

.promo-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.promo-link:hover {
    text-decoration: underline;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.new-price {
    font-weight: 700;
    color: #f59e0b;
    margin-left: 0.25rem;
}

.close-topbar {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 0.7rem;
}

.close-topbar:hover {
    background: rgba(255,255,255,0.2);
}

/* Modo claro (si la página tiene fondo claro) */
body:not(.dark-mode) .topbar {
    background: #0f172a;
    color: #cbd5e1;
}

body:not(.dark-mode) .close-topbar {
    color: #cbd5e1;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(var(--bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-social {
    display: flex;
    gap: 1rem;
}
.nav-social a {
    color: var(--text);
    transition: transform 0.2s, color 0.2s;
}
.nav-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.nav-ctas {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.btn-whatsapp-nav, .btn-registro-nav {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-whatsapp-nav {
    background: #25D366;
    color: white;
}
.btn-whatsapp-nav:hover {
    background: #128C7E;
    transform: scale(1.02);
}
.btn-registro-nav {
    background: var(--primary);
    color: #000;
}
.btn-registro-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}
.dark-mode-toggle {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ========== HERO ========== */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--primary);
    color: #000;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* ========== VENTAJAS ========== */
.ventajas {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.ventaja-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid var(--border);
}
.ventaja-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.ventaja-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--primary);
}
.ventaja-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.ventaja-card p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== CARDS MÁS PEQUEÑAS ========== */
.cards-section {
    padding: 4rem 0;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.card-content {
    padding: 1rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.card-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.btn-card {
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}
.btn-detail {
    background: var(--primary);
    color: #000;
}
.btn-wa-card {
    background: #25D366;
    color: white;
}
.badge-proximamente {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ========== ASESORÍA PROFESIONAL ========== */
.asesoria {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg) 100%);
}
.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.paso {
    text-align: center;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 24px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.paso:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.paso-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}
.paso-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: var(--primary);
}
.paso h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.paso p {
    font-size: 0.85rem;
    opacity: 0.7;
}
.asesoria-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* ========== TESTIMONIOS ========== */
.testimonios {
    padding: 4rem 0;
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonio {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.testimonio:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stars {
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: 3px;
    font-size: 0.9rem;
}
.testimonio p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.testimonio-author {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

/* ========== REGISTRO ========== */
.registro {
    padding: 4rem 0;
    background: var(--secondary);
}
.registro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.registro-info p {
    margin: 1rem 0;
    opacity: 0.8;
}
.beneficios-registro {
    margin-top: 1.5rem;
}
.beneficios-registro div {
    margin: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.beneficios-registro i {
    color: var(--primary);
}
.registro-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
}
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.btn-submit {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 100px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-col p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0.5rem 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin: 0.4rem 0;
}
.footer-col ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary);
}
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social a {
    color: var(--text);
    font-size: 1.1rem;
    transition: all 0.2s;
}
.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    opacity: 0.6;
    font-size: 0.75rem;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.08);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .registro-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    /* ========== TOPBAR VISIBLE Y NO TAPADA ========== */
body.topbar-active .navbar {
    top: 0;
}

.topbar {
    position: relative;
    z-index: 1002;
    display: block !important;
}

.topbar.hidden {
    display: none !important;
}

/* ========== CARDS HORIZONTALES PROFESIONALES ========== */
.horizontal-cards-section {
    padding: 4rem 0;
}

.horizontal-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.2rem;
    padding: 1rem;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.horizontal-card-img {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
}

.horizontal-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.horizontal-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.horizontal-card-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.horizontal-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.horizontal-feature {
    font-size: 0.7rem;
    background: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.horizontal-card-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.btn-horizontal {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-horizontal-primary {
    background: var(--primary);
    color: #000;
}

.btn-horizontal-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-horizontal-wa {
    background: #25D366;
    color: white;
}

.btn-horizontal-wa:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.badge-proximante {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}

/* RESPONSIVE para cards horizontales */
@media (max-width: 768px) {
    .horizontal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .horizontal-card-img {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }
    .horizontal-card-buttons {
        justify-content: center;
    }
    .horizontal-card-features {
        justify-content: center;
    }
}
}
/* ========== CARDS HORIZONTALES PROFESIONALES ========== */
.cards-section-horizontal {
    padding: 4rem 0;
}

.cards-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-horizontal {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.2rem;
}

.card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.card-horizontal-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.card-horizontal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-horizontal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.card-horizontal-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-horizontal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.feature-badge {
    font-size: 0.7rem;
    background: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--text);
    border: 1px solid var(--border);
}

.badge-proximamente-horizontal {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    display: inline-block;
    width: fit-content;
    margin: 0.5rem 0;
}

.card-horizontal-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.btn-horizontal-detail {
    background: var(--primary);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-horizontal-detail:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-horizontal-contact {
    background: #25D366;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-horizontal-contact:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Responsive para cards horizontales */
@media (max-width: 768px) {
    .card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .card-horizontal-img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    .card-horizontal-buttons {
        justify-content: center;
    }
    .card-horizontal-features {
        justify-content: center;
    }
}