/**
 * O Río Arabians — capa de refinamiento (2026)
 *
 * Se carga después de style.css. No cambia estructura ni marca:
 * tipografía editorial (Fraunces + Figtree), cabecera moderna,
 * contraste AA, hero con scrim, formulario y footer.
 */

:root {
  --orio-paper: #F7F6EF;
  --orio-white: #FDFDF9;
  --orio-ink: #3F3F3F;
  --orio-ink-soft: #555555;
  --orio-muted: #6B6B6B;
  --orio-line: #E4E3DA;
  --orio-accent: #6D7280;
  --orio-radius: 6px;
  --orio-font: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --orio-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
select,
button,
.navlink,
.button,
.submit-form {
  font-family: var(--orio-font);
}

body {
  color: var(--orio-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(109, 114, 128, 0.22);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(63, 63, 63, 0.22);
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Escala tipográfica ------------------------------------------------ */
.title-page,
.title-page.header,
.title-home,
.portfolio-title,
.project-title-page,
.title-header,
h1,
h2,
h3 {
  font-family: var(--orio-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* El tema fija tamaños con selectores muy específicos; aquí mandan los nuevos. */
body.sticky .wrapper .title-page,
body.sticky .wrapper .title-page.header,
.wrapper .title-page {
  font-size: clamp(38px, 5.2vw, 64px) !important;
  line-height: 1.06 !important;
  margin-bottom: 80px;
}

body.sticky .wrapper .title-page.blog {
  font-size: clamp(32px, 4vw, 48px) !important;
}

.wrapper.multi-title .title-page {
  font-size: clamp(30px, 4.2vw, 50px) !important;
}

.navbar:not(.smaller) .navmenu li a,
body.sticky .header .main-menu ul li a {
  font-size: 12.5px !important;
  letter-spacing: 0.12em !important;
}

.w--nav-menu-open .navlink {
  font-size: 20px !important;
  letter-spacing: 0.01em !important;
}

.wrapper.multi-title .title-page {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
}

.title-home {
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.12;
}

.portfolio-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
}

.description-home {
  font-size: 18px;
  line-height: 1.55;
  color: var(--orio-ink-soft);
}

/* --- Cabecera ---------------------------------------------------------- */
.header {
  border-bottom: 1px solid rgba(63, 63, 63, 0.06);
  box-shadow: 0 1px 0 rgba(63, 63, 63, 0.05);
  transition: box-shadow 250ms ease, background-color 250ms ease;
}

/* La cabecera debe verse siempre (el tema la ocultaba con una animación). */
body.sticky .header {
  transform: none !important;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(63, 63, 63, 0.14), transparent);
}

body.orio-scrolled .header {
  background-color: rgba(253, 253, 249, 0.92);
  backdrop-filter: saturate(1.15) blur(10px);
  box-shadow: 0 1px 0 rgba(63, 63, 63, 0.06), 0 14px 34px rgba(0, 0, 0, 0.1);
}

.navlink {
  transition: color 200ms ease, transform 200ms ease;
}

.navlink:hover {
  transform: translateY(-1px);
}

.navlink {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 200ms ease;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease;
}

.navlink:hover::after,
.navlink.w--current::after {
  transform: scaleX(1);
}

/* --- Menú móvil -------------------------------------------------------- */
.w-nav-overlay {
  background: var(--orio-paper) !important;
  z-index: 9998;
}

.w--nav-menu-open {
  background: var(--orio-paper) !important;
  color: var(--orio-ink);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.1);
  padding: 18px 0 28px;
}

.w--nav-menu-open .navlink {
  display: block;
  padding: 13px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--orio-ink) !important;
}

@media (max-width: 767px) {
  .header.w-hidden-main .w-nav-button {
    display: block;
  }
}

.w-nav-button {
  min-width: 48px;
  min-height: 48px;
}

.w-nav-button.w--open {
  background-color: transparent;
}

/* --- Contraste AA ------------------------------------------------------ */
.navlink.w--current,
.navlink.child {
  color: var(--orio-muted) !important;
}

#menu-side ul li a,
#menu-overlay .menu-list ul li a {
  color: var(--orio-muted);
}

