body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #e5e7eb;
  color: #222;
}
header nav {
  background: #fff;
  border-bottom: 1.5px solid #111;
  padding: 0.5em 0;
}
header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
header nav ul li {
  margin: 0 1.5em;
}
header nav ul li a {
  color: #111;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}
.seccion {
  margin: 4em auto;
  padding: 0;
  min-height: 90vh;
  position: relative;
  background: #fff;
  border: 4px solid #111;
  border-radius: 14px;
  max-width: 1500px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.separador {
  width: 100%;
  border: none;
  border-top: 1.5px solid #111;
  margin: 0 0 2em 0;
}
.banda-negra {
  display: flex;
  align-items: center;
  color: #111;
  padding: 0.5em 2em 0.5em 2em;
  gap: 1em;
  font-weight: bold;
  font-size: 1.2em;
  background: none;
  border: none;
}
.banda-negra img {
  height: 48px;
  width: auto;
}
.portada {
  display: flex;
  position: relative;
  min-height: 60vh;
  background: #fff;
}
.portada-izq {
  width: 100%;
  overflow: hidden;
}
.portada-izq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portada-der {
  width: 33.33%;
  display: flex;
  align-items: center;
  justify-content: left;
  background: #fff;
}
.portada-der img {
  max-width: 80%;
  max-height: 250px;
}
.proyectos .tarjetas-proyectos {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  padding: 2em 0;
}
.tarjeta-proyecto {
  background: #e9ecef;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  width: 380px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.tarjeta-proyecto.visible {
  opacity: 1;
  transform: translateY(0);
}
.tarjeta-proyecto:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tarjeta-proyecto img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}
.tarjeta-proyecto h3 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}
.automatizaciones {
  background: url('assets/images/burbu.png') center/cover no-repeat #fff;
  min-height: 550px;
  position: relative;
}
.tecnologias {
  min-height: 45vh;
}
.burbujas-container {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: center;
  padding: 2em 0;
}
.burbuja {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 3px solid #111;
  object-fit: cover;
  background: #fff;
  animation: flotar 4s infinite ease-in-out alternate;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.burbuja.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Desincronizar burbujas */
.burbuja:nth-child(2) {
  animation-duration: 5s;
  animation-delay: -2s;
}
.burbuja:nth-child(3) {
  animation-duration: 3.8s;
  animation-delay: -0.5s;
}
.burbuja:nth-child(4) {
  animation-duration: 4.5s;
  animation-delay: -3s;
}
.burbuja:nth-child(5) {
  animation-duration: 6s;
  animation-delay: -1s;
}
.burbuja:nth-child(6) {
  animation-duration: 4.1s;
  animation-delay: -2.5s;
}
.burbuja:nth-child(7) {
  animation-duration: 5.5s;
  animation-delay: 0s;
}
.burbuja:nth-child(8) {
  animation-duration: 3.9s;
  animation-delay: -1.8s;
}
.burbuja:nth-child(9) {
  animation-duration: 4.8s;
  animation-delay: -4s;
}
.burbuja:nth-child(10) {
  animation-duration: 5.2s;
  animation-delay: -1.2s;
}

@keyframes flotar {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}
.slider-tecnologias {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  padding: 2em 1em;
  align-items: center;
  background: #fff;
  justify-content: center;
  overflow-x: visible;
}

.tecnologia-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tecnologia-tooltip img {
  height: 60px;
  width: auto;
  filter: grayscale(0.2);
  background: #fff;
  border-radius: 10px;
  padding: 0.5em;
  border: 1px solid #e0e0e0;
  transition: filter 0.2s;
}

.tecnologia-tooltip:hover img {
  filter: grayscale(0) drop-shadow(0 2px 8px #4285f4aa);
}

.tecnologia-tooltip::after {
  content: attr(data-nombre);
  position: absolute;
  left: 50%;
  bottom: -2.2em;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 1em;
  padding: 0.3em 0.8em;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

.tecnologia-tooltip:hover::after {
  opacity: 1;
}

.contacto {
  min-height: 65vh;
}

.contacto .tarjeta-contacto {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  max-width: 600px;
  margin: 2em auto;
  padding: 2.5em 1.5em;
  gap: 2em;
  border: 1px solid #e0e0e0;
  animation: glow-contacto 2.2s ease-in-out infinite alternate;
}

@keyframes glow-contacto {
  0% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0px #4fc3f7;
    border-color: #e0e0e0;
  }
  60% {
    box-shadow: 0 2px 16px 2px #4fc3f7aa, 0 0 8px #4fc3f7;
    border-color: #4fc3f7;
  }
  100% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0px #4fc3f7;
    border-color: #e0e0e0;
  }
}

.foto-contacto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}
.info-contacto {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.icono-contacto {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 0.5em;
}
.logo-tarjeta-contacto {
  max-width: 150px;
  margin-top: 0;
}
.scroll-to-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  width: 50px;
  height: 50px;
  background-color: rgba(20,20,20,0.97);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top img {
  width: 35px;
  height: 35px;
}

footer {
  background: #fff;
  color: #888;
  text-align: center;
  padding: 1.5em 0 1em 0;
  font-size: 1em;
  margin-top: 2em;
  border-top: 1.5px solid #111;
}
.menu-portada {
  position: absolute;
  top: 1.5em;
  right: 2em;
  z-index: 10;
  background: rgba(20,20,20,0.97);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 0.5em 1.5em;
}
.menu-portada ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}
.menu-portada ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.08em;
  transition: color 0.2s;
}
.menu-portada ul li a:hover {
  color: #ffd700;
}
.portada {
  position: relative;
}

