/* ====== FONDO GENERAL ====== */
body {
  margin: 0;
  padding: 0;
  background-color: #000000; 
  color: white; 
  font-family: 'Roboto', sans-serif;
  
}
/* ====== FONDO GENERAL ====== */

/* ====== ANTI SCROLL LATERAL ====== */
html {
  
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ====== ANTI SCROLL LATERAL  ====== */


/* === ANIMACIÓN FADE-IN === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === ANIMACIÓN FADE-IN === */

/* ====== HEADER ====== */
.main-header {
  position:fixed; /* header flotante sobre el banner */
  top: 0px;
  left: 0;
  width: 100%;
  height: 90px; /* altura del header */
  z-index: 1000;
  background-color:  #000000; 
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  
}

/* Para que el contenido debajo no quede oculto */
body {
  padding-top: 70px; /* igual que la altura del header */
}

/* CONTENEDOR DEL HEADER */
.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 0 40px; 
  box-sizing: border-box;
}

/* LOGO */
.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* NAVEGACIÓN */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover {
  color: #f0f0f0;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {

  /* header más compacto */
  .main-header {
    height: 80px;
    padding: 0 12px;
  }

  /* contenedor sin margen extra */
  .header-container {
    padding: 0;
  }

  /* logo pegado a la izquierda */
  .logo {
    margin-left: 0;
  }

  .logo img {
    height: 30px;       /* 🔥 logo más chico */
    width: auto;
  }

  /* opcional: reduce espacio del menú */
  .nav-links {
    gap: 12px;    
    align-items: flex-end;      /* 🔥 empuja los links a la derecha */
    text-align: center;
    padding-right: 20px;        /* espacio del borde derecho */
    padding-left: 0;          /* menos separación */
  }

  .nav-links a {
    font-size: 0.8rem;      /* 🔥 más chicos */
    font-weight: 400;
    letter-spacing: 0.04em;
    width: 100%;
    text-align: right;          /* 🔥 texto alineado a la derecha */
    padding: 14px 0;
  }

}

/* ====== BOTON FLOTANTE WSP ====== */

.whatsapp-float {
  position: fixed;       /* Fijo en la pantalla */
  bottom: 20px;          /* Separación inferior */
  right: 20px;           /* Separación lateral derecha */
  width: 90px;           /* Tamaño del botón */
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;         /* Siempre encima */
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

/* Hover efecto */
.whatsapp-float:hover {
  transform: scale(1.1); /* Pequeño zoom al pasar el mouse */
  filter: brightness(1.2); /* Opcional: iluminar un poco */
}

/* Imagen dentro del botón */
.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ====== BOTON HAMBURGUESA ====== */



.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 1024px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #0d0d0dd8;
    flex-direction: column;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
  }

  .nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* estado abierto */
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* ====== HEADER ====== */

/* ====== FOOTER ====== */
.site-footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.9rem;
}
/* ====== FOOTER ====== */

