/* ─────────────────────────────────────────────────────
   MAVERICKROOM STUDIO — main.css
   ─────────────────────────────────────────────────────

   TIPOGRAFÍAS — VARIABLES
   ──────────────────────────────────────────────────────
   Para usar Adobe Fonts (Typekit), una vez hayas pegado la URL
   en Apariencia → Personalizar → Tipografías, sustituye los
   valores de --font-* por los nombres exactos de tus fuentes:

   Ej:
   --font-logo:     'bebas-neue-pro', sans-serif;
   --font-headline: 'recent-grotesk', sans-serif;
   --font-body:     'halyard-display', sans-serif;

   Los nombres exactos los encuentras en el panel de Adobe Fonts
   (use.typekit.net → tu proyecto → CSS Names)
   ───────────────────────────────────────────────────── */

:root {
  --black:  #0A0A0A;
  --white:  #F7F7F7;
  --yellow: #F5C400;

  /* Fallback Google Fonts — reemplaza cuando tengas Adobe Fonts */
  --font-logo:     'Bebas Neue', sans-serif;      /* Logo: MAVERICKROOM */
  --font-headline: 'Barlow Condensed', sans-serif; /* Titulares grandes  */
  --font-body:     'Jost', sans-serif;             /* Cuerpo y UI        */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILIDADES ──────────────────────────────────── */
.y { color: var(--yellow); }

.s-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.4);
  margin-bottom: 20px;
  display: block;
}

.headline {
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.93;
}
.headline.xl   { font-size: clamp(46px, 5vw, 70px); }
.headline.xxl  { font-size: clamp(52px, 5.5vw, 80px); }
.headline.on-dark { color: var(--white); }

.body-small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(10,10,10,0.55);
  margin-top: 18px;
}
.body-small.on-dark { color: rgba(247,247,247,0.45); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 15px 26px;
  text-decoration: none;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: .85; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(247,247,247,0.7);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-ghost::after { content: '→'; font-size: 15px; }
.btn-ghost:hover  { color: var(--yellow); }

/* ─── NAV ─────────────────────────────────────────── */
.mr-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--black);
  border-bottom: 1px solid rgba(247,247,247,0.06);
  transition: padding .3s;
}
.mr-nav.scrolled { padding-top: 14px; padding-bottom: 14px; }

.mr-logo { text-decoration: none; line-height: 1; }
.mr-logo__img  { height: 36px; width: auto; }
.mr-logo__text {
  display: block;
  font-family: var(--font-logo);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--white);
}
.mr-logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: rgba(247,247,247,0.5);
  margin-top: 3px;
}

.mr-nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Soporta tanto el menú hardcoded como wp_nav_menu */
.mr-nav__links li { margin: 0; padding: 0; }
.mr-nav__links a,
.mr-nav__links > li > a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,247,247,0.55);
  text-decoration: none;
  transition: color .2s;
  display: inline-block;
}
.mr-nav__links a:hover,
.mr-nav__links a.active,
.mr-nav__links .current-menu-item > a,
.mr-nav__links .current_page_item > a { color: var(--yellow); }
.nav-soon { opacity: .35; cursor: default; pointer-events: none; }
.nav-cta  { color: var(--yellow) !important; }

.mr-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mr-nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

/* ─── HERO ────────────────────────────────────────── */
.mr-hero {
  min-height: 100vh;
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;       /* columnas se estiran a 100vh */
  padding: 0;
  padding-top: 72px;          /* altura del nav */
  position: relative;
  overflow: hidden;
}

.mr-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;    /* texto centrado verticalmente */
  padding: 60px 64px;
  z-index: 2;
}

.mr-hero__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.mr-hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--yellow);
  flex-shrink: 0;
}
.mr-hero__label span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(247,247,247,0.5);
}

.mr-hero__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(68px, 7.5vw, 108px);
  line-height: 0.91;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}

.mr-hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(247,247,247,0.45);
  letter-spacing: 0.02em;
  margin-bottom: 44px;
}

.mr-hero__ctas {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.mr-hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;      /* David pegado al fondo */
  position: relative;
  overflow: hidden;
}

.mr-hero__image img {
  height: calc(100vh - 72px); /* llena exactamente la columna */
  width: 100%;
  object-fit: cover;
  object-position: center top; /* cabeza de David visible arriba */
  display: block;
}

.mr-hero__badge {
  position: absolute;
  top: 100px;
  right: 0;
  width: 96px;
  height: 96px;
  animation: mr-spin 22s linear infinite;
}
@keyframes mr-spin { to { transform: rotate(360deg); } }

/* ─── PROBLEMA ────────────────────────────────────── */
.mr-problema {
  background: var(--white);
  color: var(--black);
  padding: 100px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.mr-problema__list { list-style: none; }

.pain-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.pain-item:first-child { border-top: 1px solid rgba(10,10,10,0.08); }

.pain-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.pain-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.55;
}

