/* ============ RESET & BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #c00000;
    --primary-dark: #990000;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #475569;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.06);
    --shadow-lg: 0 25px 50px -12px rgba(192, 0, 0, 0.25);
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }

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

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ HERO ============ */
.hero {
    padding: 5rem 0 6rem;
    background:
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.1), transparent 50%),
        var(--white);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.stat span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

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

.mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform .4s;
}

.mockup:hover { transform: rotate(0deg) translateY(-5px); }

.mockup-header {
    background: var(--gray-100);
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.mockup-header span:nth-child(1) { background: #ef4444; }
.mockup-header span:nth-child(2) { background: #f59e0b; }
.mockup-header span:nth-child(3) { background: #10b981; }

.mockup-body { padding: 1.5rem; }

.mock-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--gray-100);
    font-size: 0.95rem;
    color: var(--gray-700);
}

.mock-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.mock-total {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
    border-bottom: none;
    margin-top: 0.5rem;
}

.mock-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ SECTIONS ============ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* ============ GRIDS ============ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ CARDS ============ */
.card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.2);
}

.sector .icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.sector h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sector p {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* ============ FEATURES ============ */
.feature {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--gray-700);
}

/* ============ PLANS ============ */
.plans .plan {
    text-align: center;
    position: relative;
}

.plan h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
    letter-spacing: -0.03em;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.plan ul {
    list-style: none;
    margin: 1.5rem 0 2rem;
    text-align: left;
}

.plan ul li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--gray-100);
    color: var(--gray-700);
    position: relative;
    padding-left: 1.5rem;
}

.plan ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.plan-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03), white);
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============ DEMO INTERACTIVA ============ */
.demo-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.browser {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    position: relative;
    aspect-ratio: 16 / 10;
}

.browser-bar {
    background: var(--gray-100);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #10b981; }

.url-bar {
    flex: 1;
    margin-left: 1rem;
    background: white;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-700);
    text-align: left;
}

.browser-screen {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-50);
    transition: opacity .5s, transform .5s;
}

#panelScreen {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
}

.browser.show-panel #loginScreen {
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
}
.browser.show-panel #panelScreen {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* --- LOGIN --- */
#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(124,58,237,0.08), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37,99,235,0.1), transparent 50%),
        var(--gray-50);
}

.login-card {
    background: white;
    padding: 2rem 2.2rem;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    width: min(340px, 88%);
    text-align: left;
}

.login-logo {
    font-weight: 800;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 0.3rem;
}

.login-sub {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0.8rem 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-fake {
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    color: var(--dark);
    background: white;
    min-height: 42px;
    display: flex;
    align-items: center;
    font-family: 'Inter', monospace;
    transition: border-color .2s;
}

.input-fake.focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.caret {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: var(--primary);
    margin-left: 2px;
    opacity: 0;
}
.caret.blink { animation: blink 0.9s steps(2) infinite; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

.login-btn {
    margin-top: 1.4rem;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .25s;
}
.login-btn.pressed { transform: scale(0.97); box-shadow: 0 0 0 4px rgba(37,99,235,0.25); }

/* --- PANEL --- */
.panel-screen {
    display: flex;
    background: white;
}

.panel-side {
    width: 180px;
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.panel-logo {
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.4rem 0.6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.6rem;
}

.panel-side a {
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .2s;
}

.panel-side a:hover { background: rgba(255,255,255,0.08); }
.panel-side a.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }

.panel-main {
    flex: 1;
    padding: 1.2rem 1.5rem;
    overflow: hidden;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.panel-top h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.user-chip {
    background: var(--gray-100);
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.kpi {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: left;
}

.kpi span {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.2rem;
}

.kpi strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.panel-chart {
    height: 140px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}

.panel-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 0.8s cubic-bezier(.5,1.5,.5,1);
}

.browser.show-panel .panel-chart .bar { height: var(--h); }


/* Vistas dentro del panel */
.view {
    display: none;
    animation: fadeIn .35s ease;
}
.view.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Highlight de clic en el menú */
.nav-item.clicking {
    animation: clickPulse .35s ease;
}
@keyframes clickPulse {
    0%   { background: rgba(255,255,255,0.05); }
    50%  { background: rgba(124,58,237,0.4); }
    100% { background: rgba(255,255,255,0.08); }
}

/* Factura */
.invoice-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}
.invoice-row label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    width: 110px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.invoice-field {
    flex: 1;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    min-height: 36px;
    display: flex;
    align-items: center;
    transition: border-color .2s, background .2s, color .2s;
}
.invoice-field.filled {
    color: var(--dark);
    background: white;
    border-color: var(--primary);
}
.invoice-field.focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    background: white;
    color: var(--dark);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0;
    font-size: 0.85rem;
}
.invoice-table th {
    text-align: left;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--gray-100);
}
.invoice-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px dashed var(--gray-100);
    color: var(--dark);
}
.invoice-table tr {
    animation: rowIn .35s ease;
}
@keyframes rowIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.invoice-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: 0.6rem;
}
.invoice-totals div {
    display: flex;
    gap: 1.2rem;
    color: var(--gray-700);
}
.invoice-totals .grand {
    color: var(--dark);
    font-size: 1rem;
    border-top: 2px solid var(--gray-100);
    padding-top: 0.4rem;
    margin-top: 0.3rem;
}