abbr, acronym, cite, ins, q, var {
  color: var(--orio-muted);
}

.content-grey .w-container p,
.content-grey .w-container li,
.content-grey .w-container blockquote {
  color: var(--orio-ink-soft);
}

.services-list {
  color: var(--orio-muted) !important;
}

/* --- Cabecera compacta (escritorio) ----------------------------------- */
@media (min-width: 992px) {
  .header {
    height: 76px !important;
  }

  body.sticky .header .main-menu {
    height: 76px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
  }

  body.sticky .header .main-menu .side-center {
    position: static !important;
    order: -1;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
  }

  body.sticky .header .main-menu .side-left {
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    height: auto !important;
    margin: 0;
  }

  body.sticky .header .main-menu .side-left ul {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    position: static !important;
  }

  body.sticky .header .main-menu .side-left li {
    display: inline-block !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0;
  }

  body.sticky .header .main-menu .side-left li a {
    padding: 8px 0 !important;
    line-height: 1.2 !important;
  }

  body.sticky .header .main-menu .side-right {
    position: static !important;
    right: auto !important;
    top: auto !important;
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .header .logo-image img {
    height: 44px;
    width: auto;
  }
}

/* En escritorio estrecho el menú necesita más aire */
@media (min-width: 992px) and (max-width: 1199px) {
  body.sticky .header .main-menu .side-left ul {
    gap: 14px;
  }

  body.sticky .header .main-menu .side-left li a {
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
  }
}

/* (Cabecera móvil: se mantiene el comportamiento original del tema para no
   romper el burger ni el menú desplegable. El rediseño compacto es solo ≥992px.) */

/* --- Hero: scrim y texto blanco ---------------------------------------- */
.home-slider .w-slide.home-image {
  position: relative;
}

.home-slider .w-slide.home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.home-slider .description-block {
  z-index: 2;
}

.home-slider .title-home,
.home-slider .description-home {
  color: #FDFDF9 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.home-slider .title-home {
  border-bottom-color: rgba(253, 253, 247, 0.85);
}

.home-slider .description-home {
  color: rgba(253, 253, 247, 0.94) !important;
}

@media (max-width: 991px) {
  .body-home .site-main,
  .body-home .wrapper {
    height: auto;
  }

  .home-slider {
    height: calc(100vh - 120px) !important;
    min-height: 420px;
  }

  @supports (height: 100svh) {
    .home-slider {
      height: calc(100svh - 120px) !important;
    }
  }

  .home-slider .w-slider-mask,
  .home-slider .w-slide {
    height: 100% !important;
  }

  .description-block {
    width: min(88%, 420px);
    left: 6%;
    bottom: 96px;
  }
}

/* --- Hero editorial ---------------------------------------------------- */
.orio-hero {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 6%;
  pointer-events: none;
}

.orio-hero-inner {
  max-width: 720px;
  animation: orioRise 900ms cubic-bezier(.2, .7, .2, 1) 150ms both;
}

.orio-hero-kicker {
  margin: 0 0 14px;
  color: rgba(253, 253, 247, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orio-hero-title {
  margin: 0 0 26px;
  color: #FDFDF9 !important;
  font-family: var(--orio-display);
  font-size: clamp(40px, 5.6vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.orio-hero-cta {
  display: inline-block;
  pointer-events: auto;
  padding: 13px 26px;
  border: 1px solid rgba(253, 253, 247, 0.7);
  border-radius: var(--orio-radius);
  background-color: rgba(253, 253, 247, 0.08);
  color: #FDFDF9 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background-color 200ms ease, color 200ms ease;
}

.orio-hero-cta:hover,
.orio-hero-cta:focus-visible {
  background-color: #FDFDF9;
  color: var(--orio-ink) !important;
}

@keyframes orioRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Logo que se encoge al hacer scroll -------------------------------- */
.logo-image img {
  transition: transform 300ms ease;
  transform-origin: center;
}

body.orio-scrolled .logo-image img {
  transform: scale(0.86);
}

/* --- Barra móvil ------------------------------------------------------- */
.orio-mobile-bar {
  display: none;
}

.orio-menu-panel {
  display: none;
}

@media (max-width: 767px) {
  .orio-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9500;
    display: flex;
    background-color: rgba(253, 253, 249, 0.97);
    border-top: 1px solid var(--orio-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .orio-mobile-bar__item {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: var(--orio-ink) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .orio-mobile-bar__item + .orio-mobile-bar__item {
    border-left: 1px solid var(--orio-line);
  }

  .orio-mobile-bar__item {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--orio-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orio-ink) !important;
  }

  body {
    padding-bottom: 58px;
  }

  .orio-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 76px;
    background-color: rgba(28, 28, 26, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
  }

  .orio-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
  }

  .orio-menu-panel nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(86vw, 340px);
    padding: 8px 0;
    border-radius: 14px;
    background-color: var(--orio-white);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    text-align: left;
    overflow: hidden;
  }

  .orio-menu-panel a {
    display: block;
    padding: 12px 22px;
    font-family: var(--orio-font);
    font-size: 16px;
    color: var(--orio-ink) !important;
    text-decoration: none;
    border-bottom: 0 !important;
  }

  .orio-menu-panel a + a {
    border-top: 1px solid var(--orio-line);
  }

  .orio-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(63, 63, 63, 0.15);
    background-color: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--orio-ink);
    cursor: pointer;
  }

  body.orio-menu-open {
    overflow: hidden;
  }

  /* Cabecera móvil: logo izquierda + burger derecha */
  .header.w-hidden-main {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9000;
    height: 64px !important;
    padding: 0 !important;
    box-shadow: 0 1px 0 rgba(63, 63, 63, 0.06), 0 10px 26px rgba(0, 0, 0, 0.07);
  }

  .header.w-hidden-main .text-centered {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    text-align: left;
    z-index: 2;
  }

  .header.w-hidden-main .logo-image img {
    height: 34px;
    width: auto;
  }

  .header.w-hidden-main .social-block.smaller {
    display: none !important;
  }

  .header.w-hidden-main .w-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    height: 64px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header.w-hidden-main .w-container-menu {
    position: relative;
    display: block;
    width: 100% !important;
    margin: 0 !important;
    height: 64px;
    padding: 0 14px 0 0 !important;
  }

  .header.w-hidden-main .w-nav-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 10px;
  }

  .header.w-hidden-main .w-nav-button .w-icon-nav-menu {
    font-size: 22px;
    line-height: 1;
  }

  /* Controles del slider demasiado pequeños para táctil: se usa swipe. */
  .footer-right-back {
    display: none !important;
  }

  body.body-home {
    padding-top: 64px;
  }

  body:not(.body-home) {
    padding-top: 64px;
  }

  .home-slider {
    height: calc(100vh - 64px) !important;
  }

  @supports (height: 100svh) {
    .home-slider {
      height: calc(100svh - 64px) !important;
    }
  }

  /* Desplegable compacto: solo el espacio necesario */
  .w-nav-overlay {
    left: auto !important;
    right: 10px !important;
    width: 264px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .w--nav-menu-open {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: calc(100svh - 86px);
    overflow-y: auto;
    border-radius: 12px;
    background-color: #FDFDF9 !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    padding: 8px 0;
  }

  .w--nav-menu-open .navlink {
    display: block;
    padding: 12px 22px !important;
    font-size: 16px !important;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--orio-ink) !important;
  }

  .orio-hero {
    align-items: center;
    padding: 0 6%;
  }

  .orio-hero-title {
    font-size: clamp(34px, 10vw, 52px);
  }
}

/* --- Aparición suave de secciones ------------------------------------- */
.orio-reveal {
  transform: translateY(16px);
  transition: transform 600ms ease;
}

.orio-reveal.orio-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .orio-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .orio-hero-inner {
    animation: none;
  }
}