/* ─── SERVICIOS ───────────────────────────────────── */
.mr-servicios {
  background: var(--black);
  color: var(--white);
  padding: 100px 64px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.srv-item {
  padding: 30px 24px;
  border: 1px solid rgba(247,247,247,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s, background .25s;
}
.srv-item:hover {
  border-color: rgba(245,196,0,0.4);
  background: rgba(245,196,0,0.03);
}

.srv-icon {
  width: 22px;
  height: 22px;
  stroke: var(--yellow);
  fill: none;
}

.srv-name {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 4px;
}

.srv-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ─── FORMAS DE TRABAJAR ──────────────────────────── */
.mr-formas {
  background: var(--white);
  color: var(--black);
  padding: 100px 64px;
}

.mr-formas__head { margin-bottom: 72px; }

.mr-formas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.forma { display: flex; flex-direction: column; }

.door-img {
  width: 52%;
  aspect-ratio: 0.55;
  object-fit: contain;
  object-position: bottom center;
  margin-bottom: 32px;
  display: block;
  /* mix-blend-mode: multiply elimina el fondo blanco de las imágenes
     sobre el fondo blanco de la sección — la puerta queda limpia */
  mix-blend-mode: multiply;
}

.forma-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 52px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}

.forma-title {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.forma-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(10,10,10,0.58);
  line-height: 1.65;
  max-width: 220px;
}

/* ─── RESEÑAS ─────────────────────────────────────── */
.mr-resenas {
  background: var(--black);
  color: var(--white);
  padding: 100px 64px;
}

.mr-resenas__head { margin-bottom: 64px; }

.mr-resenas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247,247,247,0.08);
}

.resena {
  background: var(--black);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resena-stars {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 3px;
}

.resena-quote {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--white);
  flex: 1;
}

.resena-author {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  padding-top: 8px;
  border-top: 1px solid rgba(247,247,247,0.08);
}

/* ─── CONTACTO ────────────────────────────────────── */
.mr-contacto {
  background: var(--white);
  color: var(--black);
  padding: 100px 64px;
}

.mr-contacto__head { margin-bottom: 64px; }

.mr-contacto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(10,10,10,0.1);
  margin-bottom: 80px;
}

.ctc-item {
  padding: 36px 28px 36px 0;
  border-right: 1px solid rgba(10,10,10,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.ctc-item:not(:first-child) { padding-left: 28px; }
.ctc-item:last-child         { border-right: none; }
.ctc-item:hover              { background: rgba(245,196,0,0.04); }
.ctc-item:hover .ctc-link    { color: var(--yellow); }

.ctc-icon {
  width: 22px;
  height: 22px;
  stroke: var(--black);
  fill: none;
  margin-bottom: 4px;
}

.ctc-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--black);
}

.ctc-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(10,10,10,0.55);
  line-height: 1.6;
  flex: 1;
}

.ctc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: color .2s;
  margin-top: 6px;
}
.ctc-link::after { content: '→'; font-size: 13px; }
.ctc-link:hover  { color: var(--yellow); }

/* ─── FORMULARIO ──────────────────────────────────── */
.mr-form-wrap {
  max-width: 680px;
  padding-top: 64px;
  border-top: 1px solid rgba(10,10,10,0.08);
}

.mr-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.mr-form__input,
.mr-form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: 1px solid rgba(10,10,10,0.15);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.mr-form__input:focus,
.mr-form__textarea:focus { border-color: var(--yellow); }

.mr-form__textarea { margin-bottom: 16px; }

