/*
  Caturro Café — Dark Underground Landing
  Tipografías: Space Grotesk + Unica One
*/

:root {
  --bg: #0c0b0a;        /* negro cálido */
  --bg-2: #070605;      /* base más profunda */
  --fg: #efeae6;        /* crema */
  --muted: #b9b1ab;     /* crema apagado */
  --line: #171413;      /* línea cálida */
  --accent: #d4a373;    /* ámbar/caramelo */
  --accent-2: #c27d44;  /* cobre */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  /* Posición del motivo dentro de la foto (para centrar el gato) */
  --img-x: 50%;
  --img-y: 50%;
  /* Ruta de la imagen del gato para la máscara/glow (JPG/JPEG admite luminancia) */
  --hero-img: url('assets/logo.4c225b4da2db.svg');
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #0b0a09; /* base sólida coherente */
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo global consistente para todas las secciones */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 16% -10%, rgba(194,125,68,.06), transparent 60%),
    radial-gradient(800px 520px at 84% 110%, rgba(194,125,68,.04), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 30%, rgba(0,0,0,.12) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.015 0'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-blend-mode: screen, screen, normal, overlay;
  opacity: .9;
}

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

.skip { position: absolute; left: -999px; top: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--fg); color: #000; padding: .5rem .75rem; border-radius: 6px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container.narrow { width: min(900px, 92%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0)); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 0; }
.brand { display: inline-grid; grid-auto-flow: column; gap: .6rem; align-items: center; font-family: 'Unica One', system-ui; letter-spacing: .5px; font-size: 1.2rem; }
.brand-name { opacity: .9; }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 0 14px rgba(212,163,115,.18)); }
.brand-mark.small { width: 28px; height: 28px; }

.menu { display: flex; gap: 1.2rem; justify-self: center; }
.menu a { opacity: .9; transition: opacity .2s ease, color .2s ease; }
.menu a:hover { color: var(--accent); opacity: 1; }

.hamburger { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 8px; border-radius: 8px; color: var(--fg); }
.hamburger span { display: block; height: 2px; background: var(--fg); margin: 6px 0; transition: transform .3s ease, opacity .3s ease; }

/* Hero */
.hero { position: relative; padding: 8rem 0 6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: min(8vw, 80px); }

.hero-copy h1 { font-family: 'Unica One', system-ui; font-size: clamp(2.8rem, 6.5vw, 6rem); line-height: 0.95; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .5px; }
.hero-copy .word.accent { color: var(--accent); }
.kicker { color: var(--fg); opacity: .9; font-weight: 500; letter-spacing: .4px; margin-bottom: .5rem; }
.sub { color: var(--muted); max-width: 55ch; margin-bottom: 1.25rem; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn.primary { background: linear-gradient(180deg, rgba(212,163,115,.14), rgba(212,163,115,.04)); border-color: rgba(212,163,115,.35); box-shadow: 0 0 0 0 rgba(212,163,115,.2); }
.btn.primary:hover { box-shadow: 0 10px 34px rgba(0,0,0,.6), inset 0 0 12px rgba(212,163,115,.18); border-color: rgba(212,163,115,.55); }
.btn.ghost { background: transparent; }
.btn:active { transform: translateY(1px); }

.hero-visual { position: relative; }
.hero-stage { position: relative; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(420px 320px at 30% 30%, rgba(212,163,115,.06), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.6); overflow: hidden; }
/* Anillo de neón café SOLO alrededor de la foto */
.hero-stage::before { content: ""; position: absolute; inset: -8%; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle, rgba(212,163,115,0) 55%, rgba(212,163,115,.55) 66%, rgba(212,163,115,.18) 78%, rgba(212,163,115,0) 88%);
  filter: blur(10px) saturate(120%);
}
/* La imagen original se usa como capa de parallax y mezcla para eliminar el fondo negro */
.hero-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--img-x) var(--img-y); mix-blend-mode: screen; filter: brightness(1.06) contrast(1.08); transform: translateZ(0); will-change: transform; border-radius: inherit; }

.smoke { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120px 80px at 20% 30%, rgba(212,163,115,.10), transparent 60%), radial-gradient(180px 120px at 80% 60%, rgba(212,163,115,.07), transparent 60%), radial-gradient(140px 100px at 40% 80%, rgba(212,163,115,.05), transparent 60%); mix-blend-mode: screen; filter: blur(12px) saturate(110%); opacity: .45; animation: drift 18s linear infinite; }
.smoke.s2 { animation-duration: 24s; opacity: .35; }
.smoke.s3 { animation-duration: 30s; opacity: .28; }
@keyframes drift { 0% { transform: translate3d(-3%, 0, 0) scale(1); } 50% { transform: translate3d(3%, -1%, 0) scale(1.04); } 100% { transform: translate3d(-3%, 0, 0) scale(1); } }

.grain { position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.02 0'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }

/* Sections */
.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .3rem; margin-bottom: 1.6rem; }
.section h2 { font-family: 'Unica One', system-ui; font-size: clamp(1.8rem, 3.6vw, 3rem); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 .5rem; }
.lead { color: var(--fg); opacity: .9; }
.muted { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.feature-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { position: relative; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(212,163,115,.35); box-shadow: 0 10px 38px rgba(0,0,0,.65), 0 0 0 1px rgba(212,163,115,.08) inset; }
.card .tag { position: absolute; top: .8rem; right: .8rem; font-size: .75rem; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); background: rgba(212,163,115,.10); }

.timeline { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: step; }
.timeline li { position: relative; padding-left: 2.2rem; margin: .6rem 0; color: var(--muted); }
.timeline li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font-family: 'Unica One'; color: var(--accent); }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2rem; display: flex; justify-content: center; align-items: center; }
.marquee .track { display: flex; align-items: center; gap: 0; padding: .6rem 0; will-change: transform; animation: roll var(--marquee-duration, 20s) linear infinite; }
.marquee .content { display: inline-flex; gap: 2rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 1rem; }
.bullets { color: var(--muted); }
.bullets li { margin: .4rem 0; }
.map-shell { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); box-shadow: var(--shadow); }
.map-shell iframe { width: 100%; height: 100%; display: block; border: 0; }
.fake-map { display: none; }

/* Relación de aspecto del mapa y altura mínima */
.map-shell { aspect-ratio: 16 / 10; min-height: 320px; }
@media (min-width: 980px) { .map-shell { min-height: 380px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.03)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: 'Unica One'; letter-spacing: .4px; }
.foot-socials { display: flex; gap: .8rem; justify-content: center; }
.social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.social:hover { color: var(--accent); border-color: rgba(212,163,115,.35); box-shadow: 0 0 24px rgba(212,163,115,.18) inset; }
.foot-copy { text-align: right; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); filter: saturate(70%); transition: opacity .9s ease, transform .9s ease, filter .9s ease; }
.reveal.in-view { opacity: 1; transform: none; filter: saturate(100%); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .visit-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}

/* Accesibilidad: reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .smoke, .marquee .track { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .menu { display: none; }
  .hamburger { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-copy { text-align: center; }

  .menu.open {
    position: absolute; inset: 64px 0 auto 0; display: grid; gap: .8rem; padding: 1rem; background: #070708; border-bottom: 1px solid var(--line);
  }
}