.success-msg {
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s, transform .35s;
}
.success-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RECIBO ============ */
.receipt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
    z-index: 5;
}
.receipt-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.receipt {
    background: #fffdf7;
    width: min(280px, 70%);
    padding: 1.2rem 1.1rem;
    font-family: 'Courier New', ui-monospace, monospace;
    color: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    transform: translateY(40px) scale(0.92);
    opacity: 0;
    transition: transform .5s cubic-bezier(.5,1.5,.5,1), opacity .4s;
    background-image:
        repeating-linear-gradient(180deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 4px);
    clip-path: polygon(
        0 0, 100% 0, 100% calc(100% - 8px),
        96% 100%, 92% calc(100% - 8px), 88% 100%, 84% calc(100% - 8px),
        80% 100%, 76% calc(100% - 8px), 72% 100%, 68% calc(100% - 8px),
        64% 100%, 60% calc(100% - 8px), 56% 100%, 52% calc(100% - 8px),
        48% 100%, 44% calc(100% - 8px), 40% 100%, 36% calc(100% - 8px),
        32% 100%, 28% calc(100% - 8px), 24% 100%, 20% calc(100% - 8px),
        16% 100%, 12% calc(100% - 8px), 8% 100%, 4% calc(100% - 8px),
        0 100%
    );
}
.receipt-overlay.show .receipt {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.receipt-head {
    text-align: center;
    margin-bottom: 0.8rem;
}
.receipt-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
}
.receipt-sub {
    font-size: 0.7rem;
    color: var(--gray-700);
    margin-top: 0.15rem;
}

.receipt-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin: 0.18rem 0;
    color: var(--gray-700);
}
.receipt-meta strong {
    color: var(--dark);
}

.receipt-divider {
    border-top: 1px dashed var(--gray-500);
    margin: 0.55rem 0;
}

.receipt-items {
    width: 100%;
    font-size: 0.72rem;
    border-collapse: collapse;
}
.receipt-items td {
    padding: 0.15rem 0;
    vertical-align: top;
}
.receipt-items .qty { width: 24px; }
.receipt-items .pri { text-align: right; white-space: nowrap; }

.receipt-totals {
    font-size: 0.72rem;
    color: var(--gray-700);
}
.receipt-totals div {
    display: flex;
    justify-content: space-between;
    margin: 0.15rem 0;
}
.receipt-totals .big {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0.4rem;
}

.receipt-thanks {
    text-align: center;
    font-size: 0.78rem;
    margin-top: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}
.receipt-thanks.small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

@media (max-width: 640px) {
    .browser { aspect-ratio: 4 / 5; }
    .panel-side { width: 130px; font-size: 0.8rem; }
    .panel-main { padding: 0.8rem; }
    .kpi-grid { grid-template-columns: 1fr; }
    .panel-chart { height: 90px; }
}

/* ============ TESTIMONIALS ============ */
.testimonial {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.testimonial p {
    color: var(--gray-900);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial footer {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============ CTA / CONTACT ============ */
.cta {
    background: linear-gradient(135deg, var(--dark), #1e3a8a);
    color: white;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-text p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-list {
    list-style: none;
}

.cta-list li {
    padding: 0.4rem 0;
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
}

.contact-form {
    background: white;
    color: var(--dark);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    gap: 0.4rem;
}

.contact-form input,
.contact-form select {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: white;
    transition: border-color .2s;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    display: block;
    padding: 0.3rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer a:hover { color: white; }

.logo-light { color: white; }

.footer-about {
    margin-top: 1rem;
    max-width: 300px;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform .3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content,
    .cta-box,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-grid { gap: 2rem; }
    .plan-featured { transform: scale(1); }
    .nav { display: none; }
    .menu-toggle { display: block; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
    }
    .header .btn-primary { display: none; }
}

@media (max-width: 580px) {
    .grid-4,
    .grid-3 { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 4rem; }
    .section { padding: 3.5rem 0; }
    .hero-stats { gap: 1.5rem; }
    .stat strong { font-size: 1.4rem; }
    .contact-form { padding: 1.5rem; }
}

/* ============== PROMESA / Tagline humorístico ============== */
.promesa {
    background: linear-gradient(135deg, #1d4ed8 0%, #075E54 100%);
    color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.promesa::before {
    content: "";
    position: absolute; top:0; left:0; right:0; bottom:0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.07) 0, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,.05) 0, transparent 50%);
    pointer-events: none;
}
.promesa-text {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.45;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    letter-spacing: -.3px;
}
.promesa-strike {
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: #f87171;
    color: #fef2f2;
    font-weight: 700;
}
.promesa-text em {
    font-style: italic;
    background: #fbbf24;
    color: #422006;
    padding: 0 .35rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}
.promesa-highlight {
    background: #fff;
    color: #1d4ed8;
    padding: .15rem .55rem;
    border-radius: 6px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: inline-block;
}
.promesa-emoji {
    display: inline-block;
    animation: zap 1.6s ease-in-out infinite;
}
@keyframes zap {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25%      { transform: rotate(-15deg) scale(1.15); }
    50%      { transform: rotate(0deg) scale(1); }
    75%      { transform: rotate(15deg) scale(1.15); }
}
.promesa-firma {
    margin-top: 1rem;
    font-size: .92rem;
    opacity: .75;
    font-style: italic;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .promesa-text { font-size: 1.15rem; }
    .promesa { padding: 2rem 1rem; }
}

/* ============== HERO PHOTO (reemplazo del mockup) ============== */
.hero-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.25),
                0 8px 16px rgba(0,0,0,.12);
    transform: rotate(-1.5deg);
    transition: transform .35s ease;
}
.hero-photo:hover { transform: rotate(0); }
.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.hero-photo-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.hero-photo-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: .6; }
}
@media (max-width: 768px) {
    .hero-photo { transform: rotate(0); margin-top: 1.5rem; }
}
