/* ═══════════════════════════════════════════
   MEDIOS DIGITALES — Premium Landing v2
   ═══════════════════════════════════════════ */

/* ═══ LOCAL FONTS ═══ */
@font-face { font-family: 'Inter'; src: url('fonts/Inter/Inter-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter/Inter-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat/Montserrat-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat/Montserrat-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono/JetBrainsMono-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka/Fredoka-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    display: inline-block;
}


:root {
    --mg: #E6007E;
    --mg-dark: #b3005f;
    --mg-light: #ff3d9a;
    --mg-glow: rgba(230,0,126,0.35);
    --bg: #07070d;
    --bg2: #0c0c16;
    --bg3: #12121f;
    --bg4: #1a1a2c;
    --bg5: #24243a;
    --tx: #e0e0ee;
    --tx2: #9999b3;
    --tx3: #666680;
    --white: #f5f5ff;
    --r: 18px;
    --rs: 12px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font); background: var(--bg); color: var(--tx);
    line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ═══ UTILITIES ═══ */
.gradient-text {
    background: linear-gradient(135deg, var(--mg) 0%, #ff6ec7 50%, var(--mg-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 18px; border-radius: 50px; font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    background: rgba(230,0,126,0.08); color: var(--mg); border: 1px solid rgba(230,0,126,0.15);
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; color: var(--white);
    line-height: 1.15; margin-bottom: 16px;
}
.section-sub { font-size: 1.05rem; color: var(--tx2); max-width: 580px; margin: 0 auto 28px; }
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #28c840;
    display: inline-block; animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,200,64,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(40,200,64,0); }
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 15px 34px;
    border-radius: 50px; font-family: var(--font); font-weight: 700;
    font-size: 0.92rem; text-decoration: none; cursor: pointer; border: none;
    transition: all 0.4s var(--ease); letter-spacing: 0.02em;
}
.btn-glow {
    background: linear-gradient(135deg, var(--mg), var(--mg-dark));
    color: white; box-shadow: 0 4px 24px var(--mg-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--mg-glow); }