/* === BANNER === */
.banner {
  position: relative;
  width: 100%;
  height: 80vh; 
  background: url('../images/renderliving3rocas.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-top: 0px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.404); 
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 10px;
}

.banner-content p {
  font-size: 1.4rem;
  font-weight: 300;
  color: #f5f5f5;
  line-height: 1.4;
}

/* === RESPONSIVE === */ 

@media (max-width: 1024px) {

  .banner-content h1 {
    font-size: 1.6rem;
    line-height: 1.05;
  }

  .banner-content p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

}

@media (max-width: 480px) {

  .banner-content h1 {
    font-size: 1.45rem;
  }

  .banner-content p {
    font-size: 0.78rem;
  }

}



/* === BANNER === */  

/* === FOTO DE PERFIL CON EXPANSIÓN === */

.profile-hover-square {
  position: absolute;
  bottom: 3vw;
  left: 3vw;
  width: 250px;
  height: 250px;
  background: #000000bb;
  backdrop-filter: blur(4px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  border: 10px solid #2929297c;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  /* SOLO animar cuando cambie a expanded */
  transition: all 0.45s ease;
  /* TRUCO PARA EVITAR LA ANIMACIÓN DE “PRE-SALTO” */
  transform: translateZ(0);
}

.profile-hover-square:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* IMAGEN DENTRO DEL CÍRCULO */
.profile-image {
  width: 100%;
  height: 100%;
  background-image: url('../images/gustavo.png');
  background-size: cover;
  background-position: center;
  filter: blur(0.35px);
  
  /* Optimizaciones de rendimiento */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PANEL DE TEXTO OCULTO INICIALMENTE */
.profile-info {
  opacity: 0;
  visibility: hidden;
  padding: 0;
  width: 0;
  color: white; 
  transition: opacity 0s ease, visibility 0s linear;  
}

.profile-info h2 {
  margin-top: 0;
}

/* === ESTADO EXPANDIDO === */

.profile-hover-square.expanded {
  width: 680px;
  height: 700px;
  max-height: 85vh;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.685);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.profile-hover-square.expanded .profile-image {
  width: 260px;
  height: 260px;
  margin-top: 24px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  opacity: 1;
}


/* === Boton Cerrar === */

.profile-hover-square.expanded .profile-info {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.35s, visibility 0s linear 0s;
  font-size: 14px;
  width: 500px;
  max-width: 100%;
  margin: 0 auto;             
  padding: 20px 30px;         
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: -0.02em;
}


.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 30;
}

/* mostrar SOLO cuando está expandido */
.profile-hover-square.expanded .close-btn {
  opacity: 1;
  pointer-events: auto;
}

.close-btn:hover {
  background: rgba(0,0,0,0.65);
}


.perfil-vermas {
  position: absolute;
  top: 80%;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: #000000d3;
  border: 3px solid #0000007c;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  z-index: 30;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}


.perfil-vermas .icono {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #292929e5;
  font-size: 13px;
}

.profile-hover-square.expanded .perfil-vermas {
  opacity: 0;
}


/* === RESPONSIVE === */

/* TABLETS/iPADS - Mantener comportamiento de desktop */
@media (min-width: 768px) and (max-width: 1024px) {

  /* CERRADO - igual que desktop pero con tamaños ajustados */
  .profile-hover-square {
    width: 200px;
    height: 200px;
    bottom: 2.5vw;
    left: 2.5vw;
  }

  /* EXPANDIDO - comportamiento desktop */
  .profile-hover-square.expanded {
    width: 600px;
    height: 650px;
    max-height: 85vh;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.685);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    position: absolute; /* mantener posicionamiento normal */
    bottom: 3vw;
    left: 3vw;
    transform: none; /* sin centrado */
  }

  .profile-hover-square.expanded .profile-image {
    width: 220px;
    height: 220px;
    margin-top: 20px;
    margin-bottom: 14px;
    background-size: cover;
    background-position: center;
    opacity: 1;
  }

  .profile-hover-square.expanded .profile-info {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease 0.35s, visibility 0s linear 0s;
    font-size: 13px;
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 25px;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: -0.02em;
  }

  /* Mantener el badge +Info visible en cerrado */
  .perfil-vermas {
    display: flex;
  }

  .profile-hover-square.expanded .perfil-vermas {
    opacity: 0;
  }
}

/* MÓVILES - Comportamiento responsive actual */
@media (max-width: 767px) {

  /* CERRADO */
  .profile-hover-square {
    width: 150px;
    height: 150px;
    bottom: 16px;
    left: 16px;
    
    /* Reducir blur en móvil para mejor rendimiento */
    backdrop-filter: blur(2px);
    
    /* Solo fade en móvil (sin animar tamaños) */
    transition: opacity 0.2s ease !important;
  }

  .profile-hover-square.is-fading {
    opacity: 0;
  }
  
  .profile-image {
    transition: none !important;
  }

  /* EXPANDIDO */
  .profile-hover-square.expanded {
    width: calc(100vw - 40px);  /* Ajustarse al ancho con márgenes */
    height: auto;
    max-height: calc(100vh - 40px);  /* Altura fija con margen seguro */
    flex-direction: column;
    border-radius: 18px;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    overflow-x: hidden;
    
    /* Optimización de scroll en móvil */
    -webkit-overflow-scrolling: touch;
    
    /* Reducir blur en móvil para mejor rendimiento */
    backdrop-filter: blur(2px);
    
    /* Evitar reflow y vibración */
    will-change: transform;
    backface-visibility: hidden;
  }

  .profile-hover-square.expanded .profile-image {
    margin: 0 auto 10px;  /* Reducido de 16px */
    width: 35vw;  /* Escalado proporcional */
    height: 35vw;
    max-width: 180px;  /* Reducido de 200px */
    max-height: 180px;  /* Reducido de 200px */
    flex-shrink: 0;
  }

  .profile-hover-square.expanded .profile-info {
    width: 100%;
    padding: 0;
    font-size: clamp(10px, 2.5vw, 14px);  /* Escalado de fuente */
  }

  .profile-info,
  .close-btn,
  .perfil-vermas {
    transition: none !important;
  }
}

/* Para pantallas muy pequeñas como iPhone SE */
@media (max-width: 380px) {
  .profile-hover-square.expanded .profile-image {
    width: 30vw;
    height: 30vw;
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 12px;
  }

  .profile-hover-square.expanded .profile-info {
    font-size: clamp(9px, 2.2vw, 12px);
  }

  .profile-hover-square.expanded {
    width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    padding: 15px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    backface-visibility: hidden;
  }
}

/* LANDSCAPE (horizontal): solo móviles */
@media (max-width: 767px) and (orientation: landscape) {
  .profile-hover-square.expanded {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    overflow-y: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .profile-hover-square.expanded .profile-image {
    width: 35%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    flex-shrink: 0;
  }

  .profile-hover-square.expanded .profile-info {
    width: 65%;
    height: 100%;
    overflow-y: auto;
    padding: 0 0 0 20px;
    font-size: clamp(10px, 1.8vh, 13px);
  }
}


/* === FOTO DE PERFIL BANNER === */

/* === BLOQUE DE IMAGEN CON TEXTO SUPERIOR IZQUIERDO === */
.bannerImagen {
  width: 100%;
  height: 80vh;  /* mantiene el banner visible */
  margin-bottom: 30px;

  position: relative;
  overflow: hidden;
}

.bannerImagen-img {
  
  width: 100%;
  height: 100%;  /* ocupa todo el contenedor */
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}


.bannerImagen-texto {
  position: absolute;
  top: 0;          /* pegado arriba */
  left: 0;         /* pegado a la izquierda */
  color: white;
  z-index: 2;
  max-width: 1000px;
}

/* Bloque h2 con fondo y padding interno */
.bannerImagen-texto h2 {
  display: inline-block;
  position: relative;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.4px;
  line-height: 1.4;
  padding: 14px 22px;           /* espacio interno dentro del recuadro */
  background-color: #000000be;

}

/* Sin Background */
@media (max-width: 1024px) {
  .bannerImagen-texto h2 {
    background-color: transparent;
    border-radius: 0;
  }
}


.descripcion-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;

  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    padding-top 0.3s ease;
}

/* cuando se abre */
.bannerImagen-texto.open .descripcion-wrapper {
  max-height: 500px;
  opacity: 1;
  padding-top: 18px; /* ← separación REAL del botón */
}


.bannerImagen-texto p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 10px;
  color: #f0f0f0;
}

.bannerImagen-slider {
  position: absolute;     /* 🔑 clave */
  inset: 0;               /* 🔑 llena todo */
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: sliderFade 6s infinite;
}



/* Boton ver mas */

.ver-mas {
  display: block;
  margin-top: 5px;
  margin-bottom: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  letter-spacing: 2px;
  cursor: pointer;
  opacity: 0.85;
}

.ver-mas:hover {
  opacity: 1;
}

.ver-mas .arrow {
  margin-left: 6px;
  font-size: 1.2rem;
  display: inline-block;
  transform: rotate(0deg) scale(1);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.expandible.open .ver-mas .arrow {
  transform: rotate(180deg) scale(1.2);
}






.banner-descripcion {
  display: block;
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 1.3rem;
  font-weight: 300;
  width:  500px;
  color: #f0f0f0;
  text-align: left;
  line-height: 30px;
  padding-left: 18px; /* espacio para el punto */

  transition:
    max-height 0.45s ease,
    opacity 0.3s ease;
}

.banner-descripcion::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.15em;
  color: #ffffff;
  padding-top: 0.5px;
  font-size: 1.2em;
  line-height: 1;
}

.bannerImagen-texto.open .banner-descripcion {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 15px;
  
}



.bannerImagen-texto.open .arrow {
  transform: rotate(45deg);
}
                
.bannerImagen-texto h2.expandible {
  display: inline-block;
  overflow: hidden;
}


/* se hace visible solo cuando entra en pantalla */
.bannerImagen-slider.visible {
  opacity: 1;  
  
}




@keyframes sliderFade {
  0% { background-image: url('../images/secuencia1/1uno.jpg'); }
  33% { background-image: url('../images/secuencia1/1dos.jpg'); }
  66% { background-image: url('../images/secuencia1/1tres.jpg'); }
  100% { background-image: url('../images/secuencia1/1uno.jpg'); }
}

/* === BLOQUE DE IMAGEN CON TEXTO === */

/* === BLOQUE VIDEO === */

.bannerVideo {
  position: relative;
}

/* video de fondo */
.bannerVideo-video {
  position: relative;
  width: calc(100% - 100px);                
  height: calc(100% - 100px);
  object-fit: cover;
  border-radius: 2px;
  filter:none !important
}


/* === BLOQUE PLANIMETRIAS === */


 
/* ===== FIX IMAGEN PLANIMETRIA DESKTOP ===== */

.bannerImagen-imagen {
  width: 100%;
  height: 100%;
  object-fit:cover;   /* 🔑 NO RECORTA */
  object-position: center;
  display: block;
}


/* Responsividad Planimetrias */



/* === SLIDER 12 IMÁGENES === */

/* CONTENEDOR */
.carousel {
  position: relative;
  width: calc(100% - 100px);
  height: 40vh;
  overflow: hidden;
  margin: 0 auto;  
  margin-top: 45px;
}

/* VENTANA */
.carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* TRACK – FORZADO HORIZONTAL */
.carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;

  height: 100%;
  width: max-content; /* 🔑 evita quiebres */
  transition: transform 0.6s ease;
}

