/* ==========================================================
   RemicStudio · Diseño web — web pública
   Familia de marca Remic (RemicFit): negro, dorado y Sora.
   El panel de admin usa styles.css.
   ========================================================== */
:root {
  --bg: #080808;
  --card: #111111;
  --card-2: #171717;
  --text: #e8e8e8;
  --white: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --yellow: #e6b422;
  --gold-grad: linear-gradient(135deg, #f2d266, #b8860b);
  --accent: #e6b422;
  --accent-2: #e6b422;
  --display: "Sora", system-ui, sans-serif;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--white); line-height: 1.15; }
p { margin: 0; }
::selection { background: var(--yellow); color: #000; }
.y { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Degradados de color del fondo (fijos detrás de todo) */
.fondo { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 560px at 50% -12%, rgba(230, 180, 34, .22), transparent 70%),
  radial-gradient(700px 520px at -8% 105%, rgba(176, 60, 14, .30), transparent 70%),
  radial-gradient(760px 560px at 108% 60%, rgba(184, 134, 11, .14), transparent 70%),
  #080808; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }

/* ---------- Títulos de sección con rótulo «fantasma» ---------- */
.titulo { position: relative; margin-bottom: 56px; }
.titulo__fantasma {
  position: absolute; left: -4px; top: -.58em; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 118px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
}
.titulo h2 { position: relative; z-index: 1; font-size: clamp(30px, 3.6vw, 44px); max-width: 640px; }
.titulo--fila { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.titulo--fila p { color: var(--muted); text-align: right; position: relative; z-index: 1; }
.titulo--centro { text-align: center; }
.titulo--centro .titulo__fantasma { left: 50%; transform: translateX(-50%); }
.titulo--centro h2 { margin: 0 auto; }

/* ---------- Botones píldora ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 8px 8px 26px; min-height: 54px;
  border-radius: 50px; border: 1px solid transparent; font: 500 15.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn__flecha { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__flecha { transform: rotate(45deg); }
.btn__flecha svg { width: 16px; height: 16px; }
.btn--amarillo { background: var(--gold-grad); color: #000; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(230, 180, 34, .6); }
.btn--amarillo .btn__flecha { background: #000; color: #f2d266; }
.btn--negro { background: #000; color: #fff; }
.btn--negro .btn__flecha { background: var(--gold-grad); color: #000; }
.btn--borde { border-color: var(--line-2); color: #fff; padding: 8px 26px; }
.btn--borde:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Cabecera ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(0, 0, 0, .78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 28px; }
.logo { display: block; flex: none; text-decoration: none; }
.marca { display: flex; align-items: center; gap: 14px; }
.marca img { height: 30px; width: auto; }
.marca i { display: none; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__texto b { font-family: var(--display); font-weight: 800; font-size: 21px; color: #f5f5f5; letter-spacing: .01em; white-space: nowrap; }
.marca__texto b span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca__texto small { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.marca--pie img { height: 38px; }
.marca--pie i { height: 46px; }
.marca--pie .marca__texto b { font-size: 24px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: #fff; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.activo { color: var(--yellow); }
.nav a.btn { color: #000; min-height: 48px; font-size: 14.5px; padding: 6px 6px 6px 22px; }
.nav a.btn .btn__flecha { width: 34px; height: 34px; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--gold-grad); color: #000; cursor: pointer; place-items: center; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Portada ---------- */
.hero { padding: 150px 0 70px; position: relative; }
.hero__fila { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.hero__lateral { padding-top: 10px; display: grid; gap: 30px; }
.garabato { width: 92px; height: auto; color: #fff; opacity: .85; }
.dato b { display: block; font-family: var(--display); font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.dato b span { color: var(--yellow); }
.dato small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.hero h1 { font-size: clamp(36px, 4.9vw, 64px); text-transform: uppercase; line-height: 1.08; letter-spacing: -.01em; max-width: 980px; }

.bento { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 54px; }
.tarjeta-intro {
  position: relative; overflow: hidden; border-radius: 28px; padding: 40px; border: 1px solid var(--line);
  background: linear-gradient(140deg, #2a2108 0%, #141008 45%, #0b0b0b 100%); min-height: 330px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tarjeta-intro p { font-size: 17px; line-height: 1.65; color: #e9e9e9; max-width: 440px; position: relative; z-index: 1; }
.tarjeta-intro p b { color: var(--yellow); font-weight: 600; }
.tarjeta-intro__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }
/* Forma 3D de colores, hecha solo con CSS */
.blob {
  position: absolute; right: -70px; top: -80px; width: 210px; height: 210px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 55%),
    conic-gradient(from 210deg, #b8860b, #f2d266, #fff3c4, #e6b422, #8a5a00, #c2410c, #b8860b);
  filter: blur(.6px) saturate(1.15); opacity: .92; animation: blob 12s ease-in-out infinite alternate;
  box-shadow: 0 30px 60px -20px rgba(255, 46, 99, .35);
}
@keyframes blob { to { border-radius: 58% 42% 38% 62% / 56% 61% 39% 44%; transform: rotate(40deg) scale(1.05); } }
.tarjeta-foto { position: relative; overflow: hidden; border-radius: 28px; background: var(--gold-grad); min-height: 330px; }
.tarjeta-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.tarjeta-foto__dato { position: absolute; right: 18px; bottom: 18px; z-index: 1; background: var(--gold-grad); color: #000; border-radius: 18px; padding: 14px 18px; }
.tarjeta-foto__dato b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; }
.tarjeta-foto__dato small { font-size: 12.5px; font-weight: 500; }
.tarjeta-foto__nombre { position: absolute; left: 18px; bottom: 18px; z-index: 1; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border-radius: 50px; padding: 9px 16px; font-size: 13px; font-weight: 500; }

/* ---------- Franja de servicios ---------- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; white-space: nowrap; background: rgba(0, 0, 0, .55); }
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 0 26px; display: inline-flex; align-items: center; gap: 52px; }
.marquee__track span::after { content: "✦"; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sobre__texto > p { color: var(--muted); font-size: 16px; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 34px; }
.mini div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.mini i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: #000; margin-bottom: 14px; font-style: normal; }
.mini i svg { width: 20px; height: 20px; }
.mini h3 { font-size: 19px; margin-bottom: 6px; }
.mini p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.sobre__foto { position: relative; }
.sobre__foto::before { content: ""; position: absolute; inset: 30px -18px -18px 30px; border-radius: 28px; background: var(--gold-grad); z-index: 0; }
.sobre__foto img { position: relative; z-index: 1; border-radius: 28px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 20%; }

/* ---------- Servicios ---------- */
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.servicio { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.servicio:hover { border-color: var(--yellow); transform: translateY(-6px); background: var(--card-2); }
.servicio__icono { width: 58px; height: 58px; border-radius: 50%; background: rgba(230, 180, 34, .12); color: var(--yellow); display: grid; place-items: center; margin-bottom: 24px; transition: background .3s, color .3s; }
.servicio:hover .servicio__icono { background: var(--gold-grad); color: #000; }
.servicio__icono svg { width: 26px; height: 26px; }
.servicio h3 { font-size: 21px; margin-bottom: 10px; }
.servicio p { color: var(--muted); font-size: 14.5px; }
.servicio--destacado { background: var(--gold-grad); border-color: var(--yellow); color: #000; display: flex; flex-direction: column; justify-content: space-between; }
.servicio--destacado:hover { background: var(--gold-grad); }
.servicio--destacado h3 { color: #000; font-size: 26px; }
.servicio--destacado p { color: #1a1a1a; }

/* ---------- Portfolio (lo genera functions/index.js) ---------- */
.work-group + .work-group { margin-top: 70px; }
.work-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.work-group__head h3 { font-size: 20px; }
.work-group__head p { color: var(--muted); font-size: 14.5px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.project { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 14px; transition: border-color .3s, transform .3s var(--ease); }
.project:hover { border-color: var(--yellow); transform: translateY(-6px); }
.project__img { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 11; background: var(--card-2); container-type: size; }
.project__img img { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 6s cubic-bezier(.45, .05, .35, 1); }
.project:hover .project__img img.is-tall { transform: translateY(calc(-100% + 100cqh)); }
.project:hover .project__img img:not(.is-tall) { transform: scale(1.04); transition-duration: .8s; }
.project__view { position: absolute; z-index: 2; right: 14px; top: 14px; background: var(--gold-grad); color: #000; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 50px; opacity: 0; transform: translateY(-6px); transition: .35s var(--ease); }
.project:hover .project__view { opacity: 1; transform: none; }
.project__meta { display: flex; align-items: center; gap: 12px; margin: 20px 8px 0; flex-wrap: wrap; }
.project__index { display: none; }
.project__meta h4 { font-size: 22px; flex: 1; }
.project__meta > span:last-child { font-size: 12.5px; font-weight: 500; color: #000; background: var(--gold-grad); padding: 5px 12px; border-radius: 50px; }
.project > p { margin: 10px 8px 8px; color: var(--muted); font-size: 14.5px; }
.link-arrow, .project__cta { display: none; }

.clientes { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: 22px; border: 1px dashed var(--line-2); }
.clientes h3 { font-size: 20px; }
.clientes p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Proceso ---------- */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; position: relative; }
.pasos::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.paso { position: relative; text-align: center; padding: 0 10px; }
.paso b { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 700; color: #000; background: var(--gold-grad); box-shadow: 0 0 0 8px #080808; }
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--muted); font-size: 14.5px; }
.promesa { margin-top: 56px; border-radius: 26px; padding: 34px 40px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.promesa h3 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; }
.promesa p { color: var(--muted); margin-top: 6px; }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq__img { position: relative; border-radius: 28px; overflow: hidden; }
.faq__img img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 20%; }
.faq__img div { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; padding: 18px 20px; }
.faq__img b { display: block; color: #fff; font-family: var(--display); font-size: 19px; }
.faq__img a { color: var(--yellow); text-decoration: none; font-size: 14px; font-weight: 500; }
.faq__lista { display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(230, 180, 34, .55); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 0; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-family: var(--display); font-size: 17.5px; font-weight: 600; color: #fff; }
.faq details[open] summary { color: var(--yellow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--yellow); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold-grad); color: #000; }
.faq details p { padding: 0 6px 22px 0; color: var(--muted); font-size: 15px; }

/* ---------- Llamada final + contacto ---------- */
.cta { position: relative; overflow: hidden; border-radius: 34px; background: var(--gold-grad); color: #000; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.cta h2 { color: #000; font-size: clamp(32px, 4.2vw, 54px); text-transform: uppercase; line-height: 1.05; }
.cta > div > p { margin-top: 18px; font-size: 16.5px; color: #1b1b1b; max-width: 460px; }
.cta__datos { display: grid; gap: 10px; margin-top: 30px; }
.cta__datos a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; font-size: 16px; }
.cta__datos svg { width: 20px; height: 20px; }
.form { background: #000; color: #fff; border-radius: 26px; padding: 30px; display: grid; gap: 14px; align-content: start; }
.form h3 { font-size: 22px; }
.form > p { color: var(--muted); font-size: 13.5px; margin-top: -6px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: #cfcfcf; }
.form input, .form textarea, .form select {
  font: 400 15.5px var(--font); padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #0d0d0d; color: #fff; width: 100%; outline: none; transition: border-color .2s;
}
.form select option { background: #0d0d0d; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--yellow); }
.form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; justify-content: space-between; }

/* ---------- Pie ---------- */
.footer { margin-top: 110px; padding: 64px 0 30px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .6); font-size: 14.5px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-block; text-decoration: none; }
.footer__grid p { margin-top: 18px; max-width: 300px; }
.footer h3 { font-size: 16px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--yellow); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--gold-grad); color: #000; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(230, 180, 34, .5); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 88px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0d; border: 1px solid var(--line); border-radius: 22px; padding: 10px 22px 22px;
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
  .nav a.btn { margin-top: 16px; border-bottom: 0; justify-content: space-between; min-height: 54px; }
  .servicios { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero__fila { grid-template-columns: 1fr; }
  .hero__lateral { grid-template-columns: auto auto; justify-content: start; align-items: end; order: 2; gap: 36px; }
  .bento, .sobre, .faq, .cta, .titulo--fila { grid-template-columns: 1fr; }
  .titulo--fila p { text-align: left; }
  .sobre__foto { max-width: 460px; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pasos::before { display: none; }
  .projects { grid-template-columns: 1fr; }
  .promesa { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 84px 0; }
  .hero { padding-top: 120px; }
  .garabato { display: none; }
  .marca__texto small { display: none; }
  .marca__texto b { font-size: 17px; }
  .marca img { height: 32px; }
  .marca i { height: 30px; }
  .tarjeta-intro { padding: 28px; }
  .tarjeta-intro__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .tarjeta-intro__ctas .btn--borde { justify-content: center; }
  .blob { width: 140px; height: 140px; right: -78px; top: -78px; opacity: .8; }
  .mini, .servicios, .pasos, .form__fila, .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 30px 22px; border-radius: 26px; }
  .form { padding: 22px; }
  .promesa { padding: 26px; }
}
