:root {
  --blue: #0061A3;
  --blue-dark: #003558;
  --salmon: #FFA28E;
  --sand: #E1DED7;
  --brown: #6F6259;
  --text: #3A3A3A;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h2 { margin: 0 0 20px; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; line-height: 1.6; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.salmon { color: var(--salmon); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 35px;
  background: var(--blue);
  color: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 15px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); }
.btn-block { width: 100%; padding: 14px 20px; }
.btn .ico { width: 20px; height: 15px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--blue);
  transition: background-color .3s ease;
}
.site-header.is-top { background: transparent; }
.site-header.is-top.menu-open { background: var(--blue); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.logo img { width: 128px; height: auto; }
.main-nav { display: flex; gap: 60px; }
.main-nav a { color: #fff; text-decoration: none; font-size: 16px; transition: color .2s; }
.main-nav a:hover { color: var(--salmon); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { background: #000; line-height: 0; }
.hero-video { width: 100%; height: auto; }
.hero-mobile { display: none; }

/* ---------- Quienes ---------- */
.quienes {
  background: var(--blue) url("../img/img1-1.webp") no-repeat bottom right / 50% auto;
  color: #fff;
}
.quienes-text { width: 50%; padding: 100px 0; }
.quienes h2 { font-size: 32px; max-width: 420px; }
.quienes p { font-size: 17px; font-weight: 300; max-width: 496px; }
.quienes p b { font-weight: 700; }
.quienes p.mt { margin-top: 1.6em; }

/* ---------- Desarrollo destacado ---------- */
.section-title { color: var(--blue); font-size: 34px; line-height: 1.2; margin: 0; text-align: center; }
.destacado .section-title { padding: 80px 0 50px; }
.desarrollos .section-title { padding: 90px 0 40px; }
.destacado-banner {
  display: flex;
  background: url("../img/banner1.jpg") center / cover no-repeat;
}
.destacado-spacer { width: 36%; }
.destacado-text { width: 64%; padding: 9% 0 9% 12%; color: #fff; }
.destacado-text h2 { font-size: 34px; letter-spacing: 2px; max-width: 430px; }
.destacado-text p { font-size: 16px; max-width: 511px; }
.destacado-video { position: relative; background: #000; }
.destacado-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer; }
.video-overlay {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
  display: grid; place-items: center;
  transition: opacity .3s ease;
}
.video-overlay.is-hidden { opacity: 0; pointer-events: none; }

.features { background: var(--sand); padding: 60px 0 40px; }
.features-grid {
  list-style: none; margin: 0 auto 40px; padding: 0 20px 0 172px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column;
  gap: 35px 40px; max-width: 1300px;
}
.features-grid li {
  display: flex; align-items: center; gap: 20px;
  font-family: "Public Sans", sans-serif; font-size: 21px; color: var(--brown);
}
.features-grid img { width: 36px; height: 36px; object-fit: contain; flex: none; }

/* ---------- Slider ---------- */
.desarrollos { padding-bottom: 70px; }
.slider { position: relative; padding: 0 70px 40px; max-width: 1130px; margin: 0 auto; }
.slides { position: relative; }
.slide { display: none; }
.slide.is-active { display: block; animation: fade .5s ease; }
.slide-img { width: 100%; height: auto; }
.slide-row { display: flex; gap: 30px; margin-top: 30px; }
.slide-text { width: 55%; }
.slide-text p { font-size: 17px; }
.slide-side { width: 45%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 20px; }
.slide-logo { width: 184px; height: auto; }
.slider-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.slider-arrow img { width: 100%; height: 100%; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid var(--blue); background: transparent; cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: var(--blue); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Studios ---------- */
.studios {
  min-height: 600px; display: flex; align-items: center;
  background: url("../img/banner-inst.webp") center / cover no-repeat;
}
.studios-text { width: 42%; padding: 60px 0; }
.studios-text img { width: 184px; height: auto; margin-bottom: 25px; }
.studios h2 { color: var(--blue); font-size: 38px; font-weight: 700; line-height: 1; max-width: 428px; }
.studios p { font-size: 26px; line-height: 1.2; margin-bottom: 30px; }

/* ---------- Contacto ---------- */
.contacto-title { color: var(--text); font-size: 32px; line-height: 1.1; padding: 80px 0 30px; margin: 0; text-align: center; }
.contacto-title b { color: var(--blue); }
.contacto-banner {
  background: url("../img/banner-contact.webp") center / cover no-repeat;
  min-height: 620px; display: flex; align-items: center;
}
.contacto-inner { display: flex; align-items: stretch; max-width: none; padding: 0; min-height: 620px; }
.contacto-claim { width: 50%; display: flex; align-items: center; justify-content: center; text-align: center; }
.contacto-claim h2 { color: #fff; font-size: 40px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.contacto-claim mark { padding: 0 15px; background: var(--salmon); color: #fff; }
.contacto-form { width: 50%; padding: 60px 20px 60px 60px; display: flex; flex-direction: column; justify-content: center; }
.contacto-lead { font-size: 26px; line-height: 1.2; max-width: 178px; margin-bottom: 60px; }

#contact-form { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.field { width: 100%; padding: 0 20px; margin-bottom: 15px; }
.field.half { width: 50%; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 10px; background: #fff;
  padding: 10px 14px; font: 15px "Lato", sans-serif; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { width: 100%; padding: 0 20px; margin: 0; font-size: 16px; min-height: 1.6em; }
.form-msg.ok { color: #1d7a3a; }
.form-msg.error { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 45% 15% 25% 15%; padding-top: 40px; padding-bottom: 20px; }
.f-logo img { width: 200px; height: auto; }
.site-footer h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 2px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { font-weight: 300; line-height: 1.6; }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.socials svg { width: 16px; height: 16px; fill: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.3); padding: 15px 0; font-size: 13px; font-weight: 300; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.85); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .features-grid { padding-left: 60px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contacto-form { padding-left: 30px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  html { scroll-padding-top: 70px; }
  .header-inner { min-height: 70px; }
  .logo img { width: 100px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #A9E2FC;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav a { color: var(--blue); font-weight: 600; text-align: center; padding: 15px; }
  .main-nav a:hover { color: var(--blue); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-desktop { display: none; }
  .hero-mobile { display: block; }

  .quienes { background-position: top center; background-size: 100% auto; padding-bottom: 40px; }
  .quienes-text { width: 100%; padding: calc(103vw + 20px) 0 0; text-align: center; }
  .quienes h2, .quienes p { margin-left: auto; margin-right: auto; }
  .quienes h2 { font-size: 26px; }

  .section-title { font-size: 28px; }
  .destacado .section-title { padding: 60px 0 25px; }
  .destacado-banner { flex-direction: column; background-image: url("../img/backquienes.webp"); background-position: top center; }
  .destacado-spacer { width: 100%; height: 60vw; }
  .destacado-text { width: 100%; padding: 40px 20px 60px; text-align: center; }
  .destacado-text h2 { font-size: 26px; margin: 0 auto 20px; }
  .destacado-text p { margin: 0 auto 1.5em; }

  .features { padding: 40px 0 30px; }
  .features-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding: 0 20px; gap: 25px; }
  .features-grid li { flex-direction: column; text-align: center; gap: 10px; font-size: 18px; }

  .slider { padding: 0 0 40px; }
  .slide-row { flex-direction: column; gap: 25px; }
  .slide-text, .slide-side { width: 100%; }
  .slide-text { text-align: center; }
  .slide-text p { font-size: 14px; }
  .slide-side { align-items: center; }
  .slide-logo { width: 150px; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }

  .studios { background: #fff url("../img/banner-instm.webp") top center / 100% auto no-repeat; align-items: flex-end; min-height: 0; }
  .studios-text { width: 100%; padding: 85vw 0 60px; text-align: center; }
  .studios-text img { margin: 0 auto 20px; }
  .studios h2 { font-size: 30px; margin: 0 auto 20px; }
  .studios p { font-size: 20px; }

  .contacto-title { font-size: 26px; text-align: center; padding-top: 60px; }
  .contacto-banner { background-image: url("../img/banner-contactm-1.webp"); background-position: top center; background-size: 100% auto; background-color: #EFEFEF; }
  .contacto-inner { flex-direction: column; align-items: stretch; }
  .contacto-inner { min-height: 0; padding: 0 20px; }
  .contacto-claim { width: 100%; min-height: 62vw; }
  .contacto-claim h2 { font-size: 34px; margin: 0; }
  .contacto-form { width: 100%; padding: 40px 0 60px; }
  .contacto-lead { max-width: none; text-align: center; font-size: 22px; margin-bottom: 25px; }
  .field.half { width: 100%; }

  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .f-logo img { margin: 0 auto; }
  .socials { justify-content: center; }
  .footer-bottom { text-align: center; }
}