.carousel-track.no-transition {
  transition: none !important;
}
/* SLIDE */
.carousel-slide {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;

  flex-shrink: 0 !important;
  height: 100%;
  padding: 0 20px;
}

/* IMAGEN */
.carousel-slide img {
  display: block !important;
  height: 100% !important;
  width: auto !important;      /* 🔑 ancho real */
  max-width: none !important;  /* 🔥 MUY IMPORTANTE */
  object-fit: contain;
}

/* FLECHAS */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 67px;
  height: 67px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 48px;
  cursor: pointer;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* ===== FIX TEXTO SOLO EN EL CARRUSEL ===== */
.carousel .bannerImagen-texto h2.expandible {
  display: block;
  width: 80%;
  max-width: 1000px; /* mismo límite visual */
}

.carousel .banner-descripcion {
  width: 100%;
}

/* ===== RESPONSIVE CARRUSEL ===== */
@media (max-width: 1024px) {
  .carousel {
    width: 100%;
    height: 30vh; /* altura ajustada para mejor visualización */
    margin: 20px 0;
  }

  .carousel-arrow {
    display: none; /* ocultar flechas en móvil */
  }

  .carousel-viewport {
    overflow-x: scroll; /* scroll horizontal habilitado */
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* snap a cada slide */
    -webkit-overflow-scrolling: touch; /* smooth scrolling en iOS */
    scrollbar-width: thin; /* Firefox */
  }

  /* Estilo de scrollbar para navegadores webkit */
  .carousel-viewport::-webkit-scrollbar {
    height: 8px;
  }

  .carousel-viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .carousel-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .carousel-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .carousel-track {
    width: max-content !important; /* ancho total de todos los slides */
    transform: none !important; /* quitar transform para permitir scroll natural */
    transition: none !important; /* quitar transición */
    display: flex;
    flex-direction: row;
    gap: 10px; /* espacio entre slides */
    padding: 0 10px; /* padding para mejor visualización */
  }

  .carousel-slide {
    scroll-snap-align: center; /* snap al centro de cada slide */
    flex-shrink: 0; /* evitar que se compriman */
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-slide img {
    height: 90%;
    width: auto;
    max-width: 1920px; /* limitar a 1080p width */
    max-height: 1080px; /* limitar a 1080p height */
    object-fit: contain;
  }
}


/* === BANNER TITULO === */

.section-title-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
  margin-top: 40px;
  margin-bottom: 40px;
}