.portada-texto-marca {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #222;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 #fff;
  z-index: 4;
  background: rgba(255,255,255,0.85);
  padding: 0.4em 1.2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1700px) {
  .seccion {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .seccion {
    max-width: 99vw;
    margin: 1em 0;
    border-radius: 8px;
  }
}

#typewriter {
  border-right: 2px solid #222;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: #222; }
  50% { border-color: transparent; }
}

.menu-separador {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 0.3em;
  pointer-events: none;
  user-select: none;
  display: inline-block;
}

.modal-automatizacion {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
}
.modal-automatizacion.activo {
  display: flex;
}
.modal-contenido {
  background: #fff;
  border-radius: 18px;
  padding: 2em 2.5em 1.5em 2.5em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 420px;
  width: 90vw;
  text-align: center;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) both;
}
@keyframes modalIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-contenido img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1em;
}
.modal-contenido h3 {
  margin: 0.5em 0 0.3em 0;
  font-size: 1.3em;
  color: #222;
}
.modal-contenido p {
  color: #444;
  font-size: 1em;
  margin: 0.5em 0 0 0;
}
.modal-cerrar {
  position: absolute;
  top: 0.7em;
  right: 1em;
  font-size: 2em;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.modal-cerrar:hover {
  color: #222;
}

.tooltip-automatizacion {
  display: none;
  position: fixed;
  z-index: 3000;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  padding: 1.2em 1.5em 1em 1.5em;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.18s;
  opacity: 0;
}
.tooltip-automatizacion.visible {
  display: block;
  opacity: 1;
}
#tooltip-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.7em;
}
#tooltip-titulo {
  margin: 0.3em 0 0.2em 0;
  font-size: 1.1em;
  color: #222;
}
#tooltip-desc {
  color: #444;
  font-size: 0.98em;
  margin: 0.2em 0 0 0;
}

