/* =========================================
   TEETIME – Styles
   ========================================= */

:root {
    --green:       #16a34a;
    --green-light: #22c55e;
    --green-dark:  #15803d;
    --gold:        #d97706;
    --bg:          #ffffff;
    --bg-alt:      #f8fafc;
    --bg-dark:     #0f172a;
    --text:        #1e293b;
    --text-muted:  #64748b;
    --border:      #e2e8f0;
    --radius:      12px;
    --shadow:      0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 12px 48px rgba(0,0,0,.14);
    --transition:  .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    background: rgba(22,163,74,.12);
    color: var(--green-dark);
    border: 1px solid rgba(22,163,74,.25);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.badge-dark {
    display: inline-block;
    background: rgba(22,163,74,.1);
    color: var(--green);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.45); }

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
    border-radius: 4px;
    transition: all var(--transition);
}
/* En navbar oscuro (hero): píldora blanca para que el logo se vea */
.navbar:not(.scrolled) .logo-img {
    background: rgba(255,255,255,.95);
    padding: 3px 8px;
    height: 36px;
    border-radius: 4px;
}
/* En footer oscuro: ídem */
.footer .logo-img {
    background: rgba(255,255,255,.95);
    padding: 3px 8px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin-left: auto;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--text); background: var(--bg-alt); }

/* Mi Espacio en nav-links: oculto en desktop (existe el botón) */
.nav-miespacio { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text); }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2d1a 0%, #1a4731 40%, #0f4c1e 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(34,197,94,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(22,163,74,.08) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 32px;
}

.since-badge {
    margin-top: 24px;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .02em;
}
.since-badge strong {
    color: rgba(255,255,255,.9);
    font-weight: 700;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.stat-label {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}

/* Dashboard Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.mockup-header {
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mockup-title {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-left: 8px;
    font-weight: 500;
}

.mockup-body { padding: 20px; }

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

.mockup-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 14px;
}
.mockup-card.green-card {
    background: rgba(22,163,74,.2);
    border-color: rgba(34,197,94,.3);
}
.card-label { font-size: .65rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.card-value { font-size: 1rem; font-weight: 700; color: #fff; margin: 4px 0; }
.card-sub   { font-size: .7rem; color: rgba(255,255,255,.5); }

.mockup-table { background: rgba(255,255,255,.04); border-radius: 10px; overflow: hidden; }
.table-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .8rem;
    color: rgba(255,255,255,.8);
}
.table-row:last-child { border-bottom: none; }
.table-row.header { color: rgba(255,255,255,.4); font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.table-row .pos { font-weight: 700; }
.pos.gold   { color: #fbbf24; }
.pos.silver { color: #94a3b8; }
.pos.bronze { color: #d97706; }
.table-row .green { color: #4ade80; font-weight: 700; }
.table-row .red   { color: #f87171; font-weight: 700; }

/* ---- FEATURES ---- */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-alt);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 32px;
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--green);
    opacity: .2;
    line-height: 1;
    margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p   { font-size: .9rem; color: var(--text-muted); }

.step-arrow {
    font-size: 2rem;
    color: var(--green);
    opacity: .4;
    padding-top: 12px;
    flex-shrink: 0;
}

/* ---- PRICING ---- */
.pricing {
    padding: 100px 0;
    background: var(--bg-dark);
}
.pricing .section-header .section-title { color: #fff; }
.pricing .section-subtitle { color: rgba(255,255,255,.55); }
.pricing .badge-dark {
    background: rgba(34,197,94,.15);
    color: var(--green-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all var(--transition);
}
.pricing-card:hover {
    border-color: rgba(34,197,94,.4);
    transform: translateY(-4px);
}
.pricing-card.featured {
    background: linear-gradient(135deg, rgba(22,163,74,.2), rgba(16,185,129,.12));
    border-color: rgba(34,197,94,.4);
    box-shadow: 0 0 40px rgba(22,163,74,.2);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.currency { font-size: 1.5rem; font-weight: 700; color: #fff; }
.amount   { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.period   { font-size: .9rem; color: rgba(255,255,255,.45); }

.plan-desc { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.5; }

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.plan-features li {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
}

.pricing-card .btn-outline {
    color: rgba(255,255,255,.7);
    border-color: rgba(255,255,255,.25);
}
.pricing-card .btn-outline:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* ---- CONTACT ---- */
.contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.025em;
}
.contact-info p {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item  { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text); }
.contact-icon  { font-size: 1.2rem; }

/* Form */
.contact-form-wrap {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group   { display: flex; flex-direction: column; gap: 6px; }

label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}

input, select, textarea {
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
textarea { resize: vertical; min-height: 100px; }

.form-note {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center;
}
.form-note a { color: var(--green); text-decoration: none; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 500;
}
.alert-success { background: rgba(22,163,74,.1); color: var(--green-dark); border: 1px solid rgba(22,163,74,.3); }
.alert-error   { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.3); }

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 32px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    margin-top: 12px;
    max-width: 260px;
    line-height: 1.6;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

/* ---- MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--bg-alt); }
#modalPlanName { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
#payment-element { margin: 20px 0; }
#submitPayment { margin-top: 16px; }
.payment-message { text-align: center; font-size: .9rem; margin-top: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { align-items: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .navbar .btn-sm { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        padding: 16px 24px;
        box-shadow: var(--shadow);
    }
    .nav-links.open a { color: var(--text); }
    /* Mostrar Mi Espacio en menú móvil */
    .nav-miespacio { display: block; }
    .nav-miespacio a {
        color: var(--green) !important;
        font-weight: 700 !important;
        border-top: 1px solid var(--border);
        margin-top: 8px;
        padding-top: 14px !important;
    }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
}