.btn-ghost {
    background: rgba(255,255,255,0.04); color: var(--tx);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.btn-ghost .material-symbols-outlined { font-size: 20px; color: var(--mg); }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(7,7,13,0.5); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.04); transition: all .4s var(--ease);
}
.navbar.scrolled { background: rgba(7,7,13,0.92); border-color: rgba(230,0,126,0.1); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 100px; transition: height 0.3s; }
.navbar.scrolled .nav-container { height: 80px; }
.logo-svg { height: 70px; padding-top: 10px; width: auto; transition: all .3s; }
.navbar.scrolled .logo-svg { height: 54px; padding-top: 5px; }
.logo-svg--sm { height: 26px; }
.navbar .nav-logo { position: relative; z-index: 1001; }
.nav-links {
    list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(7,7,13,0.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    gap: 32px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
    z-index: 1000; will-change: opacity;
}
.nav-links.active { opacity: 1; visibility: visible; }
.nav-links a { text-decoration: none; color: var(--tx2); font-weight: 700; font-size: 1.5rem; transition: color .3s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: var(--mg) !important; color: white !important; padding: 14px 34px !important;
    border-radius: 50px !important; font-size: 1.25rem !important; margin-top: 16px; transition: .3s;
}
.nav-cta:hover { background: var(--mg-light) !important; box-shadow: 0 6px 20px var(--mg-glow); transform: translateY(-2px); }
.nav-toggle { display: flex; position: relative; z-index: 1001; background: none; border: none; cursor: pointer; flex-direction: column; gap: 7px; padding: 5px; }
.nav-toggle span { width: 34px; height: 2px; background: var(--white); border-radius: 2px; transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .nav-links {
        position: static; width: auto; height: auto; background: none;
        flex-direction: row; opacity: 1; visibility: visible; gap: 32px;
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .nav-links a { font-size: 0.9rem; font-weight: 600; }
    .nav-cta { margin-top: 0; font-size: 0.85rem !important; padding: 10px 24px !important; }
}

/* ═══ HERO ═══ */
.hero {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
    padding-top: 100px;
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb--1 { width: 600px; height: 600px; background: rgba(230,0,126,0.12); top: -10%; left: -10%; }
.hero-orb--2 { width: 500px; height: 500px; background: rgba(100,0,230,0.08); top: 20%; right: -15%; animation-delay: -4s; }
.hero-orb--3 { width: 400px; height: 400px; background: rgba(230,0,126,0.06); bottom: 10%; left: 30%; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(230,0,126,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(230,0,126,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}
.hero-inner {
    flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
    align-items: center; position: relative; z-index: 2; padding: 60px 24px 40px;
}
.hero-content { animation: fadeUp .9s var(--ease); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: var(--tx2); margin-bottom: 28px; letter-spacing: 0.04em;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; color: var(--white);
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-sub { font-size: 1.05rem; color: var(--tx2); margin-bottom: 36px; line-height: 1.7; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Hero visual — browser mock */
.hero-visual { animation: fadeUp .9s var(--ease) .2s both; perspective: 1000px; }
.browser-mock {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    transform: rotateY(-4deg) rotateX(2deg); transition: transform .6s var(--ease);
}
.browser-mock:hover { transform: rotateY(0) rotateX(0); }
.browser-bar {
    display: flex; align-items: center; gap: 7px; padding: 11px 16px;
    background: var(--bg4); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.browser-url {
    margin-left: 12px; font-family: var(--mono); font-size: 0.72rem;
    color: var(--tx3); background: rgba(255,255,255,0.04); padding: 4px 12px;
    border-radius: 6px; flex: 1; max-width: 280px;
}
.browser-body { display: grid; grid-template-columns: 48px 1fr; min-height: 280px; }
.mock-sidebar {
    display: flex; flex-direction: column; gap: 2px; padding: 8px 4px;
    background: var(--bg4); border-right: 1px solid rgba(255,255,255,0.04);
}
.sb-item {
    width: 40px; height: 36px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; color: var(--tx3); transition: .3s;
}
.sb-item .material-symbols-outlined { font-size: 18px; }
.sb-item.active { background: rgba(230,0,126,0.15); color: var(--mg); }
.mock-main { padding: 14px; }
.mock-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ms {
    background: var(--bg4); border-radius: var(--rs); padding: 12px 10px;
    text-align: center; border: 1px solid rgba(255,255,255,0.03);
}
.ms .material-symbols-outlined { font-size: 16px; color: var(--mg); display: block; margin-bottom: 4px; }
.ms strong { display: block; font-size: 1.15rem; color: var(--white); }
.ms small { font-size: 0.65rem; color: var(--tx3); }
.mock-chart-area {
    background: var(--bg4); border-radius: var(--rs); padding: 12px;
    margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.03);
}
.mock-chart-area svg { width: 100%; height: 60px; display: block; }
.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mt-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: var(--bg4); border-radius: 8px;
}
.mt-thumb { width: 32px; height: 22px; border-radius: 4px; background: var(--bg5); flex-shrink: 0; }
.mt-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mt-l { height: 6px; border-radius: 3px; background: var(--bg5); }
.w80 { width: 80%; } .w70 { width: 70%; } .w90 { width: 90%; }
.w50 { width: 50%; } .w40 { width: 40%; } .w60 { width: 60%; }
.mt-badge { font-size: 0.55rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.mt-badge.pub { background: rgba(40,200,64,0.15); color: #28c840; }
.mt-badge.drf { background: rgba(255,185,46,0.15); color: #febc2e; }

/* Hero ticker */
.hero-ticker {
    position: relative; z-index: 2; padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden; background: rgba(255,255,255,0.01);
}
.ticker-track {
    display: flex; gap: 20px; width: max-content;
    animation: ticker 30s linear infinite;
}
.ticker-track span { font-family: var(--mono); font-size: 0.75rem; color: var(--tx3); font-weight: 600; white-space: nowrap; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ PLATFORM (TABS) ═══ */
.platform { padding: 64px 0; background: var(--bg2); text-align: center; }
.tab-system { text-align: left; margin-top: 48px; }
.tab-nav {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 0;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    display: flex; align-items: center; gap: 8px; padding: 14px 22px;
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--tx3); font-family: var(--font); font-size: 0.88rem;
    font-weight: 700; cursor: pointer; transition: .3s; white-space: nowrap;
}
.tab-btn .material-symbols-outlined { font-size: 20px; }
.tab-btn:hover { color: var(--tx); }
.tab-btn.active { color: var(--mg); border-bottom-color: var(--mg); }
.tab-panel { display: none; padding: 48px 0 0; animation: fadeUp .5s var(--ease); }
.tab-panel.active { display: block; }
.tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tp-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 0.7rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(230,0,126,0.1); color: var(--mg); margin-bottom: 14px;
}
.tp-info h3 { font-size: 1.6rem; font-weight: 900; color: var(--white); margin-bottom: 14px; line-height: 1.25; }
.tp-info p { color: var(--tx2); margin-bottom: 20px; font-size: 0.95rem; }
.tp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tp-list li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--tx2);
}
.tp-list .material-symbols-outlined { font-size: 18px; color: var(--mg); flex-shrink: 0; margin-top: 2px; }

/* Mock editor visual */
.mock-editor {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); overflow: hidden; position: relative;
}
.me-toolbar {
    display: flex; gap: 8px; padding: 10px 16px;
    background: var(--bg4); border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem; color: var(--tx3);
}
.me-toolbar span { padding: 4px 8px; border-radius: 4px; cursor: default; }
.me-toolbar span:hover { background: rgba(255,255,255,0.05); }
.me-title-field {
    padding: 16px 20px 8px; font-size: 1.3rem; font-weight: 800; color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.me-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.me-line { height: 8px; border-radius: 4px; background: var(--bg5); }
.w100 { width: 100%; } .w85 { width: 85%; } .w92 { width: 92%; } .w70 { width: 70%; } .w88 { width: 88%; }
.me-seo-score {
    position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.score-ring { position: relative; width: 48px; height: 48px; }
.score-ring svg { width: 100%; height: 100%; }
.score-ring span {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; font-size: 0.85rem; font-weight: 900; color: var(--mg);
}
.me-seo-score small { font-size: 0.6rem; color: var(--tx3); font-weight: 700; text-transform: uppercase; }

/* Mock gallery */
.mock-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    background: var(--bg3); padding: 20px; border-radius: var(--r);
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 580px; margin-left: auto;
}
.mg-item {
    aspect-ratio: 1; border-radius: 8px; background: var(--bg5);
    transition: .3s; position: relative; overflow: hidden;
}
.mg-item:nth-child(4n+1) { background: rgba(230,0,126,0.15); }
.mg-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(230,0,126,0.1) 0%, transparent 60%);
    opacity: 0; transition: .3s;
}
.mg-item:hover::after { opacity: 1; }
.mg-item:nth-child(1) { background: linear-gradient(135deg, #1a1a2c, #2a1a30); }
.mg-item:nth-child(2) { background: linear-gradient(135deg, #1a1c2c, #1a202c); }
.mg-item:nth-child(3) { background: linear-gradient(135deg, #1c1a2c, #2c1a28); }
.mg-item:nth-child(4) { background: linear-gradient(135deg, #1a2c24, #1a2c1c); }
.mg-item:nth-child(5) { background: linear-gradient(135deg, #2c2a1a, #2c241a); }
.mg-item:nth-child(6) { background: linear-gradient(135deg, #1a1a2c, #1c202c); }
.mg-item:nth-child(7) { background: linear-gradient(135deg, #2c1a24, #2c1a1c); }
.mg-item:nth-child(8) { background: linear-gradient(135deg, #1a2c2c, #1a242c); }
.mg-item:nth-child(9) { background: linear-gradient(135deg, #241a2c, #2c1a28); }

/* Mock ads */
.mock-ads {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.ma-zone {
    border: 2px dashed rgba(230,0,126,0.25); border-radius: var(--rs);
    padding: 14px; text-align: center; font-family: var(--mono); font-size: 0.7rem; color: var(--mg);
    background: rgba(230,0,126,0.03);
}
.ma-layout { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.ma-content { display: flex; flex-direction: column; gap: 8px; }
.ma-l { height: 10px; border-radius: 5px; background: var(--bg5); width: 100%; }
.ma-l.short { width: 65%; }
.ma-sidebar {
    border: 2px dashed rgba(230,0,126,0.25); border-radius: var(--rs);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 0.65rem; color: var(--mg);
    background: rgba(230,0,126,0.03); min-height: 120px;
}

/* Mock portada */
.mock-portada {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.mp-hero-block { height: 80px; border-radius: var(--rs); background: linear-gradient(135deg, var(--bg5), rgba(230,0,126,0.08)); }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mp-card { height: 60px; border-radius: 8px; background: var(--bg5); }
.mp-section { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; }
.mp-bar { height: 10px; width: 40%; border-radius: 5px; background: var(--mg); opacity: 0.3; margin-bottom: 10px; }
.mp-small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mp-small-grid div { height: 40px; border-radius: 6px; background: var(--bg5); }

/* Mock analytics */
.mock-analytics {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.ma-header { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ma-stat { background: var(--bg4); padding: 12px; border-radius: var(--rs); text-align: left; }
.ma-stat span { font-size: 0.65rem; color: var(--tx3); text-transform: uppercase; display: block; }
.ma-stat strong { font-size: 1.2rem; color: var(--white); }
.ma-stat.live strong { color: #28c840; }
.ma-chart { height: 80px; position: relative; }
.ma-chart svg { width: 100%; height: 100%; border-radius: 8px; }
.ma-list { display: flex; flex-direction: column; gap: 8px; }
.ma-row { display: flex; justify-content: space-between; height: 8px; }
.ma-row span { background: var(--bg5); border-radius: 4px; }

/* Mock paywall */
.mock-paywall {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pw-card {
    background: var(--bg4); border: 1px solid var(--mg); border-radius: var(--rs);
    padding: 20px; width: 100%; text-align: center; position: relative;
}
.pw-badge {
    position: absolute; top: 12px; right: 12px; font-size: 0.55rem; font-weight: 800;
    color: white; background: var(--mg); padding: 2px 8px; border-radius: 40px;
}
.pw-card h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 4px; }
.pw-price { font-size: 1.6rem; font-weight: 900; color: var(--white); }
.pw-price span { font-size: 0.8rem; color: var(--tx3); font-weight: 400; }
.pw-items { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; align-items: center; }
.pw-items div { height: 4px; border-radius: 2px; background: var(--bg5); }
.pw-button {
    background: var(--mg); color: white; padding: 10px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; cursor: default;
}
.pw-methods { display: flex; gap: 12px; color: var(--tx3); opacity: 0.5; }

/* ═══ SEO ENGINE ═══ */
.seo-engine { padding: 64px 0; background: var(--bg); position: relative; overflow: hidden; }
.seo-engine::before {
    content: ''; position: absolute; top: 50%; left: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(230,0,126,0.04); filter: blur(100px);
    pointer-events: none;
}
.seo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.seo-info { position: relative; z-index: 1; }
.seo-checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.seo-check {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--bg3); border-radius: 10px; font-size: 0.82rem;
    color: var(--tx2); border: 1px solid rgba(255,255,255,0.04);
    transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.seo-check::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
    background: linear-gradient(90deg, var(--mg), transparent); opacity: 0; transition: .3s;
}
.seo-check:hover { border-color: rgba(230,0,126,0.15); transform: translateY(-2px); }
.seo-check:hover::before { opacity: 1; }
.seo-check .material-symbols-outlined { font-size: 18px; color: var(--mg); flex-shrink: 0; }

/* Google preview mock */
.seo-visual { position: relative; z-index: 1; }
.google-preview {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r); padding: 28px; margin-bottom: 20px;
}
.gp-label { font-size: 0.7rem; color: var(--tx3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 16px; }
.gp-url { font-size: 0.82rem; color: #7ac47a; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.gp-fav { width: 20px; height: 20px; border-radius: 50%; background: var(--mg); color: white; font-size: 0.65rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; margin-right: 4px; }
.gp-arrow { color: var(--tx3); }
.gp-title { font-size: 1.2rem; color: #8ab4f8; font-weight: 600; margin-bottom: 6px; cursor: pointer; }
.gp-title:hover { text-decoration: underline; }
.gp-desc { font-size: 0.88rem; color: var(--tx2); line-height: 1.5; }
.seo-metrics-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px;
}
.sm {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--rs); padding: 16px; text-align: center;
    transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.sm::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--mg), transparent); opacity: 0; transition: .3s;
}
.sm:hover { border-color: rgba(230,0,126,0.2); transform: translateY(-2px); }
.sm:hover::before { opacity: 1; }
.sm-val { font-size: 1.4rem; font-weight: 900; color: var(--mg); }
.sm-label { font-size: 0.7rem; color: var(--tx3); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.seo-extras { display: flex; flex-direction: column; gap: 10px; }
.se-item {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px; font-size: 0.88rem; color: var(--tx2);
    transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.se-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--mg), transparent); opacity: 0; transition: .3s;
}
.se-item:hover { border-color: rgba(230,0,126,0.15); transform: translateY(-2px); }
.se-item:hover::before { opacity: 1; }
.se-item .material-symbols-outlined { font-size: 20px; color: var(--mg); }

/* ═══ MODULES ═══ */
.modules { padding: 64px 0; background: var(--bg2); text-align: center; }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; margin-top: 56px; }
.mod-card {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--r); padding: 30px 24px; position: relative; overflow: hidden;
    transition: all .4s var(--ease); opacity: 0; transform: translateY(30px);
}
.mod-card.visible { opacity: 1; transform: translateY(0); }
.mod-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--mg), transparent); opacity: 0; transition: .4s;
}
.mod-card:hover { border-color: rgba(230,0,126,0.15); transform: translateY(-4px); }
.mod-card:hover::before { opacity: 1; }
.mod-card > .material-symbols-outlined {
    font-size: 32px; color: var(--mg); margin-bottom: 16px;
    background: rgba(230,0,126,0.08); width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center; border-radius: 14px;
}
.mod-card h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.mod-card p { font-size: 0.85rem; color: var(--tx3); line-height: 1.6; }

/* ═══ ARCHITECTURE ═══ */
.architecture { padding: 64px 0; background: var(--bg); text-align: center; position: relative; overflow: hidden; }
.architecture .container { position: relative; z-index: 2; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; margin-bottom: 40px; }
.arch-card {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--r); padding: 28px 22px; position: relative; overflow: hidden;
    opacity: 0; transform: translateY(20px); transition: all .4s var(--ease);
}
.arch-card.visible { opacity: 1; transform: translateY(0); }
.arch-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--mg), transparent); opacity: 0; transition: .4s;
}
.arch-card:hover { border-color: rgba(230,0,126,0.15); transform: translateY(-4px); }
.arch-card:hover::before { opacity: 1; }
.arch-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.arch-card h4 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.arch-card p { font-size: 0.85rem; color: var(--tx3); line-height: 1.6; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-tag {
    padding: 8px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    background: var(--bg3); color: var(--tx2); border: 1px solid rgba(255,255,255,0.06);
    font-family: var(--mono); letter-spacing: 0.02em;
}

/* ═══ QUOTE ═══ */
.quote-section { padding: 40px 0; background: var(--bg2); }
.marquee-quote {
    text-align: center; max-width: 850px; margin: 0 auto;
    padding: 40px 32px; border-left: 3px solid var(--mg);
    opacity: 0; transform: translateY(20px);
}
.marquee-quote.visible { opacity: 1; transform: translateY(0); transition: .8s var(--ease); }
.marquee-quote p { font-size: 1.15rem; color: var(--tx2); font-style: italic; line-height: 1.85; }
.marquee-quote strong { color: var(--mg); font-style: normal; }

/* ═══ EVOLUTION ═══ */
.evolution {
    padding: 180px 0 140px; background: #05050a; position: relative;
    overflow: hidden; text-align: center;
    border-bottom: 8px solid var(--mg);
}
.evo-inner { position: relative; z-index: 2; opacity: 0; transform: scale(0.95); }
.evo-inner.visible { opacity: 1; transform: scale(1); transition: .8s var(--ease); }
.evo-split {
    display: grid; grid-template-columns: 0.8fr 1.2fr;
    align-items: center; gap: 48px; margin-bottom: 20px;
}
.evo-rocket-wrap { display: flex; justify-content: center; }
.evo-rocket-svg {
    width: 250px; height: 250px;
    filter: drop-shadow(0 0 40px rgba(230,0,126,0.2));
    animation: rocketFloat 4s ease-in-out infinite;
}
@keyframes rocketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.evo-text { text-align: center; display: flex; align-items: center; justify-content: center; }
.evo-q {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--white);
    line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase;
    min-height: 4.5em; /* Evitar saltos de layout */
    white-space: pre-wrap;
}
.evo-q.typing::after {
    content: '|';
    display: inline-block;
    color: var(--mg);
    animation: cursorBlink 0.8s infinite;
    margin-left: 2px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
.evo-title {
    position: absolute !important;
    bottom: -5px !important;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    font-family: 'Fredoka', sans-serif !important;
    font-size: calc(7px + 9vw) !important;
    font-weight: 700 !important;
    line-height: .6 !important;
    color: #490e2f70 !important;
    text-align: center !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0 !important;
    text-shadow: none;
}

/* Star Parallax Layers */
.evo-stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.evo-star-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.6;
}

.layer-1 {
    background-image: 
        radial-gradient(1.5px 1.5px at 25px 35px, white, rgba(255,255,255,0)),
        radial-gradient(1px 1px at 50px 100px, white, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 120px 210px, rgba(255,255,255,0.8), rgba(255,255,255,0)),
        radial-gradient(1px 1px at 200px 150px, white, rgba(255,255,255,0)),
        radial-gradient(2.5px 2.5px at 300px 80px, var(--mg), rgba(255,255,255,0));
    background-size: 300px 300px;
    animation: starTravel 120s linear infinite;
}

.layer-2 {
    background-image: 
        radial-gradient(2.5px 2.5px at 150px 50px, white, rgba(255,255,255,0)),
        radial-gradient(2px 2px at 280px 190px, var(--mg), rgba(255,255,255,0)),
        radial-gradient(3px 3px at 450px 320px, white, rgba(255,255,255,0));
    background-size: 450px 450px;
    animation: starTravel 80s linear infinite;
    opacity: 0.5;
}

.layer-3 {
    background-image: 
        radial-gradient(4px 4px at 300px 400px, white, rgba(255,255,255,0)),
        radial-gradient(3px 3px at 100px 200px, var(--mg), rgba(255,255,255,0));
    background-size: 700px 700px;
    animation: starTravel 40s linear infinite;
    opacity: 0.4;
}

@keyframes starTravel {
    from { background-position: 0 0; }
    to { background-position: -1000px 1000px; }
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Debris / Shooting Stars */
.evo-debris {
    position: absolute;
    width: 4px; height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8), transparent);
    z-index: 6; opacity: 0;
    pointer-events: none;
    transform: rotate(-135deg); /* Inclinado igual que el flujo */
}

.d1 { top: -10%; left: 80%; animation: debrisTravel 10s linear infinite; animation-delay: 2s; }
.d2 { top: -10%; left: 30%; animation: debrisTravel 13s linear infinite; animation-delay: 7s; }
.d3 { top: -20%; left: 60%; animation: debrisTravel 16s linear infinite; animation-delay: 12s; }

@keyframes debrisTravel {
    0% { transform: translate(0, 0) rotate(-135deg); opacity: 0; }
    2% { opacity: 0.8; }
    6% { transform: translate(-800px, 800px) rotate(-135deg); opacity: 0; }
    100% { transform: translate(-800px, 800px) rotate(-135deg); opacity: 0; }
}

/* ═══ CONTACT ═══ */
.contact { padding: 64px 0; background: var(--bg2); text-align: center; }
.contact-grid { max-width: 800px; margin: 0 auto; text-align: left; }
.contact-form {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--r); padding: 36px;
}
.fg { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--tx2); margin-bottom: 7px; }
.fg input, .fg textarea {
    width: 100%; padding: 13px 16px; background: var(--bg4);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--rs);
    color: var(--white); font-family: var(--font); font-size: 0.92rem;
    transition: .3s; outline: none; resize: vertical;
}
.fg input:focus, .fg textarea:focus { border-color: var(--mg); box-shadow: 0 0 0 3px rgba(230,0,126,0.12); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--tx3); }
.form-status { margin-top: 14px; text-align: center; font-weight: 600; font-size: 0.88rem; min-height: 20px; }
.form-status.success { color: #28c840; } .form-status.error { color: #ff5f57; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.ca-card {
    background: var(--bg3); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--rs); padding: 22px; transition: .3s;
}
.ca-card:hover { border-color: rgba(230,0,126,0.15); }
.ca-card .material-symbols-outlined { font-size: 24px; color: var(--mg); margin-bottom: 8px; display: block; }
.ca-card h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 4px; font-weight: 700; }
.ca-card p { font-size: 0.85rem; color: var(--tx3); }
.ca-card.highlight { background: linear-gradient(135deg, rgba(230,0,126,0.08), rgba(230,0,126,0.02)); border-color: rgba(230,0,126,0.2); }

/* ═══ FOOTER ═══ */
.footer { padding: 60px 0 40px; background: var(--bg); border-top: 1px solid rgba(255,255,255,0.04); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { margin-bottom: 6px; display: inline-block; transition: transform .3s; }
.footer-logo:hover { transform: scale(1.05); }
.footer-logo .logo-svg { height: 55px; width: auto; }
.footer-credits { font-size: 0.95rem; color: var(--tx2); font-weight: 500; }
.footer-copy { font-size: 0.75rem !important; color: var(--tx3) !important; opacity: 0.6; margin-bottom: 20px; }
.scroll-top {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    color: var(--mg); text-decoration: none; transition: all .3s var(--ease);
}
.scroll-top .material-symbols-outlined { font-size: 24px; }
.scroll-top:hover {
    background: rgba(230,0,126,0.1); border-color: rgba(230,0,126,0.2);
    transform: translateY(-5px); box-shadow: 0 4px 12px rgba(230,0,126,0.2);
}

/* ═══ AOS (scroll animations) ═══ */
[data-aos] { opacity: 0; transform: translateY(30px); transition: all .7s var(--ease); }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
    position: fixed; bottom: 32px; right: 32px; width: 64px; height: 64px;
    z-index: 1000; transition: transform 0.4s var(--ease);
    filter: drop-shadow(0 6px 20px rgba(230,0,126,0.35));
}
.whatsapp-float:hover { transform: translateY(-6px) scale(1.05); }
.whatsapp-float svg { width: 100%; height: 100%; display: block; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .modules-grid, .arch-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { max-width: 540px; margin: 0 auto; }
    .browser-mock { transform: none; }
    .tp-split, .seo-layout, .contact-grid, .evo-split { grid-template-columns: 1fr; }
    .evo-text { text-align: center; }
    .evo-q { font-size: 1.1rem; }
    .seo-checks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .seo-metrics-row { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .tab-nav { gap: 0; }
    .tab-btn { padding: 12px 14px; font-size: 0.8rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
    /* Mobile Performance: Disable stars animations to prevent scroll lag on low-end devices */
    .evo-star-layer { animation: none !important; opacity: 0.4 !important; }
    .evo-debris { display: none !important; }
}
@media (max-width: 480px) {
    .modules-grid, .arch-grid { grid-template-columns: 1fr; }
    .mock-stats-row { grid-template-columns: 1fr; }
}
