/* ===================================================== */
/* FUENTE – SOURCE SANS 3 (WEB SAFE)                     */
/* ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700&display=swap");

/* ===================================================== */
/* RESET + BASE                                          */
/* ===================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background: #000;
  overflow-x: hidden;
}

/* ===================================================== */
/* VIDEO BACKGROUND                                      */
/* ===================================================== */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;

  /* 🔮 BLUR REAL */
  backdrop-filter: blur(30px) saturate(90%);
  -webkit-backdrop-filter: blur(30px) saturate(90%);

  z-index: -1;
}

/* ===================================================== */
/* HEADER / NAVEGACIÓN (CENTRADO REAL)                   */
/* ===================================================== */

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Header oculto */
.main-header.hide {
  transform: translateY(-100%);
  opacity: 0;
  backdrop-filter: none;
  background: transparent;
}

/* Header visible con blur */
.main-header.scrolled {

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 8px 30px rgba(0,0,0,0.2),
    inset 0 -1px 0 rgba(255,255,255,0.05);

  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

/* CONTENEDOR */
.header-inner {
  display: flex;
  align-items: center;
  padding: 14px 48px;
}

/* LOGO A LA IZQUIERDA */
.logo {
  z-index: 2;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* LOGO CLICKABLE (ENLACE A INICIO) */
.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 4px;
}

/* MENÚ ABSOLUTAMENTE CENTRADO */
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 16px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

/* LINK ACTIVO */
nav a.active {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* Ocultar hamburguesa en escritorio */
.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
}


/* ===================================================== */
/* SECCIONES BASE GLOBAL                                 */
/* ===================================================== */

.section {
  padding: (70px 8vw 120px) 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===================================================== */
/* AJUSTE DE ESPACIADO ENTRE SECCIONES                   */
/* ===================================================== */

#sobre {
  padding-bottom: 100px;
}

#servicios {
  padding-bottom: 100px;
}

#proceso {
  padding-bottom: 100px;
}

#selección {
  padding-bottom: 100px;
}

/* ===================================================== */
/* RESPONSIVE                                            */
/* ===================================================== */

@media (max-width: 900px) {

  .section {
    padding: 70px 6vw 60px;
  }

  #servicios {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  #proceso {
    padding-top: 60px;
    padding-bottom: 70px;
  }

}

/* ===================================================== */
/* HERO / INICIO                                         */
/* H1 fijo + H2 rotativo centrados en eje Y              */
/* ===================================================== */

.hero {
  min-height: 100vh;
  padding: 0 8vw;
  display: flex;
  align-items: center;          /* 🔑 CENTRADO VERTICAL */
  justify-content: center;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;                    /* espacio entre H1 y H2 */
}

/* ===================== */
/* H1 PRINCIPAL          */
/* ===================== */

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  text-align: center;
  margin: 0;
  text-transform: none;         /* NO mayúsculas reales */
  letter-spacing: -0.01em;
}

/* ===================== */
/* H2 ROTATING TEXT      */
/* ===================== */

