/* ===== Resets & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff6b00;
  --primary-dark: #e85d00;
  --accent: #ffb400;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e6e9ee;
  --paper: #ffffff;
  --bg-soft: #f6f4f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 39, 51, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: #dfe7ee;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar__inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__socials { margin-left: auto; display: flex; gap: 4px; }
.topbar__socials a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  font-size: 0.8rem; transition: .2s;
}
.topbar__socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { display: grid; place-items: center; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-size: 1.05rem; letter-spacing: .02em; }
.logo__text em { font-style: normal; color: var(--primary); font-weight: 800; letter-spacing: .28em; font-size: .78rem; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; transition: .2s; }
.nav a:hover { background: var(--bg-soft); }
.nav .nav__cta { background: var(--primary); color: #fff; }
.nav .nav__cta:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,180,0,.18), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(255,107,0,.14), transparent 50%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.hero__eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero__lead { margin: 18px 0 28px; font-size: 1.08rem; color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__points { display: flex; flex-direction: column; gap: 8px; }
.hero__points li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }

.hero__media { position: relative; }

/* canvas de pintura */
.hero__canvas {
  position: relative; height: 460px; border-radius: 24px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd9a0, #ffb460 40%, #ff8a3d);
  box-shadow: var(--shadow);
}
.hero__canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero__fallback { position: absolute; inset: 0; }
.hero__swatch {
  position: absolute; width: 230px; height: 230px; border-radius: 50%;
  filter: blur(2px); mix-blend-mode: multiply;
}
.hero__swatch--a { background: #ff6b00; top: -30px; left: -40px; }
.hero__swatch--b { background: #ffb400; bottom: -50px; right: -30px; width: 300px; height: 300px; }
.hero__swatch--c { background: #e63956; bottom: 10px; left: 20px; width: 120px; height: 120px; }

.hero__badge {
  position: absolute; bottom: -18px; left: -22px;
  background: var(--ink); color: #fff; text-align: center;
  padding: 16px 20px; border-radius: 16px; line-height: 1.2;
  font-weight: 800; box-shadow: var(--shadow);
}
.hero__badge::first-line { color: var(--accent); }

/* ===== Marquee ===== */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 12px 0; }
.marquee__track { display: flex; gap: 40px; white-space: nowrap; animation: scroll 30s linear infinite; width: max-content; }
.marquee__track span { font-weight: 800; letter-spacing: .14em; font-size: .9rem; opacity: .85; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--tint { background: var(--bg-soft); }
.section__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section__sub { color: var(--muted); }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(28,39,51,.06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card__body { padding: 18px; }
.card__body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: .93rem; }

.card--flat { padding: 26px; box-shadow: none; }
.card--flat:hover { transform: translateY(-4px); }
.card__num { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.card--flat h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card--flat p { color: var(--muted); font-size: .95rem; }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
  font-size: .85rem; font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0;
  color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}
.lightbox[hidden] { display: none; }

/* ===== Video ===== */
.section--video { background: var(--ink); }
.section--video .section__head h2,
.section--video .section__sub { color: #fff; }
.section--video .eyebrow { color: var(--accent); }
.video-wrap {
  max-width: 880px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); aspect-ratio: 16 / 9; background: #000;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video__hint { text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; margin-top: 16px; }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 420px; object-fit: cover; }
.about__text p { margin-bottom: 16px; color: var(--muted); }
.about__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.about__features div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.about__features strong { display: block; font-size: 1.6rem; color: var(--primary); }
.about__features span { color: var(--muted); font-size: .85rem; }

/* Ubicación */
.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; margin-top: 40px; }
.location__info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.location__info h3 { margin-bottom: 16px; font-size: 1.2rem; }
.location__info p { margin-bottom: 14px; color: var(--muted); }
.location__info a { font-weight: 700; color: var(--primary); }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(.9); }

/* ===== Value ===== */
.value__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; transition: transform .25s;
}
.value__item:hover { transform: translateY(-4px); }
.value__item > span {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--bg-soft); color: var(--primary); font-weight: 800; font-size: 1.3rem;
}
.value__item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.value__item p { color: var(--muted); font-size: .9rem; }

/* ===== Contacto ===== */
.section--contact { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.section--contact .eyebrow { color: #ffe3c7; }
.section--contact .section__head h2 { color: #fff; }
.section--contact .section__sub { color: rgba(255,255,255,.9); }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact__info {
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border-radius: var(--radius); padding: 28px; color: #fff;
}
.contact__info h3 { margin-bottom: 18px; }
.contact__info ul li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .98rem; }
.contact__info ul li span { font-size: 1.2rem; }
.contact__social-label { margin: 20px 0 10px; font-weight: 700; }
.topbar__socials--lg a { width: auto; padding: 0 12px; height: 34px; font-weight: 700; color: #fff; }
.contact__form {
  background: #fff; border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font: inherit; font-size: .97rem; background: var(--bg-soft); outline: none;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { border-color: var(--primary); background: #fff; }
.btn--full { width: 100%; justify-content: center; }
.contact__form-note { color: #2e7d32; font-weight: 700; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  border: 0; cursor: pointer; transition: .2s; text-align: center;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c6d0da; padding: 44px 0 30px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer .logo__text strong { color: #fff; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: .92rem; color: #dfe7ee; }
.footer__nav a:hover { color: var(--accent); }
.footer__meta { font-size: .85rem; color: #8b98a5; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; width: 100%; }
.footer__meta p { margin-bottom: 4px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media img { height: 300px; }
  .location { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar__item:nth-of-type(3) { display: none; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(255,255,255,.98); transform: translateX(100%); transition: transform .3s;
    z-index: 60;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.2rem; padding: 12px; }
  .nav-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; padding: 48px 0; }
  .hero__canvas { height: 340px; }
  .hero__badge { left: 10px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 54px 0; }
  .about__features { grid-template-columns: repeat(3, 1fr); }
}