/* --- Acciones de cabecera --------------------------------------------- */
.orio-social-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1877F2;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.orio-social-fb:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.orio-social-fb svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.orio-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--orio-ink);
  color: #FDFDF9 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease;
}

.orio-header-cta:hover {
  background-color: #222222;
  transform: translateY(-1px);
}

/* --- Enlaces del pie --------------------------------------------------- */
.orio-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
  font-size: 13px;
  color: var(--orio-muted);
  vertical-align: middle;
}

.orio-footer-links a {
  color: var(--orio-ink-soft) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.orio-footer-links a:hover {
  color: var(--orio-ink) !important;
  border-bottom-color: var(--orio-ink);
}

/* --- Pie oscuro -------------------------------------------------------- */
.footer:not(.home) {
  background-color: #1C1C1A;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
}

.footer:not(.home),
.footer:not(.home) .footer-copyright {
  color: rgba(244, 241, 232, 0.78) !important;
}

.footer:not(.home) .orio-footer-links a {
  color: #F4F1E8 !important;
  border-bottom-color: rgba(244, 241, 232, 0.35);
}

.footer:not(.home) .orio-footer-links a:hover {
  border-bottom-color: #F4F1E8;
}

.footer:not(.home) .footer-social a {
  color: #F4F1E8 !important;
  opacity: 0.8;
}

.footer:not(.home) .footer-social a:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .orio-mobile-bar {
    background-color: rgba(28, 28, 26, 0.97);
    border-top-color: rgba(244, 241, 232, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .orio-mobile-bar__item {
    color: #F4F1E8 !important;
  }

  .orio-mobile-bar__item + .orio-mobile-bar__item {
    border-left-color: rgba(244, 241, 232, 0.15);
  }
}

/* --- Botones y enlaces ------------------------------------------------ */
.button,
.w-button,
.submit-form {
  border-radius: var(--orio-radius);
}

.button,
.w-button {
  transition: background-color 200ms ease, transform 200ms ease;
}

.button:hover,
.w-button:hover {
  background-color: #7C8292;
}

.submit-form {
  border-color: var(--orio-ink);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.submit-form:hover {
  background-color: var(--orio-ink);
  color: var(--orio-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.submit-form:focus-visible {
  outline: 3px solid #8A90A0;
  outline-offset: 3px;
}

/* --- Formulario de contacto ------------------------------------------- */
.w-input,
.w-select,
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  font-size: 16px;
  border: 1px solid #D9D8CF;
  background-color: #FFFFFF;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.w-input:focus,
.w-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--orio-accent);
  box-shadow: 0 0 0 3px rgba(109, 114, 128, 0.16);
}

.success,
.error {
  padding: 14px 18px;
  border-left: 4px solid;
  text-align: left;
  font-size: 16px;
}

.success {
  background-color: #F1F6EF;
  border-color: #5B8C5A;
  color: #2F4A2E;
}

.error {
  background-color: #FBF0EF;
  border-color: #A34C42;
  color: #6B2B24;
}

/* --- Accesibilidad ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 18px;
  background-color: var(--orio-ink);
  color: var(--orio-white);
  font-size: 16px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-main {
  display: block;
  height: 100%;
}

/* --- Footer y volver arriba ------------------------------------------- */
.footer {
  border-top: 1px solid var(--orio-line);
}

.footer-social a {
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-copyright {
  color: var(--orio-muted);
}

.orio-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(63, 63, 63, 0.14);
  background-color: rgba(253, 253, 249, 0.94);
  color: var(--orio-ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

body.orio-scrolled .orio-top {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .navlink::after,
  .orio-top,
  .button,
  .submit-form {
    transition: none;
  }
}