.section-title {
  width: 5000px;     /* margen lateral visible */
  max-width: 3000px;
  height: 80px;
  margin-top: 0;
  margin-bottom: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

}



.title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.section-text {
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}




/* === TITULO RESPONSIVE === */

@media (max-width: 1024px) {
  .section-title {
    position: relative;
    margin-bottom: 10px;
  }

  .section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;

    width: 100vw;
    height: 100%;

    background: #000;

    transform: translateX(-50%);
    z-index: -1;
  }
}




  .section-logo {
    width: 30px;
    height: 30px;
  }

  .section-text {
    font-size: 20px;
    letter-spacing: 2.5px;
  }


@media (max-width: 480px) {
  .section-title {
    height: 56px;
    margin-top: 22px;
    max-width: calc(100% - 24px); /* aire lateral real */
  }

  .title-wrapper {
    gap: 10px;
  }

  .section-logo {
    width: 24px;
    height: 24px;
  }

  .section-text {
    font-size: 16px;
    letter-spacing: 1.8px;
    text-align: center;
  }
}




/* === BANNER === */

/* === BANNER DE CARRUSEL DE LOGOS === */
.bannerLogos {
  position: relative;
  width: 100%;
  height: 30vh;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  width: calc(200% + 160px); 
  animation: scrollInfinite 25s linear infinite; /* más rápido también en escritorio */
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* LOGOS */
.logos-slide img {
  width: 190px;
  height: 130px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0; 
}

.logos-slide img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-8.33%); /* -8.33% para 12 sets */
  }
}

/* ===== RESPONSIVE LOGOS ===== */
@media (max-width: 1024px) {
  .bannerLogos {
    height: 20vh; /* altura reducida */
    overflow-x: auto; /* permitir scroll horizontal manual para adelantar */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .logos-track {
    animation: scrollInfinite 15s linear infinite; /* animación automática con loop */
    width: calc(1200% + 960px); /* 1200% para 12 sets */
    display: flex; /* flex para loop */
  }

  .logos-slide img {
    width: 80px; /* logos más pequeños */
    height: 50px;
    flex-shrink: 0; /* no encogerse */
  }

  .logos-slide {
    gap: 15px; /* menos gap para ver más logos */
  }
}

/* Ocultar scrollbar en banner de logos */
.bannerLogos::-webkit-scrollbar {
  display: none;
}
.bannerLogos {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* === BANNER DE CARRUSEL DE OBJETOS === */


/* === BLOQUE DE VIDEO CON TEXTO === */

.bannerVideo {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bannerVideo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
}


.bannerVideo-texto {
  position: absolute;
  top: 80px;
  left: 80px;
  color: white;
  z-index: 2;
  max-width: 1000px;
}

.bannerVideo-texto h2 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 3px;
  line-height: 1.4;
  background-color: #2929297c;
  padding: 10px;
}

.bannerVideo-texto p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 10px;
  color: #f0f0f0;
}
/* === BLOQUE DE VIDEO CON TEXTO === */

/* === RESPONSIVIDAD BLOQUES CON VER MAS === */

