/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background: #222;
}

/* ===== SLIDER PRINCIPAL ===== */
.slider {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  background: #222;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  padding: 8px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Tableta */
@media (min-width: 768px) {
  .slide {
    padding: 30px;
  }
}

/* ===== LOGO CENTRADO ===== */
.logo-slider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 35vw;
  max-width: 300px;
  min-width: 100px;
  height: auto;
  z-index: 3;
  background: rgba(255, 255, 255, 0.60);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Móviles medianos */
@media (min-width: 480px) {
  .logo-slider {
    width: 20vw;
    padding: 6px;
    border-radius: 10px;
  }
}

/* Tableta */
@media (min-width: 768px) {
  .logo-slider {
    width: 25vw;
    padding: 12px;
    border-radius: 12px;
  }
}

/* Tablets verticales */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .logo-slider {
    width: 40vw !important;
  }
}

/* Escritorio */
@media (min-width: 1024px) {
  .logo-slider {
    padding: 1.5vw;
    border-radius: 16px;
  }
}

/* ⭐ CAJA DE TÍTULO - SIMPLE Y FIJA */
.slide h2,
.slider__titulo {
  position: absolute;
  left: 4%;
  bottom: 45px;    /* FIJO: siempre 45px desde abajo */
  font-size: 1.1rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  width: fit-content;
  max-width: 90vw;
  z-index: 2;
  text-align: left;
  margin: 0;
}

/* Solo ajustes de tamaño - posición siempre igual */
@media (min-width: 768px) {
  .slide h2,
  .slider__titulo {
    font-size: 1.8rem;
    padding: 8px 16px;
  }
  
  .btn-detalle {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* COMENTADO: Ya consolidado arriba con .slide h2 */
/* .slider__titulo {
  position: absolute;
  left: 4%;
  bottom: 10%;
} */

/* ⭐ CAJA DE DETALLE - SIMPLE Y FIJA */
.btn-detalle {
  position: absolute;
  left: 4%;
  bottom: 10px;    /* FIJO: siempre 10px desde abajo */
  background: coral;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
  z-index: 2;
  text-align: center;
  line-height: 1.2;
  min-width: 80px;
  height: 32px;
}

.btn-detalle:hover {
  background: darkorange;
}

/* Ajustes solo para móviles muy pequeños */
@media (max-width: 480px) {
  .slide h2,
  .slider__titulo {
    font-size: 1rem;
  }
  
  .btn-detalle {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* Móviles verticales - ajustar para no chocar con contactos */
@media (max-width: 767px) and (orientation: portrait) {
  .slide h2,
  .slider__titulo {
    bottom: 125px;  /* FIJO: arriba del botón de contacto */
  }
  
  .btn-detalle {
    bottom: 90px;   /* FIJO: arriba del botón de contacto */
  }
}



/* ===== TÍTULO SLIDER FONDO ===== */
/* .slider__titulo {
  position: absolute;
  left: 4%;
  bottom: 10%;
} */
/* COMENTADO: Se sobrescribe en media queries específicas más abajo */

/* 🚫 ELIMINADO: Móviles ahora usan las mismas reglas % que escritorio */
/* Las 3 cajas se mueven juntas con los mismos porcentajes */

/* 🚫 ELIMINADO: Móviles ahora usan las mismas reglas % que escritorio */
@media (max-width: 767px) and (orientation: landscape) {
  .logo-slider {
    width: 27vw !important;
    max-width: 210px !important;
  }
  
  /* DevSurf alineado con la parte baja de los contactos */
  .dev-credit {
    bottom: 10px !important;
  }
}

/* Pantallas móviles verticales como 360x740 - logo más grande */
@media (max-width: 400px) and (orientation: portrait) {
  .logo-slider {
    width: 50vw !important;
    max-width: none !important;
    min-width: 150px !important;
  }
}

/* Móviles verticales - DevSurf a la izquierda abajo */
@media (max-width: 767px) and (orientation: portrait) {
  .dev-credit {
    left: 10px !important;
    bottom: 10px !important;
    transform: none !important;
  }
}

/* 🚫 ELIMINADO: Pantallas estrechas ahora usan las mismas reglas % */
@media (max-width: 350px) and (orientation: portrait) {
  .dev-credit {
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
  }
}

/* ===== FLECHAS NAVEGACIÓN ===== */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 2px;
  z-index: 2;
  user-select: none;
  transition: background-color 0.3s;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.arrow-left {
  left: 15px;
}

.arrow-right {
  right: 15px;
}

/* Tableta */
@media (min-width: 768px) {
  .slider-arrow {
    font-size: 50px;
    padding: 10px;
  }
}

/* COMENTADO: Navegación de puntos (círculos) */
/* .slider-nav {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.slider-nav span {
  display: inline-block;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.6);
  margin: 0 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-nav span.active {
  background: coral;
} */

/* ===== MODAL ===== */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 10px;
}

.modal-bg.active {
  display: flex;
}

.modal-content {
  background: lightgray;
  max-width: 100vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 4px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  width: 100%;
  gap: 0px;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tableta */
@media (min-width: 768px) {
  .modal-content {
    max-width: 98vw;
    padding: 10px;
  }
}

/* Escritorio */
@media (min-width: 1024px) {
  .modal-content {
    max-width: 900px;
    padding: 20px;
  }
}

/* ===== MODAL - ELEMENTOS ===== */
.modal-mapa {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  user-select: none;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.modal-close:hover {
  color: coral;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-images {
  display: flex;
  background-color: beige;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.modal-images img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
}

/* Tableta */
@media (min-width: 768px) {
  .modal-images img {
    width: calc(50% - 10px);
  }
}

/* Escritorio */
@media (min-width: 1024px) {
  .modal-images img {
    width: calc(33.333% - 10px);
  }
}

.modal-title {
  background-color: rgb(172, 161, 161);
  color: #222;
  display: block;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
  position: relative;
  left: -4px;
  width: calc(100% + 8px);
  padding: 8px 8px;
  margin: 12px 0 0 0;
}

/* Tableta */
@media (min-width: 768px) {
  .modal-title {
    left: -10px;
    width: calc(100% + 20px);
    padding: 10px 12px;
    margin: 14px 0 0 0;
  }
}

/* Escritorio */
@media (min-width: 1024px) {
  .modal-title {
    font-size: 1.8rem;
    left: -20px;
    width: calc(100% + 40px);
    padding: 12px 20px;
    margin: 18px 0 0 0;
  }
}

.modal-description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* ===== FOOTER CONTACTO ===== */
.contact-footer {
  position: fixed;
  right: 10px;
  bottom: 10px;
  background: #00000080;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}

.whatsapp-message {
  margin-bottom: 8px;
  font-weight: bold;
  line-height: 1.2;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.phone-line {
  display: flex;
  align-items: center;
  margin: 3px 0;
  width: 100%;
  justify-content: center;
}

.bi-telephone-fill {
  color: #25d366;
  font-size: 0.9em;
  margin-right: 5px;
}

.contact-footer a {
  color: #fff;
  text-decoration: none;
}

/* COMENTADO: OVERRIDE FINAL duplicado - ya está definido arriba */
/* @media screen and (max-width: 350px) and (orientation: portrait) {
  html .slider .slide .btn-detalle {
    position: absolute !important;
    left: 4% !important;
    bottom: 5% !important;
    z-index: 999 !important;
  }
  
  html .slider .slide .slider__titulo {
    position: absolute !important;
    left: 4% !important;
    bottom: 22% !important;
  }
  
  html .dev-credit {
    position: fixed !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
  }
} */