* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}
/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enlaces de navegación */
.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 80%;
}

/* Contenedor de iconos */
.icons-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-button {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.icon-button:hover {
  background: rgba(37, 99, 235, 0.1);
}

.user-icon {
  width: 24px;
  height: 24px;
  color: #374151;
}

.user-menu {
  position: relative;
}

.user-name {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #374151;
  font-size: 14px;
}

.user-name:hover {
  background: rgba(37, 99, 235, 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: rgba(37, 99, 235, 0.05);
  color: #2563eb;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 3;
  }

  .nav-container {
    padding: 0 15px;
  }

  .navbar-brand {
    order: 1;
  }

  .icons-container {
    order: 2;
    margin-right: 15px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .nav-links li a {
    font-size: 18px;
    padding: 15px 30px;
  }

  /* Ajustar dropdown en móvil */
  .dropdown-content {
    position: fixed;
    right: 15px;
    left: auto;
    min-width: 180px;
  }
}

@media screen and (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
  }

  .navbar-brand img {
    height: 35px;
  }

  .icons-container {
    margin-right: 10px;
    gap: 10px;
  }

  .dropdown-content {
    right: 10px;
    min-width: 160px;
  }
}

/* Estilos para el contenido demo */
.content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.demo-section h2 {
  color: #1f2937;
  margin-bottom: 15px;
}

.demo-section p {
  color: #6b7280;
  line-height: 1.6;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
}

.search-container {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
  margin: 0 30px;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.icons-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Estilos generales de los botones de icono */
.icon-button {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  color: #333;
}

/* Ajuste del tamaño de los íconos */
.icon-button svg {
  width: 28px;
  height: 28px;
}

/* Efecto al pasar el mouse */
.icon-button:hover {
  transform: scale(1.2);
  color: #007bff; /* Cambia a azul brillante al pasar el mouse */
}

/* Contador del carrito */
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 50%;
}

/* Hero Section con Carrusel */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.slide1 {
  background: url("./imagenes/carrusel_hikvision.png"); /* Reemplaza con el nombre de tu imagen */
  background-size: cover;
  background-position: center;
}

.slide2 {
  background: url("imagenes/carrusel_ezviz.png"); /* Reemplaza con el nombre de tu imagen */
  background-size: cover;
  background-position: center;
}

.slide3 {
  background: url("imagenes/carrusel_imou.png"); /* Reemplaza con el nombre de tu imagen */
  background-size: cover;
  background-position: center;
}
.brand-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2rem auto;
  max-width: 90%;
  overflow: hidden;
}