@media (max-width: 1024px) {

  .bannerImagen {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0
  }

  /* IMAGEN ARRIBA */
  .bannerImagen-slider {
    position: relative !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
  }

  /* TEXTO ABAJO – QUITA ABSOLUTE */
  .bannerImagen-texto,
  .bannerImagen-texto *,
  .bannerImagen .banner-content {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .bannerImagen-texto {
    width: 100%;
    background: #111;
  }

  .bannerImagen .banner-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .bannerImagen .banner-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .bannerImagen .banner-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .bannerImagen .banner-content button,
  .bannerImagen .banner-content .ver-mas {
    margin-top: 10px;
  }
}

@media (max-width: 1024px) {

  .bannerImagen,
  .bannerImagen * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .bannerImagen p,
  .bannerImagen .contenido-expandido,
  .bannerImagen .texto-expandido,
  .bannerImagen div,
  .bannerImagen span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }
}

@media (max-width: 1024px) {

  /* TODO el texto dentro del bloque */
  .bannerImagen,
  .bannerImagen * {
    font-size: 0.85rem;
  }

  /* Ajuste fino títulos */
  .bannerImagen h2,
  .bannerImagen h3 {
    font-size: 1.05rem;
  }

  /* Botón Ver más */
  .bannerImagen button,
  .bannerImagen .ver-mas {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {

  .bannerImagen,
  .bannerImagen * {
    font-size: 0.8rem;
  }

  .bannerImagen h2,
  .bannerImagen h3 {
    font-size: 0.95rem;
  }

  .bannerImagen button,
  .bannerImagen .ver-mas {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}



@media (max-width: 1024px) {

  /* CONTENEDOR VIDEO */
  .bannerVideo,
  .video-banner,
  .video-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;

  }

  /* VIDEO ARRIBA */
  .bannerVideo video,
  .video-banner video,
  .video-section video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    position: relative !important;
  }

  /* BLOQUE TEXTO ABAJO */
  .bannerVideo-texto,
  .video-texto,
  .video-overlay {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    background: #111;
  }

  /* CONTENIDO INTERNO */
  .bannerVideo-texto *,
  .video-texto *,
  .video-overlay * {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* TÍTULO */
  .bannerVideo h3,
  .video-texto h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  /* TEXTO NORMAL + EXPANDIDO */
  .bannerVideo p,
  .video-texto p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* BOTÓN VER MÁS */
  .bannerVideo button,
  .video-texto button,
  .bannerVideo .ver-mas {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {

  .bannerVideo video,
  .video-banner video,
  .video-section video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1024px) {

  /* CONTENEDOR VIDEO */
  .bannerVideo,
  .video-banner,
  .video-section {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* ⬅ CENTRA */
  }

  /* VIDEO */
  .bannerVideo video,
  .video-banner video,
  .video-section video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;       /* ⬅ CENTRA */
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    object-fit: cover;
  }
}


@media (max-width: 1024px) {

  .bannerImagen,
  .bannerVideo,
  .video-banner,
  .video-section {
    margin-bottom: 6px; /* casi pegados */
  }

  .servicios,
  .bloques,
  .cards,
  .contenedor-banners {
    gap: 6px;
  }
}

@media (max-width: 480px) {

  .bannerImagen,
  .bannerVideo,
  .video-banner,
  .video-section {
    margin-bottom: 4px;
  }

  .servicios,
  .bloques,
  .cards,
  .contenedor-banners {
    gap: 4px;
  }
}


@media (max-width: 1024px) {

  /* QUITAR PANTALLA COMPLETA EN MOBILE */
  .bannerImagen,
  .bannerImagen.bannerVideo,
  .bannerImagen.bannerSlider3 {
    height: auto !important;
    min-height: unset !important;
    padding: 0 !important;
    background-color: #000000 !important;
  }

  /* que queden prácticamente pegados */
  .bannerImagen {
    margin-bottom: 6px !important;
  }

  /* el texto controla la altura */
  .bannerImagen-texto {
    padding: 14px 16px !important;
  }
}

@media (max-width: 480px) {

  .bannerImagen {
    margin-bottom: 4px !important;
  }

  .bannerImagen-texto {
    padding: 12px 14px !important;
  }
}

@media (max-width: 1024px) {

  /* todos los bloques iguales */
  .bannerImagen,
  .bannerImagen.bannerVideo,
  .bannerImagen.bannerSlider3 {
    height: auto !important;
    min-height: unset !important;
    padding: 0 !important;
    margin-bottom: 6px !important; /* 🔑 distancia uniforme reducida */
    margin-top: 0 !important;
  }

  /* último no necesita margen */
  .bannerImagen:last-of-type {
    margin-bottom: 0 !important;
  }

  /* texto controla la altura */
  .bannerImagen-texto {
    padding: 14px 16px !important;
  }
}

@media (max-width: 480px) {

  .bannerImagen,
  .bannerImagen.bannerVideo,
  .bannerImagen.bannerSlider3 {
    margin-bottom: 8px !important; /* un poco más compacto */
  }

  .bannerImagen-texto {
    padding: 12px 14px !important;
  }
}

@media (max-width: 1024px) {

  /* ===== TÍTULOS PRINCIPALES =====
     MODELADO 3D + RENDERS
     ANIMACIONES + IA
  */
  .bannerImagen .titulo,
  .bannerVideo .titulo {
    font-size: 1.35rem !important;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  /* ===== BOTÓN "VER MÁS" ===== */
  .ver-mas,
  .ver-mas * {
    font-size: 0.85rem !important;
    letter-spacing: 0.04em;
  }

  /* ===== CONTENIDO DESPLEGADO ===== */
  .descripcion-wrapper,
  .descripcion-wrapper .banner-descripcion {
    font-size: 0.95rem !important;
    line-height: 1.45;
    letter-spacing: 0.01em; /* 🔽 MENOS ESPACIADO */
  }

}


  /* CONTENEDOR */
 


 



/* ===== PORTAFOLIO ===== */

/* === GALERÍA === */
.galeria-bloque {
  width: calc(100% - 100px);
  margin: 0px auto;
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.galeria-item {
  position: relative;
  margin: 0px;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

/* Hover */
.galeria-item:hover img {
  transform: scale(1.04);
  filter: brightness(100%);
}

/* === TEXTO DENTRO DE LA IMAGEN === */
.galeria-texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 300;
  line-height: 25px;
  letter-spacing: 0;
  box-sizing: border-box;
  pointer-events: none;  /* no bloquea el click */
  display: flex;
  flex-direction: column;
  background-color: #2929298a;
  gap: 4px;
}

.titulo-proyecto {
  font-weight: 700;
  line-height: 1.1;
  display: block;
  margin-bottom: 6px;
}

/* Badge "Ver Proyecto" */
.ver-proyecto-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  letter-spacing: 0.5px;
}

.galeria-item:hover .ver-proyecto-badge {
  opacity: 1;
}

.galeria-video {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* ocupa todo el contenedor sin deformarse */
    border-radius: 3px;
    display: block;         /* evita comportamiento vertical extraño */
}

/* ===== RESPONSIVE: GALERÍA ONE-BY-ONE EN MÓVIL ===== */
@media (max-width: 1024px) {
  .galeria-bloque {
    width: 100%;
    margin: 0;
    margin-top: 0;
    display: block;
    gap: 0;
    /* Scroll vertical integrado con el sitio */
    max-height: unset;
    overflow-y: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
  }

  .galeria-item {
    width: 100%;
    min-height: auto;
    aspect-ratio: unset; /* quitar aspect-ratio para que el texto se vea debajo */
    border-radius: 0;
    margin: 0 0 4px 0; /* menos separación entre proyectos */
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column; /* apilar miniatura encima del texto */
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
  }
  
  /* Mostrar badge siempre en móvil */
  .ver-proyecto-badge {
    opacity: 1;
    font-size: 0.85rem;
    padding: 6px 12px;
    top: 12px;
    right: 12px;
  }

  .galeria-video, .galeria-item img {
    width: 100%;
    /* calcular altura para mantener 16:9 basada en el ancho de la ventana */
    height: calc(100vw * 9 / 16);
    max-height: 55vh; /* límite para pantallas muy altas */
    object-fit: cover;
    display: block;
  }

  /* Texto debajo de la miniatura (formato bloque) */
  .galeria-texto {
    position: static;
    width: 100%;
    margin: 0 0 12px 0; /* eliminar espacio arriba, mantener abajo */
    padding: 14px 12px 10px 12px; /* más espacio arriba del texto */
    background: #111111; /* mismo color que recorridos virtuales */
    color: #fff;
    box-sizing: border-box;
    text-align: left;
    font-size: 0.9rem; /* texto más pequeño en móvil */
  }
}


/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.685);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cerrar:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Botón cerrar en responsive */
@media (max-width: 1024px) {
  .cerrar {
    font-size: 40px;
    width: 40px;
    height: 40px;
    top: 5px;
    right: 5px;
  }
}

/* Botón cerrar en iPhone SE y pantallas muy pequeñas */
@media (max-width: 380px) {
  .cerrar {
    font-size: 35px;
    width: 38px;
    height: 38px;
    top: 5px;
    right: 5px;
  }
}

/* Contenedor del slider */
.slider-contenedor {
  width: 85%;
  max-width: 1200px;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-imagen {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .3s ease;
}

/* Flechas */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 55px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.prev { left: 10px; }
.next { right: 10px; }

.nav:hover {
  color: #cccccc;
}

/* Flechas en responsive */
@media (max-width: 1024px) {
  .nav {
    font-size: 35px;
  }
  
  /* Optimización de imágenes del slider para móvil */
  .slider-imagen {
    background-size: contain;
    width: 100%;
    height: auto;
    min-height: 60vh;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .slider-contenedor {
    width: 95%;
    height: auto;
    min-height: 60vh;
  }
}

/* ===== PORTAFOLIO ===== */

/* ====== BOTON HAMBURGUESA ====== */
.contact-section {
  padding: 100px 20px;
  background-color: #1b1b1b;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

/* ====== FORMULARIO ====== */

.contact-section {
  background-color: #1b1b1b;
  padding: 100px 20px;
  width: 100%;
  opacity: 1;
  visibility: visible;
}

.contact-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  color: white;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 40px;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 16px;
  color: white;
  font-size: 0.9rem;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.4);
}

/* botón */
.contact-button {
  margin-top: 10px;
  align-self: center;
  padding: 14px 36px;
  background: white;
  color: #1b1b1b;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* === SOCIALS CONTACTO === */
.contact-container {
  position: relative;
}

.contact-socials {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 16px;
}

.contact-socials a {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.contact-socials svg {
  width: 100%;
  height: 100%;
  fill: white;
}

/* mobile ajuste */
@media (max-width: 1024px) {
  .contact-socials {
    position: static;
    margin-top: 30px;
    justify-content: center;
  }
}




/* mobile */
@media (max-width: 1024px) {

  .contact-section {
    padding: 70px 16px;
  }

  .contact-title {
    font-size: 1.8rem; /* título más pequeño */
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .form-group {
    flex-direction: column;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.85rem; /* texto más pequeño en inputs */
    padding: 12px 14px;
  }

  .contact-button {
    padding: 12px 30px;
    font-size: 0.8rem;
  }

}

/* ====== BOTON HAMBURGUESA ====== */

/* ====== viewer360 ====== */

.panorama-section {
  position: relative;
  width: 100%;
  height: 80vh;
  background: #111;
  overflow: hidden;
  display: grid;
}

#panorama {
  width: 100%;
  height: 100%;
}

/* Plano */
.floorplan {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 220px;
}

.floorplan img {
  width: 100%;
  border-radius: 8px;
  opacity: 0.95;
}

/* Puntos */
.hotspot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.hotspot:hover {
  background: #ccc;
}

.panorama-section {
  position: relative;
  width: 100%;
  height: 80vh;
  background: #111;
  overflow: hidden;
}

/* Preview */
.panorama-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Imagen abajo */
.panorama-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Botón arriba */
.panorama-play {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;   /* 🔴 CLAVE */

  padding: 14px 26px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.panorama-section {
  position: relative;
  width: 100%;
  height: 80vh;
  background: #111;
  overflow: hidden;
}

/* Preview */
.panorama-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.panorama-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Botón play */
.panorama-play {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* Viewer */
#viewer360 {
  position: absolute;
  inset: 0;
  display: none;
}

/* Botón salir */
.panorama-exit {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);

  display: none; /* oculto hasta entrar al 360 */
}

.panorama-preview {
  transition: opacity 0.8s ease;
  opacity: 1;
}

.panorama-preview.hidden {
  opacity: 0;
}

/* ====== VIEWER 360 · VER MÁS ====== */

.viewer360-titulo {
  width: 100%;
  box-sizing: border-box;
}

.viewer360-titulo .expandible {
  max-width: 100%;
}

.viewer360-titulo .descripcion-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.viewer360-titulo .banner-descripcion {
  display: block;
  max-width: 100%;
  line-height: 1.5;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Título móvil - oculto por defecto */
.bannerImagen-texto.viewer360-titulo-mobile {
  display: none;
  position: relative;
  color: white;
  z-index: 15;
  max-width: 1000px; /* mismo ancho máximo que otros títulos */
  margin: 0 auto; /* eliminar margen para pegar al viewer */
  text-align: left;
  height: auto;
  min-height: 0;
  top: auto;
  left: auto;
  background-color: #111111; /* cambiar a negro para que sea visible */
}

/* Aplicar estilos similares a los otros títulos */
.bannerImagen-texto.viewer360-titulo-mobile h2 {
  display: inline-block;
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.4px;
  line-height: 1.2;
  padding: 10px 16px; /* reducir padding para altura más compacta */
  background-color: #ff0000be;
  border-radius: 0;
}

.bannerImagen-texto.viewer360-titulo-mobile .expandible {
  max-width: 100%;
}

.bannerImagen-texto.viewer360-titulo-mobile .descripcion-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease, padding-top 0.3s ease;
}

.bannerImagen-texto.viewer360-titulo-mobile.open .descripcion-wrapper {
  max-height: 500px;
  opacity: 1;
  padding-top: 18px;
}

.bannerImagen-texto.viewer360-titulo-mobile .banner-descripcion {
  display: block;
  max-width: 100%;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}


/* ===== VIEWER 360: AJUSTES SOLO EN MOBILE ===== */
@media (max-width: 1024px) {

  /* Permitir que el contenido se expanda más allá de 80vh para mostrar el título */
  .panorama-section {
    overflow: visible;
    height: auto;
    min-height: 80vh;
  }

  /* Ajustar preview para que no cubra el título móvil */
  .panorama-preview {
    z-index: 3; /* reducir z-index para que el título móvil aparezca encima */
  }

  /* Ocultar título desktop en móvil */
  .viewer360-titulo {
    display: none;
  }

  /* Mostrar título móvil en móvil */
  .bannerImagen-texto.viewer360-titulo-mobile {
    display: inline-block; /* ajustar exactamente al contenido */
    margin: 0 auto; /* eliminar margen para pegar al viewer */
    position: relative;
    overflow: hidden; /* eliminar espacio extra */
    line-height: 1; /* reducir line-height del contenedor */
  }

  .bannerImagen-texto.viewer360-titulo-mobile h2 {
    background-color: transparent; /* sin background en mobile como los otros títulos */
    border-radius: 0;
  }

  .bannerImagen-texto.viewer360-titulo-mobile .titulo {
    font-size: 1.3rem;
    line-height: 1.2;
  }
}















/* === FIX LAYOUT GLOBAL === */
html, body {
  height: auto !important;
  min-height: 100%;
  overflow-y: auto !important;
}

/* si tienes un wrapper principal */
main,
.wrapper,
.page-wrapper,
.content {
  height: auto !important;
  overflow: visible !important;
}

#inicio,
#servicios,
#proyectos,
#contacto {
  scroll-margin-top: 90px; /* ajusta si tu header es más alto */
}

/* ===== RESPONSIVE LANDSCAPE EN TODOS LOS DISPOSITIVOS ===== */
@media (orientation: landscape) and (max-height: 500px) {
  
  /* Header más compacto */
  .main-header {
    height: 60px;
    padding: 0 20px;
  }
  
  body {
    padding-top: 60px;
  }
  
  .logo img {
    height: 35px;
  }
  
  /* Banner más bajo */
  .banner {
    height: 100vh;
  }
  
  .banner-content h1 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
  }
  
  .banner-content p {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  /* Perfil más pequeño */
  .profile-hover-square {
    width: 120px;
    height: 120px;
    bottom: 2vh;
    left: 2vh;
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
  }
  
  /* Títulos de sección más compactos */
  .titulo-banner {
    padding: 12px 0 !important;
    margin: 10px 0 !important;
  }
  
  .titulo-banner h1 {
    font-size: 1.3rem !important;
  }
  
  /* Bloques de imagen/video más bajos */
  .bannerImagen {
    height: 60vh !important;
    margin-bottom: 8px !important;
  }
  
  .bannerImagen-slider {
    height: 100% !important;
  }
  
  .bannerImagen-texto {
    padding: 10px 12px !important;
  }
  
  .bannerImagen-texto h2 {
    font-size: 1.1rem !important;
    padding: 8px 12px !important;
  }
  
  .bannerImagen-texto p {
    font-size: 0.75rem !important;
  }
  
  /* Videos */
  .bannerVideo,
  .video-banner,
  .video-section {
    height: 60vh !important;
  }
  
  .bannerVideo video,
  .video-banner video,
  .video-section video {
    max-height: 60vh !important;
  }
  
  .bannerVideo-texto {
    padding: 8px 12px !important;
  }
  
  .bannerVideo-texto h2 {
    font-size: 1.2rem !important;
  }
  
  .bannerVideo-texto p {
    font-size: 0.8rem !important;
  }
  
  /* Logos más compactos */
  .bannerLogos {
    height: 20vh;
  }
  
  .logos-slide img {
    width: 120px;
    height: 80px;
  }
  
  /* Viewer 360 */
  .panorama-section {
    min-height: 70vh;
  }
  
  .panorama-preview {
    height: 70vh;
  }
  
  /* Portafolio */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
  }
  
  .portfolio-item img {
    height: 140px;
  }
  
  /* Modal de imágenes - aprovechar el espacio horizontal */
  .modal {
    padding: 15px;
  }
  
  .slider-contenedor {
    width: 95%;
    height: auto;
    min-height: 70vh;
  }
  
  .slider-imagen {
    height: auto;
    min-height: 70vh;
  }
  
  .nav {
    font-size: 30px !important;
  }
  
  /* Footer más compacto */
  .site-footer {
    padding: 15px;
    font-size: 0.75rem;
  }
  
  /* Ajustar sección de contacto */
  .contact-section {
    padding: 40px 15px;
  }
  
  .section-title-wrap {
    margin: 20px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* ===== TABLETS EN LANDSCAPE - MODAL DE PROYECTOS MAXIMIZADO ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  
  /* Modal de proyectos - imágenes maximizadas en 16:9 */
  .modal {
    padding: 0 !important;
  }
  
  .slider-contenedor {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 60px;
  }
  
  .slider-imagen {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100vw / 16 * 9) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  
  /* Flechas de navegación */
  .nav {
    font-size: 45px !important;
    z-index: 10001;
  }
  
  .prev {
    left: 15px !important;
  }
  
  .next {
    right: 15px !important;
  }
  
  /* Botón cerrar */
  .cerrar {
    top: 15px !important;
    right: 15px !important;
    font-size: 40px !important;
    width: 45px !important;
    height: 45px !important;
    z-index: 10002;
  }
}

/* ===== MÓVILES EN LANDSCAPE - MODAL DE PROYECTOS MAXIMIZADO ===== */
@media (max-width: 767px) and (orientation: landscape) {
  
  /* Modal de proyectos - imágenes maximizadas en 16:9 */
  .modal {
    padding: 0 !important;
  }
  
  .slider-contenedor {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 50px;
  }
  
  .slider-imagen {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100vw / 16 * 9) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  
  /* Flechas de navegación */
  .nav {
    font-size: 35px !important;
    z-index: 10001;
  }
  
  .prev {
    left: 10px !important;
  }
  
  .next {
    right: 10px !important;
  }
  
  /* Botón cerrar */
  .cerrar {
    top: 10px !important;
    right: 10px !important;
    font-size: 35px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 10002;
  }
}