/* Modal Galería de Proyectos */
.modal-galeria {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  overflow: auto;
}
.modal-galeria.activo {
  display: flex;
}
.modal-galeria-contenido {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px 18px 20px;
  max-width: 600px;
  width: 92vw;
  max-height: 96vh;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.slider-imagen-container {
  width: 100%;
  max-width: 520px;
  min-width: 180px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
#galeria-imagen {
  max-width: 100%;
  max-height: 36vh;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(66,133,244,0.08);
  margin-bottom: 8px;
}
#galeria-titulo {
  font-size: 1.6rem;
  margin: 1em 0 0.5em 0;
  color: #174ea6;
}
.galeria-descripcion {
  font-size: 1.05rem;
  color: #222;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 14px 14px;
  margin-top: 0.5em;
  text-align: left;
  min-width: 120px;
  max-width: 520px;
  max-height: 28vh;
  overflow-y: auto;
}
.galeria-descripcion ul {
  margin: 0.5em 0 0 1.2em;
  padding-left: 1.2em;
  list-style: disc inside;
  font-size: 1.03rem;
  color: #333;
}
.slider-puntos {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-punto {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b0c4de;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.slider-punto.activo {
  background: #4285f4;
}
@media (max-width: 900px) {
  .modal-galeria-contenido {
    max-width: 99vw;
    max-height: 98vh;
    padding: 10px 2vw 8px 2vw;
  }
  .slider-imagen-container {
    width: 96vw;
    min-width: 120px;
    max-width: 99vw;
    min-height: 80px;
  }
  #galeria-imagen {
    max-height: 28vw;
  }
  .galeria-descripcion {
    max-width: 96vw;
    max-height: 28vh;
    padding: 10px 2vw;
  }
}
@media (max-width: 600px) {
  .modal-galeria-contenido {
    max-width: 99vw;
    padding: 6px 1vw 6px 1vw;
  }
  .slider-imagen-container {
    width: 99vw;
    height: 54vw;
    min-height: 120px;
  }
  #galeria-imagen {
    max-height: 48vw;
  }
}
@media (max-width: 700px) {
  .modal-galeria-contenido {
    max-width: 98vw;
    width: 98vw;
    padding: 10px 2vw 8px 2vw;
  }
  .slider-imagen-container {
    max-width: 98vw;
    min-width: 80px;
  }
  .galeria-descripcion {
    max-width: 98vw;
    padding: 10px 2vw;
  }
}

@media (max-width: 600px) {
  .seccion {
    margin: 0.5em 0;
    padding: 0.5em 0.2em;
    border-width: 2px;
    min-height: unset;
  }
  .menu-portada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    margin-bottom: 0;
  }
  .menu-portada ul {
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
  }
  .banda-negra {
    padding: 0.3em 0.5em;
    font-size: 1em;
    gap: 0.5em;
  }
  .banda-negra img {
    height: 32px;
  }
  .portada {
    flex-direction: column;
    min-height: unset;
    padding-top: 56px; /* Altura aproximada del menú */
  }
  .portada-izq img,
  .portada-der img {
    max-width: 100%;
    max-height: 120px;
  }
  .portada-texto-marca {
    font-size: 1.1rem;
    padding: 0.2em 0.5em;
  }
  .tarjetas-proyectos {
    flex-direction: column;
    gap: 1em;
    padding: 1em 0.2em;
  }
  .tarjeta-proyecto {
    width: 98vw;
    min-width: unset;
    padding: 0.5em;
  }
  .tarjeta-proyecto img {
    height: 110px;
  }
  .burbujas-container {
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em 0.2em;
  }
  .burbuja {
    width: 80px;
    height: 80px;
  }
  #tooltip-img {
    max-height: 120px;
  }
  .slider-tecnologias {
    gap: 1em;
    padding: 1em 0.2em;
  }
  .tecnologia-tooltip img {
    height: 36px;
    padding: 0.2em;
  }
  .contacto .tarjeta-contacto {
    flex-direction: column;
    gap: 1em;
    padding: 1em 0.5em;
    max-width: 98vw;
  }
  .foto-contacto {
    width: 80px;
    height: 80px;
  }
  .logo-tarjeta-contacto {
    max-width: 90px;
  }
  .scroll-to-top {
    width: 36px;
    height: 36px;
    bottom: 1em;
    right: 1em;
  }
  .scroll-to-top img {
    width: 22px;
    height: 22px;
  }
  footer {
    font-size: 0.9em;
    padding: 1em 0 0.5em 0;
  }
  .menu-hamburguesa {
    display: block;
    background: none;
    border: none;
    font-size: 2.1em;
    color: #fff;
    position: absolute;
    top: 8px;
    right: 18px;
    z-index: 1100;
    cursor: pointer;
    padding: 0.1em 0.3em;
  }
  #menu-list {
    display: none;
    flex-direction: column;
    background: rgba(20,20,20,0.97);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 0.5em 0;
    z-index: 1050;
  }
  #menu-list.menu-visible {
    display: flex;
  }
  .menu-portada ul {
    position: static;
    box-shadow: none;
    background: none;
    padding: 0;
  }
  .modal-galeria-contenido {
    max-width: 98vw;
    padding: 10px 2vw 8px 2vw;
  }
  .slider-imagen-container {
    width: 96vw;
    height: 48vw;
    min-height: 160px;
  }
  #galeria-imagen {
    max-height: 40vw;
  }
}