.rotating-text {
  position: relative;
  width: 100%;
  height: 120px;                /* reserva espacio estable */
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.phrase {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(12px) scale(0.985);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: 90vw;
  white-space: nowrap;

  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  opacity: 0;

  transition:
    opacity 2.2s ease,
    transform 3.2s cubic-bezier(.22,1,.36,1);
}

.phrase.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.phrase.exit {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-12px) scale(0.985);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

@media (max-width: 768px) {

  .hero {
    padding: 0 6vw;
  }

  .hero-content {
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.1;
  }

  .rotating-text {
    height: 150px;              /* aire para 2 líneas */
  }

  .phrase {
    white-space: normal;        /* 🔑 permite salto */
    max-width: 100%;
    font-size: clamp(22px, 6.5vw, 32px);
    line-height: 1.2;
  }
}


/* ===================================================== */
/* TIPOGRAFÍA GLOBAL                                     */
/* ===================================================== */
/* TÍTULO 1 */
h1 {
  font-weight: 700;
  font-size: clamp(48px, 6vw, 75px);
  line-height: 1;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* TÍTULO 2 */
h2 {
  font-weight: 700;
  font-size: clamp(48px, 6vw, 75px);
  line-height: 1;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Subtitulo */
h3 {
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.25;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  opacity: 0.6;
  max-width: 1100px;
}
/* Subtitulo 2 */
h4 {
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
  text-align: center;
  opacity: 0.8;
  margin-left: auto;
  margin-right: auto;
}
/* Parrafo */
p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================== */
/* SOBRE MI                                              */
/* ===================================================== */

/* FOTO PERFIL SOBRE MI */
.about-photo {
  display: flex;
  justify-content: center;
  margin: 40px 0 30px;
}

.about-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;

  /* efecto elegante */
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about p {
  max-width: 560px;
}


/* ===================================================== */
/* SERVICIOS – AJUSTES FINOS TARJETA                     */
/* ===================================================== */

.column {
  position: relative;
  max-width: 470px;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;

  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 28px;

  display: flex;
  flex-direction: column;
  gap: 22px;
}

.item {
  text-align: center;
}

.item h3,
.item p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.item:not(:last-child)::after {
  content: "";
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin: 18px -36px 0;
}

/* ===================================================== */
/* PROCESO / ENFOQUE                                      */
/* ===================================================== */

.columns {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr;
  gap: 60px;

  max-width: 1100px;   /* ← AJUSTA AQUÍ */
  margin-left: auto;
  margin-right: auto;

  margin-top: 20px;
}

/* TARJETA */

.column {

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

    box-shadow:
    0 5px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  position: relative;
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 35px 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

/* PÍLDORA */

.pill {

    background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 5px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,1);
  color: rgb(100, 100, 100);
  font-size: 20px;
  font-weight: 600;
}

/* ITEMS */

.item {
  padding-bottom: 28px 0;
  text-align: center;
}

.item:not(:last-child)::after {
  content: "";
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin: 24px -45px 0; /* ← llega a los bordes */
}

.item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.item p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}



/* =============================== */
/* SECCIÓN SELECCIÓN               */
/* =============================== */


.selección{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#fff;
  font-family:"Source Sans 3", Helvetica, Arial, sans-serif;
}

.selección h2{
  font-size:clamp(2.5rem,5vw,4rem);
  margin:0;
}

.subtitle{
  opacity:.85;
  margin:20px 0 50px;
  max-width:600px;
}

/* slider */

.slider{
  position:relative;
  width:min(90vw,450px);
  height:min(90vw, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(.96);
  transition:opacity .9s cubic-bezier(.77,0,.18,1),
  transform .9s cubic-bezier(.77,0,.18,1);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.slide.active{
  opacity:1;
  transform:scale(1);
  z-index:2;
  
}

.slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  background: none;
  border-radius:0;
  box-shadow:none;
}

.slide figcaption{
  font-size: .82rem;
  opacity: .7;
  font-weight: 300;
  margin-top: 550px;

  position: absolute;
  left: 50%;
  transform:translateX(-50%);
  width:100%;
  text-align: center;
  max-width: 520px;;
}

/* ================================= */
/* FIX SOLO MÓVIL — CAPTION SLIDER   */
/* ================================= */

@media (max-width:768px){

  .slide figcaption{
    margin-top: 0 !important;
    bottom: -100px;
  }

}

/* ================================= */
/* MENOS ESPACIO FINAL SLIDER MÓVIL  */
/* ================================= */

@media (max-width:768px){

  #selección{
    margin-bottom:0px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

}



/* flechas */

.nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width: 90px;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:none;
  border:none;
  cursor: pointer;

  color:white;
  font-size:2.6rem;
  cursor:pointer;
  opacity:.55;
  transition:.25s;

  z-index: 10;
}

.nav:hover{ opacity:1; transform:translateY(-50%) scale(1.15); }

.prev{ left:-70px; }
.next{ right:-70px; }



/* ========================= */
/* RESPONSIVE SLIDER         */
/* ========================= */

@media (max-width:768px){

  .prev{ left:-45px; }
  .next{ right:-45px; }

  .reference-stack{
    width:92vw;
    aspect-ratio:4/3;
    margin:auto;
  }

  .ref-slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .ref-caption{
    margin-top:14px;
    text-align:center;
    font-size:.95rem;
    max-width:90%;
    margin-left:auto;
    margin-right:auto;
    line-height:1.4;
  }

}


/* móvil pequeño */

@media (max-width:480px){

  .reference-stack{
    width:94vw;
    aspect-ratio:4/3;
  }

  .ref-caption{
    font-size:.85rem;
    margin-top:12px;
  }

}








/* ===================================================== */
/* CONTACTO FINAL – SÍMBOLO + LOGO                        */
/* ===================================================== */

.contact-final {
  text-align: center;
  padding-bottom: 15px;
}

/* Símbolo grande */
.contact-symbol {
  margin-bottom: 40px;
}

.contact-symbol img {
  width: 200px;
  height: auto;
  opacity: 0.9;
  margin-bottom: -30px;
}

/* Logotipo inferior */
.contact-logo {
  margin-top: 40px;
}

.contact-logo img {
  width: 200px;
  height: auto;
  opacity: 0.85;
  margin-top: 40px;
}

/* Ajuste fino del texto */
.contact-final h1 {
  margin-top: 0;
}

.contact-final h2 {
  margin-top: 12px;
}


/* ===================================================== */
/* CONTACT BAR – PASTILLA FIJA                            */
/* ===================================================== */

.contact-bar {
  position: fixed;
  margin-bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  transition:
    transform 0.6s cubic-bezier(.22,1,.36,1),
    opacity 0.4s ease;
}

.contact-bar .glass {
  position: relative;

  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 32px;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255,255,255,0.2)
  );

  backdrop-filter: blur(12px) saturate(100%);
  -webkit-backdrop-filter: blur(26px) saturate(100%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 25px 50px rgba(0,0,0,0.15);
}

/* ===================== */
/* TEXTO CONTACTO        */
/* ===================== */

.contact-item {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
}

.contact-item:hover {
  opacity: 1;
}

/* Teléfono + subtítulo centrado */
.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

/* ===================== */
/* ICONOS REDES          */
/* ===================== */

.contact-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: transparent;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.social-link img {
  width: auto;
  height: 40px;
  display: block;
  opacity: 0.8;
}

.social-link:hover {
  transform: scale(1.08);
  opacity: 1;
}


/* ===================================================== */
/* CONTACT BAR – MODO FINAL (HABLAMOS)                   */
/* ===================================================== */

/* CONTACT BAR – MODO FINAL (AL FINAL DE LA PÁGINA) */
.contact-bar.is-final {
margin-bottom: 200px;
transform: translateX(-50%) scale(0.95);
opacity: 0.85;
}



/* ===================================================== */
/* FOOTER – LEGALES 2026                                 */
/* ===================================================== */

.main-footer {
  text-align: center;
  padding: 0px 20px 4px;
}

.footer-inline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.footer-inline a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-inline a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-inline .sep {
  margin: 0 6px;
  opacity: 0.35;
}

/* ===================================================== */
/* FOOTER - MÓVILES                                      */
/* ===================================================== */

@media (max-width: 480px) {
  .footer-inline {
    font-size: 8px;
    letter-spacing: 0.1em;
    white-space: normal; /* permite salto si hace falta */
  }

  .footer-inline .sep {
    margin: 0 6px;
  }
}
  

/* ===================================================== */
/* RESPONSIVE                                            */
/* ===================================================== */

/* ===================================================== */
/* TABLAS - MOVIL                                        */
/* ===================================================== */

@media (max-width: 1024px) {
  .columns {
    gap: 60px;
  }
}


@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

/* ===================================================== */
/* BARRA CONTACTO PERMANENTE                             */
/* ===================================================== */

@media (max-width: 480px) {

  .contact-bar .glass {
    gap: 20px;
    padding: 14px 28px;
  }

  .contact-item {
    font-size: 14px;
  }

  .social-link img {
    width: 22px;
    height: 22px;
  }
}

/* ===================================================== */
/* MENÚ HAMBURGUESA – MÓVIL + TABLET                     */
/* Desktop intacto                                      */
/* ===================================================== */

/* Estado base (desktop) */
.menu-toggle {
  display: none;
}

/* ===================================================== */
/* MÓVIL + TABLET                                       */
/* ===================================================== */

@media (max-width: 1024px) {

  /* HEADER PARA REGULAR EN LOS MOVILES Y TABLETS LA CABEZA DEL LOGOTIPO Y EL MENU HAMBURGUESA*/
  .header-inner {
  padding-left: 30px;
  padding-right: 50px;
  margin-top: 20px;
  }

  /* LOGO A LA IZQUIERDA */
  .logo {
    margin-right: auto;
  }

  /* OCULTAR MENÚ NORMAL */
  nav {
    display: none;
  }

  /* BOTÓN HAMBURGUESA A LA DERECHA */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    background: none;
    border: none;
    cursor: pointer;

    z-index: 1100;
  }

  .menu-toggle span {
    width: 26px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.35s ease, opacity 0.25s ease;
  }
}

