/* ============================================================
   ONEROOF — Real Estate Marketing
   ============================================================ */

:root {
  --burgundy:    #3D0010;
  --burgundy-dk: #2A0009;
  --red:         #FF3D2E;
  --red-light:   #FF6A5E;
  --white:       #FFFFFF;
  --off-white:   #F5F3F0;
  --gray-100:    #F0EEEB;
  --gray-300:    #C5C0BA;
  --gray-600:    #7A7470;
  --dark:        #1A1210;
  --font:        'Inter', sans-serif;
  --nav-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}
.btn--large { padding: 18px 48px; font-size: 17px; }

/* ── SECTION TITLES ── */
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--burgundy);
}
.section-title em { font-style: normal; color: var(--red); }
.section-title--center { text-align: center; }
.section-title--light { color: var(--white); }

.section-intro {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: var(--burgundy-dk);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 101;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-img {
  height: 28px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--red-light); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 103;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(41, 18, 25, 1) 0%, rgba(41, 18, 25, 1) 42%, rgba(41, 18, 25, 0.9) 58%, rgba(41, 18, 25, 0.72) 72%, rgba(41, 18, 25, 0.92) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(255,61,46,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 -3% 0 45%;
  background:
    linear-gradient(180deg, rgba(41, 18, 25, 0.22) 0%, rgba(41, 18, 25, 0.08) 100%),
    url('../img/oneroof_inicio.jpg') calc(100% + 24px) center / contain no-repeat;
  opacity: 0.96;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 12%, rgba(0,0,0,0.34) 26%, rgba(0,0,0,0.72) 40%, #000 56%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 12%, rgba(0,0,0,0.34) 26%, rgba(0,0,0,0.72) 40%, #000 56%, #000 100%);
  pointer-events: none;
}
.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 24px;
}
.hero__logo {
  width: clamp(336px, 49vw, 672px);
  margin-bottom: 40px;
}
.hero__desc {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--red));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ── EL PROBLEMA ── */
.problema {
  padding: 120px 0;
  background:
    linear-gradient(90deg, rgba(41, 18, 25, 0.92) 0%, rgba(41, 18, 25, 0.82) 44%, rgba(41, 18, 25, 0.62) 100%),
    url('../img/hombre_mirando_skyline_bg.jpg') center center / cover no-repeat;
}
.problema__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.problema__text .section-title {
  margin-bottom: 28px;
  color: var(--white);
}
.problema__text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
}
.problema__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.problema__card {
  background: rgba(255,255,255,0.9);
  border-left: 3px solid var(--red);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.problema__card-icon {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  opacity: 0.4;
  flex-shrink: 0;
  width: 44px;
}
.problema__card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

/* ── QUÉ ES ── */
.que-es {
  padding: 120px 0;
  background: var(--white);
}
.que-es__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
.que-es__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 8px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.que-es__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--burgundy);
  margin-bottom: 28px;
}
.que-es__title em { font-style: normal; color: var(--red); }
.que-es__content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.que-es__stats {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.que-es__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 220px;
}
.que-es__stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
}
.que-es__stat-text {
  font-size: 14px;
  color: var(--gray-600);
  max-width: 220px;
  line-height: 1.5;
}

/* ── QUIÉNES ── */
.quienes {
  padding: 120px 0;
  background: var(--gray-100);
}
.quienes .section-title { margin-bottom: 16px; }
.quienes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.quienes__card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.quienes__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.quienes__card-brand {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.quienes__card-brand.on3      { color: var(--red); }
.quienes__card-brand.credo    { color: var(--red); }
.quienes__card-brand.areadesign { color: var(--red); }
.quienes__card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.quienes__card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ── SERVICIOS ── */
.servicios {
  padding: 120px 0;
  background: var(--burgundy);
}
.servicios .section-title { margin-bottom: 48px; }
.servicios__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.servicios__tab {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s;
  white-space: nowrap;
}
.servicios__tab:hover { color: var(--white); }
.servicios__tab.active {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}
.servicios__panel { display: none; }
.servicios__panel.active { display: block; }
.servicios__panel-header {
  margin-bottom: 40px;
}
.servicios__panel-header h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.servicios__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servicio-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 28px;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.servicio-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,61,46,0.4);
}
.servicio-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--red-light);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.servicio-item p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