@media (min-width: 601px) {
  .menu-hamburguesa {
    display: none;
  }
} 

/* Estilos para la página de reservas */
.header-reservas {
  background: #fff;
  border-bottom: 1.5px solid #111;
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2em;
}

.logo-header {
  height: 60px;
  width: auto;
}

.nav-reservas {
  display: flex;
  align-items: center;
}

.nav-link {
  color: #111;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border: 2px solid #111;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #111;
  color: #fff;
}

.seccion-demo {
  margin: 1em auto;
  padding: 0;
  min-height: 60vh;
  position: relative;
  background: #fff;
  border: 4px solid #111;
  border-radius: 14px;
  max-width: 1800px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.demo-container {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.video-section {
  width: 100%;
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.video-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-section h2 {
  color: #222;
  font-size: 1.5rem;
  margin-bottom: 1em;
  font-weight: 600;
}

.video-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2em auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #000;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Nuevo layout para video pequeño con badges laterales */
.video-layout {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 0;
}

  .video-container-small {
    flex: 0 0 350px;
    width: 350px;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #000;
  }
  
  /* Video del panel más grande */
  #video-panel .video-container-small {
    flex: 0 0 700px;
    width: 700px;
    max-width: 700px;
  }

.video-container-small video {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
  object-fit: contain;
}

.texto-destacado-lateral {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: flex-start;
  margin-top: 0;
}

.titulo-lateral {
  color: #222;
  font-size: 1.3rem;
  margin-bottom: 1em;
  font-weight: 600;
  text-align: left;
}

.texto-destacado {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 1.5em;
}

.badge {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  padding: 0.5em 1em;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(66,133,244,0.3);
  transition: transform 0.2s ease;
}

  .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66,133,244,0.4);
  }

/* Estilos para la sección de beneficios */
.seccion-beneficios {
  margin: 2em auto;
  padding: 0;
  min-height: 60vh;
  position: relative;
  background: #fff;
  border: 4px solid #111;
  border-radius: 14px;
  max-width: 1500px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.beneficios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding: 1.5em;
  max-width: 1200px;
  margin: 0 auto;
}

.beneficio-item {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2em;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.beneficio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(66,133,244,0.15);
  border-color: #4285f4;
}

.beneficio-icono {
  font-size: 3rem;
  margin-bottom: 1em;
  display: block;
}

.beneficio-item h3 {
  color: #222;
  font-size: 1.3rem;
  margin-bottom: 1em;
  font-weight: 600;
}

