/* XTres60 — agencia de marketing digital
   Marca: naranja #E46038, negro #111111, gris cálido #C9C2BC, blanco.
   Motivo: franjas diagonales redondeadas del logo. */

:root {
  --orange: #E46038;
  --orange-2: #F07A55;
  --ink: #111111;
  --bg: #0F0F10;
  --surface: #18181A;
  --surface-2: #202023;
  --line: #2A2A2E;
  --warm: #C9C2BC;
  --text: #F5F3F1;
  --muted: #B3ACA6;
  --whatsapp: #25D366;
  --radius: 24px;
  --max: 1280px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--orange-2); }
a:hover { color: #fff; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: 2px; color: var(--orange-2); text-transform: uppercase; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -2px; line-height: 1; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.accent { color: var(--orange); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-2); color: var(--ink); }
.btn-ghost { border: 1.5px solid #3A3A40; color: #fff; background: transparent; font-weight: 600; }
.btn-ghost:hover { border-color: var(--warm); color: #fff; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,15,16,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; white-space: nowrap; }
.brand-name span { color: var(--orange); }
.main-nav { display: flex; gap: 30px; font-weight: 500; font-size: 15px; }
.main-nav a { color: #D9D4CF; text-decoration: none; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #3A3A40; background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) { .header-actions .btn-orange { display: none; } }

/* Franjas diagonales del logo */
.stripes { position: absolute; display: flex; flex-direction: column; gap: 14px; transform: rotate(-38deg); pointer-events: none; }
.stripes span { display: block; height: 18px; border-radius: 999px; }
.stripes .s1 { width: 260px; background: var(--orange); }
.stripes .s2 { width: 200px; background: var(--warm); margin-left: 40px; }
.stripes .s3 { width: 160px; background: var(--orange); margin-left: 20px; }
.stripes .s4 { width: 120px; height: 6px; background: #fff; margin-left: 70px; opacity: .8; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .stripes-a { right: -60px; top: 40px; }
.hero .stripes-b { left: -120px; bottom: 30px; opacity: .55; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 96px 24px 96px; }
.hero-copy { flex: 1 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(50px, 7vw, 108px); line-height: .95; letter-spacing: -3px; }
.hero-lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 8px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.orbit { flex: 1 1 420px; min-width: 0; position: relative; height: 460px; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-ring.r1 { width: 400px; height: 400px; border: 2px dashed #34343A; }
.orbit-ring.r2 { width: 250px; height: 250px; background: var(--surface); border: 1px solid var(--line); }
.orbit-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.orbit-center strong { font-family: var(--font-display); font-size: 84px; line-height: 1; letter-spacing: -3px; display: block; }
.orbit-center span { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.pillar { position: absolute; padding: 12px 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.pillar.p1 { left: 50%; top: 18px; transform: translateX(-50%); background: #fff; color: var(--ink); }
.pillar.p2 { left: 4%; bottom: 64px; background: var(--orange); color: var(--ink); }
.pillar.p3 { right: 4%; bottom: 64px; background: var(--warm); color: var(--ink); }
@media (max-width: 640px) {
  .hero-inner { padding: 56px 20px 64px; gap: 36px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-lead { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .orbit { height: 320px; }
  .orbit-ring.r1 { width: 290px; height: 290px; }
  .orbit-ring.r2 { width: 180px; height: 180px; }
  .orbit-center strong { font-size: 56px; }
  .pillar { font-size: 15px; padding: 10px 16px; }
  .pillar.p2, .pillar.p3 { bottom: 30px; }
  .hero .stripes-a { right: -140px; top: 10px; opacity: .5; }
}

/* Franja de servicios */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #131315; }
.ticker ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; list-style: none; margin: 0; padding: 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #DCD6D0; }
.ticker li { display: flex; align-items: center; gap: 28px; }
.ticker li + li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
@media (max-width: 640px) { .ticker ul { font-size: 17px; gap: 8px 18px; } .ticker li { gap: 18px; } }

/* Secciones */
.section { padding: 104px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.section-head h2 { max-width: 640px; }
.section-head .lead { max-width: 400px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.service { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.service-icon { width: 54px; height: 54px; border-radius: 16px; background: #26201E; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.service h3 { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.service p { font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #DCD6D0; }
.service li::before { content: '— '; color: var(--orange); }
.service.featured { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.service.featured .service-icon { background: rgba(17,17,17,.12); color: var(--ink); }
.service.featured p, .service.featured ul { color: #2A1A14; }
.service.featured li::before { color: var(--ink); }

/* Casos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #3A3A40; background: transparent; color: #DCD6D0; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.case { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.case[hidden] { display: none; }
.case-visual { height: 220px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; border-bottom: 1px solid var(--line); }
.case-visual .big { font-family: var(--font-display); font-weight: 700; font-size: 64px; letter-spacing: -2px; line-height: 1; color: rgba(255,255,255,.92); position: relative; }
.case-visual .stripes { right: -30px; top: 30px; transform: rotate(-38deg) scale(.7); }
.v-web { background: linear-gradient(160deg, #2A1C17, #18181A 70%); }
.v-soft { background: linear-gradient(160deg, #23211F, #18181A 70%); }
.v-av { background: linear-gradient(160deg, #3A1F15, #18181A 70%); }
.v-edu { background: linear-gradient(160deg, #1F1F23, #18181A 70%); }
.case-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.case-tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--orange-2); }
.case h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.case p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Proceso */
.process-section { background: #131315; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.process li { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.process .deg { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--orange); }
.process h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.process p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.process li:last-child { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.process li:last-child .deg { color: var(--ink); }
.process li:last-child p { color: #2A1A14; }

/* Por qué */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.why div { padding: 26px; border-radius: 20px; border: 1px solid var(--line); }
.why h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.why p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Contacto */
.contact { padding: 24px 0 104px; }
.contact-card { border-radius: 32px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; overflow: hidden; position: relative; }
.contact-copy { position: relative; flex: 1 1 420px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; gap: 24px; }
.contact-copy .stripes { right: -40px; bottom: 40px; opacity: .35; }
.contact-list { position: relative; display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; font-weight: 600; color: #fff; }
.contact-list li, .contact-list a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--orange-2); }
.contact-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #26201E; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.form { flex: 1 1 500px; min-width: 0; margin: 16px; border-radius: 24px; background: #F7F5F3; color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-fields[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > span { font-weight: 700; font-size: 14px; }
.field small { font-weight: 500; color: #5A534E; font-size: 14px; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #CFC8C2; font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(228,96,56,.25); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #CFC8C2; background: #fff; color: #2A2522; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.form .btn-orange { width: 100%; min-height: 56px; font-size: 17px; }
.form-note { font-size: 13px; color: #5A534E; text-align: center; }
.form-note a { color: #9C3A1C; }
.form-error { font-size: 14px; color: #B42318; font-weight: 600; }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 60px 0; flex: 1; }
.form-success[hidden] { display: none; }
.form-success a { color: #9C3A1C; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #FBE3DA; display: flex; align-items: center; justify-content: center; color: #9C3A1C; }
.form-success h3 { font-family: var(--font-display); font-size: 26px; }
@media (max-width: 640px) {
  .contact-copy { padding: 36px 24px; }
  .form { padding: 24px; margin: 0 12px 12px; }
  .contact-card { border-radius: 24px; }
}
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 48px 24px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; border-radius: 16px; }
.footer-brand p { font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 600; }
.footer-nav a { color: #DCD6D0; text-decoration: none; }
.footer-nav a:hover { color: var(--orange-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px 32px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: #DCD6D0; }

/* WhatsApp flotante y barra móvil */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .wa-float { display: none; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(15,15,16,.94); border-top: 1px solid var(--line); }
  .mobile-bar a { min-height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; }
  .mobile-bar .mb-wa { flex: 1; background: var(--whatsapp); color: var(--ink); }
  .mobile-bar .mb-cta { flex: 1.3; background: var(--orange); color: var(--ink); }
  body { padding-bottom: 78px; }
}

/* Página de redes sociales y enlace desde la portada */
.service-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--orange-2); text-decoration: none; }
.service-link:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.rs-hero-inner { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 72px 24px 88px; max-width: var(--max); }
.rs-title { font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -2.5px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: #DCD6D0; display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a:hover { color: var(--orange-2); }
.rs-includes .service p { flex: 0 1 auto; }
.why a { color: var(--orange-2); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .rs-hero-inner { padding: 40px 20px 64px; }
  .rs-title { letter-spacing: -1.5px; }
  .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; }
}

/* Página de desarrollo web (desarrollo-web.html) */
#casos-web .section-head .lead { max-width: 400px; }

/* Bloque "También te puede interesar" (páginas internas) */
.related { padding-top: 24px; }
.related h2 { margin-bottom: 32px; }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.related-card { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.related-card:hover, .related-card:focus-visible { border-color: var(--orange); color: var(--text); transform: translateY(-2px); }
.related-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-2); }
.related-card strong { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.related-text { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.related-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--orange-2); }

/* Mejora de interfaz final (20 nov 2026) */
/* Menú: con 7 enlaces se colapsa antes para que no se encime */
@media (max-width: 1240px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--orange-2); }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1241px) and (max-width: 1400px) { .main-nav { gap: 22px; } }
.main-nav a { white-space: nowrap; }

/* Animaciones de entrada (solo con JS y sin movimiento reducido) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
@media print { .js-reveal .reveal { opacity: 1; transform: none; } }

/* Botón "Volver arriba": encima del WhatsApp flotante y de la barra móvil */
.to-top { position: fixed; right: 31px; bottom: 100px; z-index: 59; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3A3A40; background: rgba(24,24,26,.92); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: border-color .15s ease, color .15s ease; }
.to-top:hover { border-color: var(--orange); color: var(--orange-2); }
.to-top[hidden] { display: none; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}
