/* ═══════════════════════════════════════════════════════
   SimpleConta Landing Page - Styles
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-amber: #f59e0b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ═══════ HEADER ═══════ */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    transition: box-shadow 0.3s;
}
.landing-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.landing-header .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.2rem;
}
.landing-logo img {
    border-radius: 8px;
}
.landing-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.landing-logo-name {
    font-weight: 700;
    font-size: 1.15rem;
}
.landing-logo-tagline {
    font-size: 0.65rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.landing-nav {
    display: flex;
    gap: 2rem;
}
.landing-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.landing-nav a:hover { color: var(--color-primary); }
.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-header--ghost {
    color: var(--color-text-light);
    background: transparent;
}
.btn-header--ghost:hover { color: var(--color-primary); background: var(--color-primary-light); }
.btn-header--primary {
    color: white;
    background: var(--color-primary);
}
.btn-header--primary:hover { background: var(--color-primary-dark); }
.mobile-menu-btn { display: none; }

/* ═══════ HERO ═══════ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(124,58,237,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16,185,129,0.05) 0%, transparent 50%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.hero-trust svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ═══════ BUTTONS ═══════ */
.btn-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}
.btn-landing--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-landing--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-landing--outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}
.btn-landing--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.btn-landing--white {
    background: #fff;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.btn-landing--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-landing--lg {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
}
.btn-landing--block { width: 100%; }

/* ═══════ SECTIONS ═══════ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ═══════ SHOWCASE ═══════ */
.showcase {
    position: relative;
    padding: 40px 0 100px;
    overflow: hidden;
}
.showcase-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #1e40af 0%, #2563eb 30%, #7c3aed 70%, #6d28d9 100%);
    z-index: 0;
}
.showcase-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.showcase .landing-container {
    position: relative;
    z-index: 1;
}
.showcase-header h2 {
    color: #fff;
}
.showcase-header p {
    color: rgba(255,255,255,0.75);
}

/* Layout de screenshots */
.showcase-screens {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    perspective: 1200px;
}