.beneficio-item p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive para la página de reservas */
@media (max-width: 900px) {
  .header-content {
    padding: 0 1em;
  }
  
  .logo-header {
    height: 50px;
  }
  
  .nav-link {
    font-size: 1em;
    padding: 0.4em 0.8em;
  }
  
  .seccion-demo {
    max-width: 98vw;
    margin: 1em auto;
  }
  
  .demo-container {
    padding: 1em;
  }
  
  .video-section h2 {
    font-size: 1.5rem;
  }
  
  .texto-destacado {
    gap: 0.8em;
  }
  
  .badge {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
  }
  
  .video-layout {
    flex-direction: column;
    gap: 1em;
    align-items: center;
    max-width: 1200px;
  }
  
  .video-container-small {
    flex: none;
    width: 300px !important;
    max-width: 300px !important;
  }
  
  #video-panel .video-container-small {
    width: 600px !important;
    max-width: 600px !important;
  }
  
  .texto-destacado-lateral {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 1em;
    padding: 0.5em 1em;
  }
  
  .logo-header {
    height: 40px;
  }
  
  .seccion-demo {
    max-width: 99.5vw;
    border-width: 2px;
    border-radius: 8px;
  }
  
  .demo-container {
    padding: 0.5em;
  }
  
  .video-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1em;
  }
  
  .texto-destacado {
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }
  
  .badge {
    font-size: 0.75em;
    padding: 0.3em 0.6em;
  }
  
  .video-layout {
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    max-width: 1000px;
  }
  
  .video-container-small {
    flex: none;
    width: 250px !important;
    max-width: 250px !important;
  }
  
  #video-panel .video-container-small {
    width: 500px !important;
    max-width: 500px !important;
  }
  
  .texto-destacado-lateral {
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    max-width: 300px;
  }
  
  .titulo-lateral {
    font-size: 1rem;
    text-align: center;
  }
  
  .titulo-lateral {
    font-size: 1.1rem;
    text-align: center;
  }
  

  
  .seccion-beneficios {
    max-width: 99vw;
    border-width: 2px;
    border-radius: 8px;
  }
  
  .beneficios-container {
    grid-template-columns: 1fr;
    gap: 1em;
    padding: 1em;
  }
  
  .beneficio-item {
    padding: 1.5em;
  }
  
  .beneficio-icono {
    font-size: 2.5rem;
  }
  
  .beneficio-item h3 {
    font-size: 1.1rem;
  }
  
  .beneficio-item p {
    font-size: 0.9rem;
  }
}

.modal-galeria-cerrar {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2.5rem;
  color: #4285f4;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  background: none;
  border: none;
  padding: 0.2em 0.5em;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
}
.modal-galeria-cerrar:hover {
  color: #174ea6;
  background: #e3e9f7;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 25px;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: whatsappFloat 3s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float:active {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: rotate(10deg) scale(1.1);
}

.whatsapp-text {
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}

.whatsapp-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text::after {
  width: 100%;
}

@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive para el botón de WhatsApp */
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 20px;
  }
  
  .whatsapp-float img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
  }
  
  .whatsapp-text {
    font-size: 12px;
  }
  
  .whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
  }
}

/* Etiqueta de precio */
.precio-etiqueta {
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

.precio-texto {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 15px;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  animation: precioGlow 2s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.precio-texto::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes precioGlow {
  from {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transform: scale(1);
  }
  to {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.7);
    transform: scale(1.05);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive para la etiqueta de precio */
@media (max-width: 600px) {
  .precio-texto {
    font-size: 1.1em;
    padding: 0.5em 1em;
  }
}

/* Botón del proceso */
.proceso-boton-container {
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

.proceso-boton {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: 2px solid #ff6b35;
  padding: 1em 2em;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.proceso-boton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.proceso-boton:hover::before {
  left: 100%;
}

.proceso-boton:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  border-color: #f7931e;
}

.proceso-boton:active {
  transform: translateY(-1px) scale(1.02);
}

/* Responsive para el botón del proceso */
@media (max-width: 600px) {
  .proceso-boton {
    font-size: 0.9em;
    padding: 0.6em 1.2em;
  }
}

/* Estilos para el recuadro de proceso */
.proceso-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin: 2em auto;
  max-width: 800px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proceso-contenido {
  padding: 2em;
}

.proceso-contenido h3 {
  color: #222;
  font-size: 1.5rem;
  margin-bottom: 1.5em;
  text-align: center;
}

.proceso-pasos {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.paso {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding: 1em;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4285f4;
}

.paso-numero {
  background: #4285f4;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.paso-contenido h4 {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.paso-contenido p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.proceso-cta {
  text-align: center;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 2px solid #e0e0e0;
}

.proceso-cta p {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 1em;
  font-weight: 600;
}

.cta-boton {
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  padding: 1em 2em;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66,133,244,0.3);
}

.cta-boton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66,133,244,0.4);
}

@media (max-width: 600px) {
  .proceso-info {
    margin: 1em auto;
    max-width: 95vw;
  }
  
  .proceso-contenido {
    padding: 1.5em;
  }
  
  .proceso-contenido h3 {
    font-size: 1.3rem;
  }
  
  .paso {
    padding: 0.8em;
  }
  
  .paso-contenido h4 {
    font-size: 1rem;
  }
  
  .paso-contenido p {
    font-size: 0.9rem;
  }
} 