/* ── MÉTODO ── */
.metodo {
  padding: 120px 0;
  background: var(--white);
}
.metodo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.metodo__subtitle {
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  margin: 20px 0 24px;
  line-height: 1.3;
}
.metodo__left p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.metodo__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}
.metodo__item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.metodo__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  opacity: 0.25;
  flex-shrink: 0;
  line-height: 1;
  width: 48px;
}
.metodo__item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.metodo__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ── PARA QUIÉN ── */
.para-quien {
  padding: 120px 0;
  background: var(--red);
}
.para-quien__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.para-quien__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  line-height: 1.1;
}
.para-quien__text {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
}

/* ── CLIENTES ── */
.clientes {
  padding: 120px 0;
  background: var(--burgundy-dk);
}
.clientes .section-title { margin-bottom: 56px; }
.clientes__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.cliente-logo {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 28px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cliente-logo:hover {
  background: rgba(255,61,46,0.15);
  color: var(--white);
}

/* ── CONTACTO ── */
.contacto {
  padding: 120px 0;
  background: var(--off-white);
}
.contacto__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contacto__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--burgundy);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.contacto__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 40px;
}
.contacto__form {
  margin-top: 40px;
  padding: 40px;
  background: var(--white);
  border: 1px solid rgba(61, 0, 16, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(61, 0, 16, 0.08);
  text-align: left;
}
.contacto__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contacto__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contacto__field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.contacto__field input,
.contacto__field textarea {
  width: 100%;
  border: 1px solid rgba(61, 0, 16, 0.14);
  border-radius: 8px;
  background: #fcfbfa;
  padding: 16px 18px;
  font: inherit;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contacto__field input:focus,
.contacto__field textarea:focus {
  outline: none;
  border-color: rgba(255, 61, 46, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 61, 46, 0.08);
  background: var(--white);
}
.contacto__field textarea {
  resize: vertical;
  min-height: 160px;
}
.contacto__field--full {
  grid-column: 1 / -1;
}
.contacto__captcha-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
}
.contacto__submit {
  margin-top: 24px;
}
.contacto__honey {
  position: absolute;
  left: -9999px;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 48px 0;
}
.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
}
.footer__logo-img {
  height: 36px;
  width: auto;
}
.footer__partners {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.footer__dot { color: var(--red); }
.footer__partners a {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  transition: color 0.2s;
}
.footer__partners a:hover { color: var(--red-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── MOBILE NAV MENU ── */
@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--burgundy-dk);
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    align-items: flex-start;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 102;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links a { font-size: 18px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .servicios__items { grid-template-columns: repeat(2, 1fr); }
  .clientes__grid   { grid-template-columns: repeat(4, 1fr); }
  .quienes__grid    { grid-template-columns: 1fr 1fr; }
  .quienes__grid > :last-child { grid-column: span 2; max-width: 460px; }
  .hero::after {
    inset: 0 -2% 0 53%;
    opacity: 0.82;
    background:
      linear-gradient(180deg, rgba(41, 18, 25, 0.22) 0%, rgba(41, 18, 25, 0.08) 100%),
      url('../img/oneroof_inicio.jpg') calc(100% + 12px) center / contain no-repeat;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .problema__grid,
  .que-es__grid,
  .metodo__grid { grid-template-columns: 1fr; gap: 40px; }
  .que-es__grid { grid-template-columns: 1fr; }
  .que-es__label { position: static; padding-top: 0; }
  .servicios__items { grid-template-columns: 1fr; }
  .servicios__tabs { flex-direction: column; }
  .quienes__grid { grid-template-columns: 1fr; }
  .quienes__grid > :last-child { grid-column: auto; max-width: 100%; }
  .clientes__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { flex-direction: column; gap: 24px; text-align: center; }
  .que-es__stats { gap: 24px; }
  .contacto__form {
    padding: 24px;
  }
  .contacto__form-grid {
    grid-template-columns: 1fr;
  }
  .hero::after {
    inset: 16% -12% 8% 42%;
    opacity: 0.32;
    background:
      linear-gradient(180deg, rgba(41, 18, 25, 0.18) 0%, rgba(41, 18, 25, 0.1) 100%),
      url('../img/oneroof_inicio.jpg') right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.24) 18%, rgba(0,0,0,0.72) 42%, #000 68%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.24) 18%, rgba(0,0,0,0.72) 42%, #000 68%, #000 100%);
  }
}

@media (max-width: 480px) {
  .clientes__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero::after { opacity: 0.22; }
}
