/* ========================================================
   ESTILOS GENERALES Y RESET
   ======================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #000000;
  color: #ffffff;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06090c;
}
::-webkit-scrollbar-thumb {
  background: #52c234;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #61dd3e;
}

/* ========================================================
   HEADER & NAVBAR
   ======================================================== */
header {  
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(82, 194, 52, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: #e0e0e0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.navbar ul li:hover > a,
.navbar ul li a:focus-visible {
  background: linear-gradient(to right, #061700, #52c234);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(82, 194, 52, 0.35);
  outline: none;
}

/* Submenús Dropdown */
.navbar ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(10, 15, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 1000; 
  border: 1px solid rgba(82, 194, 52, 0.35);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 250px;
  flex-direction: column;
}

.navbar ul li:hover ul,
.navbar ul li:focus-within ul {
  display: flex;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar ul li ul li {
  width: 100%;
}

.navbar ul li ul li a {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 0;
  justify-content: space-between;
  width: 100%;
}

.navbar ul li ul li a:hover,
.navbar ul li ul li a:focus-visible {
  background: rgba(82, 194, 52, 0.2);
  color: #52c234;
  box-shadow: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px; 
  color: white;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.5px;
  user-select: none;
}

.icono {
  width: 32px; 
  height: 32px;
  filter: invert(1);
  border-radius: 50%;
  object-fit: cover;
}	

.icono2 {
  width: 20px; 
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}	

/* ========================================================
   HERO SECTION & SLIDER
   ======================================================== */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 550px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out; 
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 18px;
  letter-spacing: 4px;
  color: #52c234;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-size: 54px;
  margin: 10px 0 24px 0;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero button {
  background: linear-gradient(to right, #061700, #52c234);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 34px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(82, 194, 52, 0.4);
  transition: all 0.3s ease;
}

.hero button:hover,
.hero button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(82, 194, 52, 0.65);
  background: linear-gradient(to right, #0a2500, #61dd3e);
  outline: none;
}

.flechas {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  padding: 0 24px;
  pointer-events: none;
}

.flecha {
  cursor: pointer;
  font-size: 38px;
  color: rgba(255, 255, 255, 0.85);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: auto;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flecha:hover,
.flecha:focus-visible {
  color: #52c234;
  background: rgba(0, 0, 0, 0.8);
  border-color: #52c234;
  transform: scale(1.1);
  outline: none;
}

/* ========================================================
   BURBUJAS FLOTANTES EXPANDIBLES
   ======================================================== */
.burbuja {
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 0 20px rgba(255,255,255,0.5);
  border: 3px solid rgba(82, 194, 52, 0.7);
  z-index: 2;
  cursor: pointer;
  animation: flotarBurbuja 6s ease-in-out infinite alternate;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.burbuja::after {
  content: '\f00e'; /* Icono de búsqueda */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(6, 23, 0, 0.6);
  color: #52c234;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burbuja:hover {
  transform: scale(1.15) translateY(-5px);
  border-color: #ffffff;
  box-shadow: 0 15px 35px rgba(82, 194, 52, 0.6), inset 0 0 25px rgba(255,255,255,0.8);
}

.burbuja:hover::after {
  opacity: 1;
}

/* Posiciones específicas para las 3 burbujas */
.burbuja-1 {
  width: 140px;
  height: 140px;
  top: 18%;
  left: 8%;
  background-image: url('https://staticprd.minuto30.com/wp-content/uploads/2024/04/SOMOS_ESPACIOS-88.jpg');
  animation-duration: 5s;
}

.burbuja-2 {
  width: 170px;
  height: 170px;
  bottom: 12%;
  right: 10%;
  background-image: url('https://i.imgur.com/rZpjNTm.jpg');
  animation-duration: 7s;
  animation-delay: -2s;
}

.burbuja-3 {
  width: 120px;
  height: 120px;
  top: 22%;
  right: 15%;
  background-image: url('https://i.imgur.com/z8gcudR.jpg');
  animation-duration: 6s;
  animation-delay: -1s;
}

@keyframes flotarBurbuja {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
  100% { transform: translateY(12px) rotate(-3deg); }
}

/* ========================================================
   MODAL RECTANGULAR AMPLIO AL DESPLEGAR BURBUJAS
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(18, 26, 36, 0.98);
  border: 1px solid rgba(82, 194, 52, 0.5);
  border-radius: 20px;
  width: 100%;
  max-width: 750px; /* Modal más ancho */
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.9), 0 0 35px rgba(82, 194, 52, 0.25);
  transform: scale(0.85) translateY(30px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #52c234;
  color: black;
  transform: rotate(90deg);
}

/* CONTENEDOR RECTANGULAR AMPLIO */
.modal-img-wrapper {
  width: 100%;
  max-width: 650px;        /* Ancho amplio horizontal */
  height: 320px;           /* Altura panorámica suficiente */
  margin: 0 auto 20px auto;
  border-radius: 12px;     /* Bordes suavemente redondeados (no círculo) */
  border: 2px solid #52c234;/* Borde verde estilizado */
  box-shadow: 0 0 25px rgba(82, 194, 52, 0.35);
  overflow: hidden;
  background-size: contain;/* Muestra la imagen completa sin recortar esquinas */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #0b0f15;
}

.modal-title {
  font-size: 26px;
  color: #ffffff;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.modal-badge {
  display: inline-block;
  background: rgba(82, 194, 52, 0.2);
  color: #52c234;
  border: 1px solid rgba(82, 194, 52, 0.4);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.modal-desc {
  color: #b0bec5;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 0 15px;
}

.modal-btn {
  background: linear-gradient(to right, #061700, #52c234);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(82, 194, 52, 0.4);
}
/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: linear-gradient(to right, #000000, #152331);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0 0 16px 0;
  color: #90a4ae;
  line-height: 1.6;
}

.mini-botones {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  background-color: #263238;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.btn-mini:hover,
.btn-mini:focus-visible {
  background-color: #52c234;
  color: #000000;
  font-weight: bold;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 194, 52, 0.4);
  outline: none;
}

/* ========================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ======================================================== */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
    gap: 12px;
  }
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .navbar ul li ul {
    position: static;
    box-shadow: none;
    background-color: rgba(6, 23, 0, 0.95);
    margin-top: 4px;
  }
  .logo {
    margin-left: 0;
  }
  body {
    padding-top: 110px;
  }
  .hero {
    height: calc(100vh - 110px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
  .hero h2 {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .hero button {
    padding: 12px 24px;
    font-size: 14px;
  }
  .burbuja-1 { width: 95px; height: 95px; left: 5%; top: 12%; }
  .burbuja-2 { width: 115px; height: 115px; right: 5%; bottom: 8%; }
  .burbuja-3 { width: 80px; height: 80px; right: 12%; top: 16%; }
  .flechas {
    padding: 0 10px;
  }
  .flecha {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .modal-content {
    padding: 24px 18px;
  }
  .modal-img-wrapper {
    width: 170px;
    height: 170px;
  }
  .modal-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  .navbar ul li a {
    padding: 8px 10px;
    font-size: 12px;
  }
  .burbuja-1 { width: 75px; height: 75px; left: 4%; top: 10%; }
  .burbuja-2 { width: 90px; height: 90px; right: 4%; bottom: 6%; }
  .burbuja-3 { width: 65px; height: 65px; right: 8%; top: 14%; }
}
