/* RETOKA — Estudio de Transformación Visual. Dark theme, sin dependencias. */
:root {
    --bg-main: #07080C;
    --bg-alt: #0D111C;
    --card-bg: #151925;
    --text-main: #F5F2EA;
    --text-sec: #9CA3AF;
    --violet: #8B5CF6;
    --cyan: #22D3EE;
    --magenta: #F43F8C;
    --orange: #FF8A4C;
    --green: #43E6A5;
    --danger: #f87171;
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
    line-height: 1.5;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.muted { color: var(--text-sec); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', monospace; }

.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.1s ease-out;
}

/* Nav */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 4rem;
    z-index: 1000;
    background: rgba(7, 8, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.logo-text {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-sec); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-main); }

.btn-glow {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--violet), var(--magenta));
    color: white; border: none; border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    text-decoration: none; display: inline-block; text-align: center;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(139, 92, 246, 0.6); }
.btn-glow:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-big { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-outline {
    padding: 0.8rem 1.5rem;
    background: transparent; color: var(--text-main);
    border: 1px solid var(--text-sec); border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    padding: 8rem 4rem 4rem; gap: 4rem; position: relative;
}
.hero-content { position: relative; z-index: 10; }
.hero-title { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-title span { display: block; opacity: 0; animation: fadeUp 1s ease forwards; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.4s; }
.hero-title span:nth-child(4) { animation-delay: 0.6s; background: linear-gradient(90deg, var(--orange), var(--magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-subtitle { font-size: 1.2rem; color: var(--text-sec); max-width: 450px; margin-bottom: 2rem; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.trust-line { font-size: 0.85rem; color: var(--text-sec); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; width: fit-content; }
.hero-collage { position: relative; height: 600px; }
.collage-img { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: float 6s ease-in-out infinite; }
.collage-img img { width: 100%; height: 100%; object-fit: cover; }
.collage-main { width: 300px; height: 450px; right: 20%; top: 0; z-index: 3; border: 2px solid rgba(255,255,255,0.1); }
.collage-sec-1 { width: 200px; height: 250px; left: 10%; top: 20%; z-index: 2; animation-delay: 1s; border: 2px solid var(--cyan); box-shadow: 0 0 30px rgba(34, 211, 238, 0.2); }
.collage-sec-2 { width: 220px; height: 150px; right: 5%; bottom: 10%; z-index: 4; animation-delay: 2s; border: 2px solid var(--magenta); box-shadow: 0 0 30px rgba(244, 63, 140, 0.2); }
.hero-halo { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 70%); top: 20%; left: 40%; z-index: 1; filter: blur(50px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.floating-tag {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(21, 25, 37, 0.9); backdrop-filter: blur(10px);
    padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--cyan); z-index: 10;
}

/* Sections */
.section-title { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.section-sub { color: var(--text-sec); max-width: 640px; margin: 0 auto 3rem; text-align: center; }

/* Servicios */
.categories { padding: 6rem 4rem; background: var(--bg-alt); position: relative; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.category-card {
    position: relative; height: 340px; border-radius: 12px; overflow: hidden;
    cursor: pointer; border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,8,12,0.95) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; transition: background 0.3s ease;
}
.category-card:hover { transform: translateY(-10px); border-color: var(--violet); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2); }
.category-card:hover img { transform: scale(1.1); }
.category-card.sel { border-color: var(--green); box-shadow: 0 0 0 3px rgba(67, 230, 165, 0.25); }
.category-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.category-price { font-family: 'JetBrains Mono', monospace; font-size: 1rem; color: var(--green); margin-bottom: 0.4rem; }
.category-price.quote { color: var(--cyan); }
.category-desc { font-size: 0.85rem; color: var(--text-sec); opacity: 0; max-height: 0; transition: all 0.3s ease; }
.category-card:hover .category-desc { opacity: 1; max-height: 60px; }
.category-check {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--green); color: #06120c; display: none;
    align-items: center; justify-content: center; font-weight: 800; font-size: 1rem;
    box-shadow: 0 0 12px rgba(67, 230, 165, 0.5); z-index: 5;
}
.category-card.sel .category-check { display: flex; }
.price-sum {
    max-width: 1100px; margin: 24px auto 0; padding: 16px 24px;
    background: var(--card-bg); border: 1px solid rgba(67, 230, 165, 0.25);
    border-radius: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.price-sum-amount { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; color: var(--green); font-weight: 700; }

/* Galería */
.gallery { padding: 6rem 4rem; }
.magazine-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.mag-item { border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.mag-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mag-item:hover img { transform: scale(1.05); }
.mag-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8)); opacity: 0; transition: opacity 0.3s; }
.mag-item:hover::after { opacity: 1; }
.mag-badge {
    position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 5;
    display: flex; justify-content: space-between; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.mag-item:hover .mag-badge { opacity: 1; }
.mag-badge span { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; }
.mag-badge .ba { background: rgba(0,0,0,0.6); color: #cbd5e1; }
.mag-badge .bd { background: rgba(67, 230, 165, 0.9); color: #06120c; }
.mag-panoramic { grid-column: span 4; grid-row: span 1; }
.mag-vert-1, .mag-vert-2 { grid-column: span 1; grid-row: span 2; }
.mag-square { grid-column: span 2; grid-row: span 1; }

/* Comparador */
.comparator-section { padding: 6rem 4rem; background: var(--bg-alt); display: flex; align-items: center; gap: 4rem; }
.comparator-text { flex: 1; }
.comparator-container { flex: 1.5; position: relative; width: 100%; height: 500px; overflow: hidden; border-radius: 16px; user-select: none; }
.comp-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.comp-before { z-index: 1; clip-path: inset(0 50% 0 0); }
.comp-after { z-index: 0; }
.comp-slider { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: white; z-index: 2; cursor: ew-resize; transform: translateX(-50%); }
.comp-slider::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border-radius: 50%; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.comp-label { position: absolute; top: 1rem; padding: 0.5rem 1rem; background: rgba(0,0,0,0.7); color: white; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; border-radius: 4px; z-index: 3; }
.label-before { left: 1rem; }
.label-after { right: 1rem; }

/* Proceso */
.process { padding: 6rem 4rem; position: relative; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; position: relative; max-width: 1100px; margin-left: auto; margin-right: auto; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--orange)); opacity: 0.3; }
.step { text-align: center; position: relative; z-index: 2; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 3rem; color: var(--text-sec); opacity: 0.5; margin-bottom: 1rem; display: block; }
.step-img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 2px solid var(--violet); box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.9rem; color: var(--text-sec); max-width: 200px; margin: 0 auto; }

/* Impacto */
.impact {
    height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background: url('assets/demo/impact-bg.jpg') center/cover no-repeat fixed; position: relative;
}
.impact::after { content: ''; position: absolute; inset: 0; background: rgba(7, 8, 12, 0.85); }
.impact-text { position: relative; z-index: 10; font-size: clamp(2rem, 5vw, 4rem); max-width: 800px; }

/* Formulario */
.form-section { padding: 6rem 4rem; background: var(--bg-alt); }
.form-container { max-width: 1000px; margin: 0 auto; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.form-sidebar h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.form-sidebar p { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 2rem; }
.upload-zone {
    background: var(--bg-main); border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.3s;
}
.upload-zone:hover { border-color: var(--violet); }
.upload-zone.dragover { border-color: var(--cyan); }
.upload-zone input[type="file"] { display: none; }
.upload-hint { color: var(--text-sec); font-size: 0.9rem; }
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.foto-item { position: relative; }
.foto-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.foto-item button {
    position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%;
    border: none; background: var(--danger); color: #fff; font-weight: 800; cursor: pointer; line-height: 1; font-size: 0.9rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--text-sec); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; background: var(--bg-main); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main); padding: 0.8rem 1rem; border-radius: 8px;
    font-family: 'Inter', sans-serif; transition: border 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--violet); }
.form-textarea { resize: vertical; min-height: 100px; }
.selected-services { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-main); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; }
.svc-chip .svc-price { font-family: 'JetBrains Mono', monospace; color: var(--green); font-size: 0.8rem; }
.svc-chip .svc-price.quote { color: var(--cyan); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-main); }
.check input { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 2px; }
.hint { color: var(--text-sec); font-size: 0.85rem; margin: 8px 0 0; }
.form-msg { color: var(--danger); font-size: 0.85rem; margin-bottom: 10px; min-height: 0; }

/* Recibo */
.receipt-container { max-width: 500px; margin: 6rem auto; background: linear-gradient(145deg, #1a1f2e, #151925); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.receipt-container::before { content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle, rgba(67, 230, 165, 0.1) 0%, rgba(0,0,0,0) 60%); }
.receipt-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(67, 230, 165, 0.2); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 2rem; }
.receipt-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.order-id { font-family: 'JetBrains Mono', monospace; color: var(--cyan); font-size: 1.2rem; margin-bottom: 2rem; display: block; }
.receipt-data { background: rgba(0,0,0,0.3); padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 1rem; font-size: 0.9rem; }
.receipt-row:last-child { margin-bottom: 0; }
.receipt-row span:first-child { color: var(--text-sec); }
.receipt-actions { display: flex; flex-direction: column; gap: 1rem; }
.wa-link { text-decoration: none; }
.wa-link .wa-text { font-size: 0.95rem; }

/* Seguimiento */
.track-section { padding: 6rem 4rem; background: var(--bg-alt); text-align: center; }
.track { display: flex; gap: 10px; max-width: 460px; margin: 18px auto 0; }
.track input { flex: 1; padding: 12px 16px; background: var(--bg-main); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); border-radius: 8px; font-size: 1rem; }
.track input:focus { outline: none; border-color: var(--violet); }
.track-result { margin-top: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; font-family: 'JetBrains Mono', monospace; }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.st-pendiente_pago { background: #7c2d12; color: #fdba74; }
.st-pagado { background: #14532d; color: #86efac; }
.st-en_proceso { background: #1e3a8a; color: #93c5fd; }
.st-completado { background: #374151; color: #e5e7eb; }

/* Footer */
.site-footer { background: #05060a; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 5px; }
.footer-contact { display: flex; gap: 16px; }
.footer-contact a { color: var(--text-sec); font-weight: 600; text-decoration: underline; }
.site-footer .muted { color: #4b5563; text-align: center; margin-top: 12px; }

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 2rem; }
    .hero-collage { height: 300px; margin-top: 2rem; }
    .collage-main { width: 180px; height: 270px; right: 10%; }
    .collage-sec-1 { width: 120px; height: 150px; left: 5%; }
    .collage-sec-2 { width: 130px; height: 90px; right: 0%; }
    .categories, .gallery, .comparator-section, .process, .form-section, .track-section { padding: 4rem 1.5rem; }
    .category-grid { grid-template-columns: 1fr; height: auto; }
    .category-card { height: 250px; }
    .magazine-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .mag-panoramic, .mag-vert-1, .mag-vert-2, .mag-square { grid-column: span 1; grid-row: span 1; }
    .comparator-section { flex-direction: column; }
    .comparator-container { height: 400px; width: 100%; }
    .timeline { grid-template-columns: 1fr; gap: 3rem; }
    .timeline::before { display: none; }
    .form-container { grid-template-columns: 1fr; padding: 1.5rem; }
    .footer-inner { padding: 0 1.5rem; }
}

/* Pantallas táctiles: cursor normal */
@media (hover: none) {
    body { cursor: auto; }
    .cursor-glow { display: none; }
}
