/* =========================================================
   NEROL MEDIA — LÍNEA GRÁFICA
   Naranja de marca #FF6200 · Negro #121212 · Crema #F3EFE6 · Dorado #B8975A
   ========================================================= */
:root {
  --orange: #ff6200;
  --orange-soft: #ff7a2a;
  --black: #0e0e0e;
  --bg: #121212;
  --bg-2: #181818;
  --card: #1d1d1d;
  --line: #2a2a2a;
  --cream: #f3efe6;
  --muted: #a8a49c;
  --gold: #b8975a;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 18ch; }
h2 em, h1 em { font-style: normal; color: var(--orange); }
p { margin: 0 0 1em; }
::selection { background: var(--orange); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1em 1.8em; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: #fff; font-weight: 700; font-size: .95rem; font-family: inherit;
  cursor: pointer; transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 98, 0, .7); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243, 239, 230, .35); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: none; }
.btn--sm { padding: .6em 1.3em; font-size: .85rem; }
.btn--full { width: 100%; }
.btn:focus-visible, .filter:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(14, 14, 14, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .95rem; line-height: 1.05; }
.nav__brand img { width: 48px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: .92rem; }
.nav__links a:not(.btn) { position: relative; opacity: .85; transition: opacity .2s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 1rem 16px 2rem;
    background: rgba(14, 14, 14, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__links .btn { margin-top: 1.2rem; width: 100%; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 140px;
  background: radial-gradient(ellipse at 70% 110%, rgba(255, 98, 0, .14), transparent 60%), var(--bg);
}
#waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.8rem, 8.5vw, 6.6rem); margin-bottom: 1.6rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(243, 239, 230, .4); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--black); overflow: hidden; padding: 1.3rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--cream); }
.marquee i { width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECCIONES ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- SERVICIOS ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: 2.4rem 2rem 2.6rem; position: relative; transition: background .4s; }
.service:hover { background: var(--card); }
.service__num { position: absolute; top: 1.6rem; right: 1.8rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.service__icon { width: 48px; height: 48px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 1.6rem; transition: transform .4s var(--ease); }
.service:hover .service__icon { transform: translateY(-4px) scale(1.06); }
.service h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; }
.service--cta { background: var(--orange); display: flex; flex-direction: column; justify-content: flex-end; }
.service--cta:hover { background: var(--orange-soft); }
.service--cta p { color: rgba(255, 255, 255, .85); }
.service__arrow { margin-top: 1.4rem; font-weight: 700; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- PORTAFOLIO ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filter {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .55em 1.2em; cursor: pointer; transition: all .25s;
}
.filter:hover { color: var(--cream); border-color: var(--muted); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid .work:nth-child(5n+1) { grid-row: span 2; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .grid .work:nth-child(5n+1) { grid-row: auto; } }

.work {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); isolation: isolate;
  animation: workIn .5s var(--ease) both;
}
@keyframes workIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.work__media { position: absolute; inset: 0; z-index: -1; transition: transform .8s var(--ease); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 120%, rgba(255, 98, 0, .45), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #222, #141414);
}
.work__ph img { width: 34%; max-width: 120px; opacity: .22; filter: grayscale(.2); }
.work:hover .work__media { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 60%); }
.work__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.work__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .4rem; }
.work__info h3 { font-size: 1.15rem; }
.work__info p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.work__play {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 98, 0, .92); display: grid; place-items: center; transform: scale(.85); opacity: .9;
  transition: transform .35s var(--ease), opacity .35s;
}
.work__play svg { width: 16px; fill: #fff; margin-left: 3px; }
.work:hover .work__play { transform: scale(1); opacity: 1; }
.work__type { position: absolute; top: 1.2rem; left: 1.2rem; font-size: .7rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }

.more { display: flex; justify-content: center; margin-top: 2.4rem; }
.more [hidden], .filter[hidden] { display: none; }

/* ---------- CLIENTES ---------- */
.clients-section { padding-bottom: 0; }
.section__head--center { text-align: center; }
.section__head--center h2 { margin-inline: auto; }
.clients {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.client {
  background: var(--bg); height: 150px; display: grid; place-items: center; padding: 1.6rem 1.8rem;
  position: relative; transition: background .4s;
}
.client::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; margin-left: -20px;
  background: var(--orange); transform: scaleX(0); transition: transform .4s var(--ease);
}
.client img { max-width: 100%; max-height: calc(54px * var(--s, 1)); width: auto; height: auto; object-fit: contain; opacity: .7; transition: opacity .4s, transform .4s var(--ease); }
.client img.is-tall { max-height: 84px; }
.client:hover { background: var(--card); }
.client:hover img { opacity: 1; transform: scale(1.04); }
.client:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client { height: 110px; padding: 1.2rem 1.4rem; }
  .client img { max-height: calc(40px * var(--s, 1)); }
  .client img.is-tall { max-height: 64px; }
}