/* Frame tipo ventana */
.showcase-window {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.2);
}
.showcase-window__dots {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #0f172a;
}
.showcase-window__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.showcase-window__dots span:nth-child(1) { background: #ef4444; }
.showcase-window__dots span:nth-child(2) { background: #f59e0b; }
.showcase-window__dots span:nth-child(3) { background: #22c55e; }

.showcase-window img {
    display: block;
    width: 100%;
    height: auto;
}

/* Screenshot principal */
.showcase-main {
    position: relative;
    z-index: 3;
    max-width: 750px;
    width: 100%;
}
.showcase-main .showcase-window {
    border: 2px solid rgba(255,255,255,0.12);
}

/* Screenshots flotantes */
.showcase-float {
    position: absolute;
    z-index: 2;
    max-width: 380px;
    width: 38%;
    transition: transform 0.4s ease;
}
.showcase-float .showcase-window {
    border: 2px solid rgba(255,255,255,0.1);
}
.showcase-float--left {
    left: -2%;
    top: 12%;
    transform: rotate(-3deg) translateX(0);
}
.showcase-float--left:hover {
    transform: rotate(-1deg) translateY(-8px);
}
.showcase-float--right {
    right: -2%;
    bottom: 0;
    transform: rotate(3deg) translateX(0);
}
.showcase-float--right:hover {
    transform: rotate(1deg) translateY(-8px);
}

/* Etiquetas bajo cada screenshot */
.showcase-label {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.02em;
}

/* Animaciones de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.showcase-float--left.animate-on-scroll {
    transform: rotate(-3deg) translateY(40px);
    opacity: 0;
}
.showcase-float--left.animate-on-scroll.visible {
    transform: rotate(-3deg) translateY(0);
    opacity: 1;
}
.showcase-float--right.animate-on-scroll {
    transform: rotate(3deg) translateY(40px);
    opacity: 0;
}
.showcase-float--right.animate-on-scroll.visible {
    transform: rotate(3deg) translateY(0);
    opacity: 1;
}
/* Delay escalonados */
.showcase-main.animate-on-scroll { transition-delay: 0s; }
.showcase-float--left.animate-on-scroll { transition-delay: 0.2s; }
.showcase-float--right.animate-on-scroll { transition-delay: 0.4s; }

/* ═══════ FEATURES ═══════ */
.features {
    padding: 80px 0;
    background: var(--color-bg-alt);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon--blue { background: #dbeafe; color: #2563eb; }
.feature-icon--emerald { background: #d1fae5; color: #059669; }
.feature-icon--violet { background: #ede9fe; color: #7c3aed; }
.feature-icon--amber { background: #fef3c7; color: #d97706; }
.feature-icon--rose { background: #ffe4e6; color: #e11d48; }
.feature-icon--cyan { background: #cffafe; color: #0891b2; }
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ═══════ PRICING ═══════ */
.pricing {
    padding: 80px 0;
}

/* Toggle mensual/anual */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.pricing-toggle__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
    cursor: pointer;
}
.pricing-toggle__label--active {
    color: var(--color-text);
    font-weight: 600;
}
.pricing-toggle__badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.3rem;
}
.pricing-toggle__switch {
    position: relative;
    width: 48px; height: 26px;
    cursor: pointer;
}
.pricing-toggle__switch input { opacity: 0; width: 0; height: 0; }
.pricing-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: 0.3s;
}
.pricing-toggle__slider:before {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.pricing-toggle__switch input:checked + .pricing-toggle__slider {
    background: var(--color-primary);
}
.pricing-toggle__switch input:checked + .pricing-toggle__slider:before {
    transform: translateX(22px);
}

/* Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.pricing-card {
    position: relative;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.pricing-card--popular {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(37,99,235,0.15);
    transform: scale(1.02);
}
.pricing-card--popular:hover {
    transform: scale(1.02) translateY(-4px);
}
.pricing-card__badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-card__header {
    /* Altura fija para alinear precios entre tarjetas */
    min-height: 80px;
}
.pricing-card__header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.pricing-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.pricing-card__price {
    /* Altura fija para alinear botones entre tarjetas */
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: center;
}
/* Botón dentro del flujo flex */
.pricing-card .btn-landing--block {
    flex-shrink: 0;
}
.pricing-card__amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
}
.pricing-card__period {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-left: 0.2rem;
}
.pricing-card__anual-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}
.pricing-card__features {
    list-style: none;
    margin-top: 0;
    padding-top: 1rem;
    align-self: start;
}
.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--color-text);
    border-bottom: 1px solid #f1f5f9;
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features svg {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ═══════ COMPARISON TABLE ═══════ */
.comparison {
    padding: 60px 0 80px;
    background: var(--color-bg-alt);
}
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.comparison-table thead th {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.comparison-table thead th:first-child {
    text-align: left;
    border-radius: 0;
}
.comparison-table tbody td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    color: var(--color-text);
}
.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--color-text);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(37,99,235,0.02); }
.check-yes { color: var(--color-success); }
.check-no { color: #d1d5db; }

/* ═══════ FAQ ═══════ */
.faq {
    padding: 80px 0;
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}
.faq-question svg {
    color: var(--color-text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s;
    padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ═══════ CTA FINAL ═══════ */
.cta-final {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
}
.cta-final h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-final p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ═══════ FOOTER ═══════ */
.landing-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
}
.landing-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.landing-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}
.landing-footer__brand img { border-radius: 6px; }
.landing-footer__links {
    display: flex;
    gap: 1.5rem;
}
.landing-footer__links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.landing-footer__links a:hover { color: var(--color-primary); }
.landing-footer__bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.landing-footer__bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card--popular { transform: none; }
    .pricing-card--popular:hover { transform: translateY(-4px); }
    .landing-nav { display: none; }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: 0.3s;
    }
    .landing-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: #fff;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .landing-nav.open a { padding: 0.75rem 0; }
    /* Showcase responsive */
    .showcase-screens { min-height: auto; flex-direction: column; gap: 2rem; }
    .showcase-float { position: relative; max-width: 100%; width: 100%; left: auto; right: auto; top: auto; bottom: auto; }
    .showcase-float--left { transform: none; order: 2; }
    .showcase-float--left:hover { transform: translateY(-4px); }
    .showcase-float--right { transform: none; order: 3; }
    .showcase-float--right:hover { transform: translateY(-4px); }
    .showcase-main { order: 1; max-width: 100%; }
    .showcase-float--left.animate-on-scroll,
    .showcase-float--right.animate-on-scroll { transform: translateY(40px); }
    .showcase-float--left.animate-on-scroll.visible,
    .showcase-float--right.animate-on-scroll.visible { transform: translateY(0); }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-landing { width: 100%; max-width: 320px; }
    .landing-footer__top { flex-direction: column; gap: 1rem; }
    .planes-global-grid { grid-template-columns: 1fr; }
    .showcase-float { display: none; }
    .showcase { padding: 30px 0 60px; }
}