.brand-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.brand-carousel img {
  width: 300px;
  height: 80px;
  object-fit: contain; /* ajusta la imagen sin deformarla */
  transition: transform 0.3s;
  filter: grayscale(100%);
  cursor: pointer;
  background-color: white; /* por si el logo tiene fondo transparente */
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.brand-carousel img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.carousel-btn {
  background-color: #2a5298;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 1;
}

.carousel-btn:hover {
  background-color: #1a3a6f;
}

.left {
  position: absolute;
  left: 0;
}

.right {
  position: absolute;
  right: 0;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: #1e3c72;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #f0f8ff;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}
/* Sección de Ubicaciones */
.locations {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafe 0%, #e6f3ff 100%);
}

.locations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.location-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(30, 60, 114, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
}

.location-info h3 {
  color: #1e3c72;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.location-info p {
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.location-btn {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

.map-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(30, 60, 114, 0.1);
}

.map-tabs {
  display: flex;
  background: #f8fafe;
  border-bottom: 1px solid #e0e8f0;
}

.map-tab {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.map-tab.active {
  color: #1e3c72;
  background: white;
}

.map-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.map-tab:hover:not(.active) {
  background: rgba(30, 60, 114, 0.05);
  color: #1e3c72;
}

.map-frame {
  display: none;
  height: 400px;
  position: relative;
}

.map-frame.active {
  display: block;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
}

.map-frame iframe:hover {
  filter: grayscale(0%) contrast(1.2);
}

/* Botón flotante para Google Maps */
.map-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.open-maps-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.open-maps-btn:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

/* Sección de Categorías */
.categories {
  padding: 5rem 0;
  background: #f8fafe;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  color: #1e3c72;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  border-radius: 2px;
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.category-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(42, 82, 152, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(30, 60, 114, 0.2);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-title {
  font-size: 1.5rem;
  color: #1e3c72;
  margin-bottom: 1rem;
}

.category-description {
  color: #666;
  font-size: 0.9rem;
}

/* Sección Sobre Nosotros */
.about-section {
  padding: 5rem 0;
  background: white;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.about-content h2 {
  font-size: 2.5rem;
  color: #1e3c72;
  margin-bottom: 2rem;
}

.about-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Estilos para la imagen y stats */
.about-image-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-image {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 5px solid #2a5298;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 450px;
}

.mission-vision {
  background: #f8fafe;
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid #2a5298;
}

.mission-vision h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 450px;
}

.stat-item {
  text-align: center;
  padding: 1.2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2a5298;
}

.stat-label {
  color: #666;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    width: 250px;
    height: 250px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* Footer */
.footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: white;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: white;
  color: #1e3c72;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 150px;
  }

  .search-box:focus {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .category-card {
    padding: 1.5rem;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse; /* ← clave para mostrar lista hacia arriba */
  align-items: flex-end;
}

.whatsapp-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.whatsapp-main-btn:hover {
  transform: scale(1.1);
}

.whatsapp-main-btn img {
  width: 35px;
  height: 35px;
}

.whatsapp-contacts {
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 10px;
  margin-bottom: 10px; /* separa la lista del botón */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-option {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-option:last-child {
  border-bottom: none;
}

.contact-option:hover {
  background: #f0f0f0;
}

.contact-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* círculo */
  object-fit: cover;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-name {
  font-weight: bold;
  display: block;
}

.contact-role {
  font-size: 12px;
  color: #555;
}
@font-face {
  font-family: "TituloFont";
  src: url("./fuentes/montserrat/Montserrat-Bold.otf") format("truetype");
}

@font-face {
  font-family: "TextoFont";
  src: url("./fuentes/Poppins/Poppins-Bold.ttf") format("truetype");
}
body {
  font-family: "TextoFont", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "TituloFont", sans-serif;
}
.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.open-modal-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.open-modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
  background: linear-gradient(45deg, #ff5252, #d63031);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px); /* <- importante */
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  padding: 20px; /* Agregado para móviles */
  box-sizing: border-box; /* Agregado */
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-container {
  background: white;
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: slideIn 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh; /* Agregado para móviles */
  overflow-y: auto; /* Agregado para scroll si es necesario */
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.modal-subtitle {
  opacity: 0.9;
  font-size: 0.9rem;
  font-weight: 300;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10; /* Agregado para que esté siempre visible */
}

.close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: 40px 30px;
}

.form-tabs {
  display: flex;
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 50px;
  padding: 5px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #666;
}

.tab-btn.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-container {
  display: none;
}

.form-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
  width: 50%;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box; /* Agregado */
}

.form-group input::placeholder {
  color: #999;
  font-weight: 400;
}

.form-group input:focus::placeholder {
  color: #ccc;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-upload-container {
  border: 2px dashed #e1e8ed;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-container:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.file-upload-container.dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.file-upload-icon {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 10px;
}

.file-upload-text {
  color: #666;
  font-size: 0.9rem;
}

.file-upload-input {
  display: none;
}

.file-selected {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
}

.file-name {
  color: #667eea;
  font-weight: 500;
  margin-top: 10px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-sizing: border-box; /* Agregado */
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.switch-form {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 0.9rem;
}

.switch-form button {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

.switch-form button:hover {
  color: #764ba2;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape1 {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation-delay: -2s;
}

.shape2 {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 20px;
  top: 70%;
  right: 10%;
  animation-delay: -4s;
}

.shape3 {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 80%;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* RESPONSIVE MEJORADO PARA MÓVILES */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-start; /* Cambiado de center a flex-start */
    padding: 10px; /* Reducido el padding */
    overflow-y: auto; /* Permitir scroll vertical */
  }

  .modal-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: none; /* Quitamos la restricción de altura */
    min-height: 100vh; /* Altura completa de la pantalla */
    border-radius: 0; /* Sin bordes redondeados para aprovechar toda la pantalla */
    overflow-y: visible; /* Permitir que el contenido se extienda */
  }

  .modal-header {
    padding: 20px 15px; /* Reducido el padding */
  }

  .modal-title {
    font-size: 1.5rem; /* Reducido el tamaño */
  }

  .modal-subtitle {
    font-size: 0.8rem;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 20px 15px 40px 15px; /* Más padding inferior para el botón */
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 15px; /* Reducido el margen */
    width: 100%;
  }

  .form-group {
    margin-bottom: 15px; /* Reducido el margen */
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 12px; /* Reducido el padding */
    font-size: 16px; /* Tamaño mínimo para evitar zoom en iOS */
  }

  .file-upload-container {
    padding: 15px; /* Reducido el padding */
  }

  .file-upload-icon {
    font-size: 1.5rem; /* Reducido el tamaño */
  }

  .file-upload-text {
    font-size: 0.8rem;
  }

  .submit-btn {
    padding: 12px; /* Reducido el padding */
    font-size: 1rem; /* Reducido el tamaño */
    margin-top: 15px;
  }

  .tab-btn {
    padding: 10px 15px; /* Reducido el padding */
    font-size: 0.9rem; /* Reducido el tamaño */
  }

  .form-tabs {
    margin-bottom: 20px; /* Reducido el margen */
  }
}

/* PARA MÓVILES MUY PEQUEÑOS */
@media (max-width: 480px) {
  .modal-container {
    width: 98%; /* Un poco más de espacio */
    margin: 5px auto; /* Margen mínimo */
    border-radius: 15px; /* Bordes redondeados más pequeños pero presentes */
  }

  .modal-header {
    padding: 15px 10px;
    border-radius: 15px 15px 0 0; /* Mantener redondeo en la parte superior */
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 15px 10px 30px 10px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 10px;
  }

  .file-upload-container {
    padding: 12px;
  }
}

.alert-container {
  background: rgba(255, 255, 255, 0.85);
  color: #2a3b5f;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estilo para el mensaje informativo en móviles */
@media (max-width: 768px) {
  .info-message {
    font-size: 12px !important;
    padding: 8px !important;
    margin-top: 6px !important;
  }
}

/* Icono animado */
.success-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.5),
      0 0 0 10px rgba(76, 175, 80, 0.1);
  }
  100% {
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  }
}

.checkmark {
  width: 40px;
  height: 40px;
  position: relative;
}

.checkmark::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 12px;
  border: 3px solid rgb(255, 255, 255);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -8px;
  animation: checkmark-draw 0.6s ease-in-out 0.3s both;
}

@keyframes checkmark-draw {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 20px;
    height: 0;
  }
  100% {
    width: 20px;
    height: 12px;
  }
}

/* Título y texto */
.alert-title {
  color: #1f2e4a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.alert-message {
  color: #1f2e4a;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Información del usuario */
.user-info {
  background: #1900ff1a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(68, 0, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-details {
  color: #1f2e4a;
}

.user-name {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}

.user-email {
  color: #1f2e4a;
  font-size: 14px;
}

/* Botón de continuar */
.continue-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: fadeInUp 0.8s ease-out 1s both;
  position: relative;
  overflow: hidden;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.continue-btn:active {
  transform: translateY(0);
}

/* Efectos de brillo */
.continue-btn::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;
}

.continue-btn:hover::before {
  left: 100%;
}

/* Indicador de tiempo */
.time-indicator {
  position: absolute;
  top: 15px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .alert-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .alert-title {
    font-size: 24px;
  }

  .success-icon {
    width: 70px;
    height: 70px;
  }
}
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.user-menu {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
}

.user-menu .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  border-radius: 8px;
  overflow: hidden;
}

.user-menu .dropdown-content a {
  color: #1f2e4a;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.user-menu .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.user-menu.active .dropdown-content {
  display: block;
}
.alert-mini {
  background: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 20px;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
  }
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.title {
  color: #2d3748;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.message {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
}

.alert-mini {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

@media (max-width: 320px) {
  .alert-mini {
    padding: 18px;
    max-width: 260px;
  }

  .title {
    font-size: 15px;
  }

  .message {
    font-size: 13px;
  }
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
.input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none; /* Para navegadores WebKit */
  -moz-user-select: none; /* Para Firefox */
  -ms-user-select: none; /* Para IE/Edge */
  user-select: none;
  color: #555;
  z-index: 2;
}
.oculto {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}