/* ---------- NOSOTROS ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__text h2 { margin-bottom: 1.6rem; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 2rem 1.6rem; }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: .5rem; }
.stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.process { margin-top: clamp(4rem, 8vw, 7rem); }
.process__title { font-size: 1.5rem; margin-bottom: 2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 1.4rem; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--orange); }
.step span { font-size: .8rem; font-weight: 700; color: var(--orange); }
.step h4 { font-size: 1.2rem; margin: .5rem 0 .6rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* ---------- TESTIMONIOS ---------- */
.testimonials .section__head { margin-bottom: 2rem; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.quote::before { content: "“"; position: absolute; top: .4rem; right: 1.4rem; font-size: 5rem; line-height: 1; color: var(--orange); opacity: .35; font-weight: 800; }
.quote p { font-size: 1.05rem; font-weight: 500; }
.quote footer { font-size: .85rem; color: var(--muted); }
.quote footer strong { color: var(--cream); display: block; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- NOTICIAS ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post {
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .4s var(--ease), border-color .4s; text-align: left; font: inherit; color: inherit; padding: 0;
}
.post:hover { transform: translateY(-6px); border-color: rgba(255, 98, 0, .5); }
.post__cover {
  aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 1.2rem;
  background: radial-gradient(ellipse at 80% 120%, rgba(255, 98, 0, .55), transparent 60%), linear-gradient(150deg, #262626, #151515);
}
.post__cover span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .5); padding: .35em .8em; border-radius: 999px; }
.post__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post time { font-size: .8rem; color: var(--gold); margin-bottom: .6rem; }
.post h3 { font-size: 1.2rem; margin-bottom: .7rem; line-height: 1.25; }
.post p { color: var(--muted); font-size: .92rem; flex: 1; }
.post__more { color: var(--orange); font-weight: 700; font-size: .88rem; }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } }

/* ---------- CONTACTO ---------- */
.section--contact { background: radial-gradient(ellipse at 0% 100%, rgba(255, 98, 0, .16), transparent 55%), var(--black); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__info h2 { margin-bottom: 1.2rem; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; }
.contact__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--muted); font-size: .9rem; }
.contact__list a, .contact__list b { font-weight: 600; text-align: right; word-break: break-word; }
.contact__list a:hover { color: var(--orange); }
.socials { display: flex; gap: .7rem; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: all .3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.socials svg { width: 18px; height: 18px; fill: var(--cream); }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--cream); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .85em 1em; transition: border-color .25s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form .is-invalid { border-color: #ff4d4d; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--black); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { width: 64px; height: auto; }
.footer__brand strong { display: block; letter-spacing: .06em; }
.footer__brand span { font-size: .85rem; color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: flex-end; font-size: .9rem; color: var(--muted); }
.footer__links a:hover { color: var(--orange); }
.footer__copy { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } .footer__links { justify-content: flex-start; } }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; fill: #fff; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .85); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(960px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transform: translateY(20px) scale(.98); transition: transform .4s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--orange); }
.modal__video { aspect-ratio: 16 / 9; background: #000; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__video--ig { aspect-ratio: auto; height: min(78vh, 760px); display: flex; justify-content: center; background: #000; }
.modal__video--ig iframe { width: min(420px, 100%); height: 100%; background: #fff; }
.modal__video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.modal__video img { width: 100%; height: 100%; object-fit: contain; }
.modal__empty { display: grid; place-items: center; text-align: center; gap: .6rem; padding: 2rem; color: var(--muted); height: 100%; }
.modal__empty img { width: 90px; opacity: .6; }
.modal__text { padding: clamp(1.4rem, 3vw, 2.4rem); }
.modal__text .work__tag { margin-bottom: .6rem; }
.modal__text h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .8rem; }
.modal__text p { color: var(--muted); }

/* ---------- ANIMACIÓN DE ENTRADA ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