/* ===================================================== */
/* MENÚ DESPLEGADO – FULLSCREEN + BLUR                  */
/* ===================================================== */

@media (max-width: 1024px) {

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open nav {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    z-index: 1050;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  body.menu-open nav a {
    font-size: clamp(24px, 6vw, 40px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(255,255,255,0.9);
    text-decoration: none;
  }

  body.menu-open nav a.active {
    color: #ffffff;
    font-weight: 700;
  }
}

/* ===================================================== */
/* ANIMACIÓN HAMBURGUESA → X                            */
/* ===================================================== */

@media (max-width: 1024px) {

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ===================================================== */
/* FIX DEFINITIVO – CENTRADO REAL DEL MENÚ MÓVIL         */
/* ===================================================== */

@media (max-width: 1024px) {

  body.menu-open nav {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    /* 🔑 anular desktop */
    left: 0;
    transform: none;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 1050;
  }
}

/* ========================================= */
/* HEADER – ALTURA MAYOR SOLO MÓVIL + TABLET */
/* ========================================= */

@media (max-width: 1024px) {
  .header-inner {
    padding-top: 10px;
    padding-bottom: 25px;
  }
}

/* ===================================================== */
/* CONTACT BAR – MÓVIL VERTICAL (ICONOS PNG)             */
/* SOLO portrait · Desktop y tablet intactos             */
/* ===================================================== */

@media (max-width: 768px) and (orientation: portrait) {

  /* CONTENEDOR PRINCIPAL */
  .contact-bar .glass {
    display: flex;
    flex-direction: row;              /* horizontal: mail | tel */
    justify-content: space-between;
    align-items: center;
    margin-bottom: -5px;

    gap: 30px;
    padding: 10px 10px;

    border-radius: 999px;
  }

  /* OCULTAR REDES */
  .contact-social {
    display: none !important;
  }

  /* RESET ITEMS */
  .contact-item {
    position: relative;
    width: 70px;
    height: 70px;

    font-size: 0;                     /* oculta texto */
    line-height: 0;
    white-space: nowrap;

    opacity: 0.9;
  }

  /* QUITAR TEXTO EXTRA DEL TELÉFONO */
  .phone::after {
    content: none;
  }

  /* ICONO MAIL */
  .contact-item.contact-mail {
    background: url("../CONTENIDO/icon-mail.png") no-repeat center;
    background-size: 70px;
    opacity: 0.7;
  }

  /* ICONO TEL */
  .contact-item.contact-phone {
    background: url("../CONTENIDO/icon-phone.png") no-repeat center;
    background-size: 70px;
    opacity: 0.7;

  }

  /* FEEDBACK TÁCTIL */
  .contact-item:active {
    transform: scale(0.94);
  }
}


@media (max-width: 1024px) {

  .bg-video,
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 110%;
    height: auto;
    
  }

}

@media (max-width: 1024px) {
  body {
    position: relative;
  }
}




/* ===================================================== */
/* FIX FINAL — MENÚ + BLOQUEO HORIZONTAL MÓVIL           */
/* ===================================================== */

/* 1 — CONTACT BAR DETRÁS DEL MENÚ */
body.menu-open .contact-bar{
  z-index: 1 !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* El menú siempre arriba */
body.menu-open nav{
  z-index: 9999 !important;
}


/* ===================================================== */
/* 2 — BLOQUEAR SCROLL HORIZONTAL MÓVIL REAL             */
/* ===================================================== */

@media (max-width:768px){

  html,body{
    overflow-x:hidden !important;
    width:100%;
    position:relative;
  }

  body{
    touch-action: pan-y;
  }

  /* evita desplazamientos laterales por transforms */
  *{
    max-width:100vw;
  }

  /* slider nunca puede sobresalir */
  .slider,
  .slides,
  .slide{
    max-width:100vw;
  }

}


/* ===================================================== */
/* 3 — FIX SAFARI / iOS (IMPORTANTE)                     */
/* ===================================================== */

@supports (-webkit-touch-callout:none){

  html,body{
    overflow-x:hidden !important;
  }

  body{
    position:relative;
  }

}


/* ===================================================== */
/* MENÚ MÓVIL HORIZONTAL — TEXTO MÁS PEQUEÑO + CENTRADO  */
/* ===================================================== */

@media (max-width:1024px) and (orientation:landscape){

  body.menu-open nav{
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:18px;
  }

  body.menu-open nav a{
    font-size:clamp(18px,3vw,26px);
    letter-spacing:.06em;
  }

}

/* ===================================================== */
/* FOOTER MÓVIL PORTRAIT — TAMAÑO MÁS PEQUEÑO            */
/* ===================================================== */

@media (max-width:768px) and (orientation:portrait){

  .footer-inline{
    font-size:7px;
    letter-spacing:.08em;
    line-height:1.3;
    padding-bottom: 10px;
  }

  .footer-inline a{
    font-size:7px;
  }

}