.mr-form__msg {
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}
.mr-form__msg.success { color: #2a9d44; }
.mr-form__msg.error   { color: #c0392b; }

/* ─── FOOTER ──────────────────────────────────────── */
.mr-footer {
  background: var(--black);
  padding: 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(247,247,247,0.06);
}

.mr-footer__brand { text-decoration: none; }
.mr-footer__name {
  display: block;
  font-family: var(--font-logo);
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.mr-footer__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 6.5px;
  letter-spacing: 0.4em;
  color: rgba(247,247,247,0.3);
  margin-top: 3px;
}

.mr-footer__center { text-align: center; }
.mr-footer__services {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247,247,247,0.3);
}
.mr-footer__services .dot { margin: 0 8px; }
.mr-footer__geo {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(247,247,247,0.2);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.mr-footer__copy {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  color: rgba(247,247,247,0.15);
  margin-top: 4px;
}

.mr-footer__social {
  display: flex;
  gap: 28px;
  align-items: center;
}
.mr-footer__social a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(247,247,247,0.35);
  text-decoration: none;
  transition: color .2s;
}
.mr-footer__social a:hover { color: var(--yellow); }

/* ─── RESPONSIVE — TABLET (≤900px) ───────────────── */
@media (max-width: 900px) {
  .mr-nav { padding: 18px 32px; }
  .mr-nav__links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); border-bottom: 1px solid rgba(247,247,247,0.08); padding: 0; }
  .mr-nav__links.open { display: flex; }
  .mr-nav__links li a { display: block; padding: 16px 32px; border-bottom: 1px solid rgba(247,247,247,0.06); }
  .mr-nav__toggle { display: flex; }

  .mr-hero { grid-template-columns: 1fr; padding-top: 60px; min-height: auto; }
  .mr-hero__content { padding: 40px 32px 48px; justify-content: flex-end; }
  .mr-hero__image { order: -1; height: 55vw; max-height: 380px; }
  .mr-hero__image img { height: 100%; width: 100%; object-fit: cover; object-position: center top; }
  .mr-hero__badge { display: none; }
  .mr-hero__title { font-size: clamp(52px, 10vw, 80px); }

  .mr-problema { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
  .mr-servicios { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }

  .mr-formas { padding: 80px 32px; }
  .mr-formas__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .mr-resenas { padding: 80px 32px; }
  .mr-resenas__grid { grid-template-columns: 1fr; }

  .mr-contacto { padding: 80px 32px; }
  .mr-contacto__grid { grid-template-columns: repeat(2, 1fr); }
  .ctc-item:nth-child(2n) { border-right: none; }
  .ctc-item:nth-child(3),
  .ctc-item:nth-child(4) { border-top: 1px solid rgba(10,10,10,0.1); }

  .mr-footer { flex-direction: column; gap: 24px; text-align: center; padding: 40px 32px; }
}

/* ─── RESPONSIVE — MOBILE (≤600px) ───────────────── */
@media (max-width: 600px) {
  .mr-nav { padding: 16px 20px; }

  .mr-hero { padding-top: 56px; }
  .mr-hero__content { padding: 32px 20px 40px; }
  .mr-hero__image { height: 60vw; max-height: 320px; }
  .mr-hero__ctas { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mr-hero__title { font-size: clamp(44px, 12vw, 72px); }

  .mr-problema { padding: 60px 20px; gap: 36px; }
  .mr-servicios { padding: 60px 20px; }
  .srv-grid { grid-template-columns: 1fr 1fr; }
  .srv-item { padding: 20px 16px; }

  .mr-formas { padding: 60px 20px; }
  .mr-formas__grid { grid-template-columns: 1fr; gap: 48px; }

  .mr-resenas { padding: 60px 20px; }
  .mr-contacto { padding: 60px 20px; }
  .mr-contacto__grid { grid-template-columns: 1fr; border-top: none; }
  .ctc-item { border-right: none !important; border-top: 1px solid rgba(10,10,10,0.1); padding: 24px 0 !important; }

  .mr-form__row { grid-template-columns: 1fr; }

  .mr-footer { padding: 32px 20px; }
}

/* ════════════════════════════════════════════
   IMÁGENES FLUIDAS GLOBALES
════════════════════════════════════════════ */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════
   HELPER CLASSES
════════════════════════════════════════════ */
.mr-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 60px;
  padding-right: 60px;
}
.mr-section {
  padding-top: 100px;
  padding-bottom: 100px;
}
.mr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.mr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mr-stack-mobile { /* Stacks to 1 col on mobile, set via breakpoints below */ }
.mr-hide-mobile  { /* Hidden on mobile, set via breakpoints below */ }
.mr-hide-desktop { display: none; } /* Hidden on desktop by default */

/* ── Elementor compatibility ── */

/* El wrapper de page.php no debe imponer ningún estilo.
   Elementor gestiona 100% del layout, ancho y padding. */
.mr-page-content {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}
/* Sin restricción de ancho al contenido Elementor */
.mr-page-content > .elementor {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (768px – 1199px)
   Solo clases helper del tema, nunca Elementor
════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
  .mr-container { padding-left: 32px; padding-right: 32px; }
  .mr-section   { padding-top: 72px; padding-bottom: 72px; }
  .mr-grid-2    { gap: 32px; }
  .mr-grid-3    { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mr-hide-desktop { display: block; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (hasta 767px)
   Solo clases helper del tema, nunca Elementor
════════════════════════════════════════════ */
@media (max-width: 767px) {
  .mr-container { padding-left: 20px; padding-right: 20px; }
  .mr-section   { padding-top: 48px; padding-bottom: 48px; }
  .mr-grid-2,
  .mr-grid-3    { grid-template-columns: 1fr; gap: 20px; }
  .mr-stack-mobile { display: flex; flex-direction: column; }
  .mr-hide-mobile  { display: none !important; }
  .mr-hide-desktop { display: block; }

  /* Botones del TEMA (no Elementor) en móvil */
  .btn-primary,
  .btn-ghost {
    display: inline-flex;
    width: auto;
  }

  /* Compensar nav en móvil */
  .mr-page-content { padding-top: 60px; }
}
