/* CSS Variables for Theming */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --header-bg: rgba(255, 255, 255, 0.87);
  --card-bg: #fff;
  --dropdown-bg: #ffffff;
  --hover-bg: #f5f5f5;
  --border-color: #eee;
  --primary-color: #2575fc;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: rgba(30, 30, 30, 0.95);
  --card-bg: #1e1e1e;
  --dropdown-bg: #1e1e1e;
  --hover-bg: #2c2c2c;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Aplicar a contenedores principales */
.hero,
.service-card,
.card,
.dropdown,
.notifications-dropdown,
.section-title {
  border-radius: 12px !important;
}

/* Botones y elementos pequeños */
.nav-btn,
.user-btn,
.notification-badge {
  border-radius: 8px !important;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* El padding-top usará el safe-area si existe (APK), si no, será 10px (Web) */
  padding: 10px 15px; 
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  min-height: 60px;
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.left-section {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.right-section {
  display: flex;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
  z-index: 11;
}

.logo {
  height: 32px; /* Reducido de 40px a 32px */
  transition: transform 0.3s;
}

.brand-text {
  margin-left: 8px;
  font-size: 20px; /* Reducido de 24px a 20px */
  font-weight: 700;
  color: #000000;
  transition: transform 0.3s;
}

.branding:hover .logo,
.branding:hover .brand-text {
  transform: scale(1.05);
}

.left-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: 20px;
}

.right-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-right: 15px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #a041f8;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background-color: #9b30ff;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-btn {
  width: 36px;  /* Reducido de 40px */
  height: 36px;
  border-radius: 50%;
  background-color: #387bf8;
  color: #ffffff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-btn:hover {
  background-color: #9b30ff;
  transform: scale(1.15);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ========================================= */
/* --- MENÚ DESPLEGABLE DEL USUARIO --- */
/* ========================================= */

/* Contenedor relativo para que el menú no se mueva de su sitio */
.user-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  /* Se alinea exactamente con el botón */
  top: calc(100% + 10px);
  /* Un poco más de respiro hacia abajo */
  background-color: var(--dropdown-bg);
  /* Soporte modo claro/oscuro */
  box-shadow: 0 8px 24px var(--shadow-color);
  /* Sombra más elegante */
  border-radius: 12px;
  /* Bordes más modernos */
  border: 1px solid var(--border-color);
  /* Borde sutil */
  min-width: 220px;
  /* Un poco más ancho para que los textos respiren */
  z-index: 1000;
  padding: 8px 0;
  /* Espaciado interno superior e inferior */
}

.dropdown.show {
  display: flex;
  flex-direction: column;
  animation: dropFadeIn 0.25s ease-out forwards;
  /* Animación fluida */
}

@keyframes dropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown a,
.dropdown button {
  padding: 12px 20px;
  text-align: left;
  background: none;
  border: none;
  width: 100%;
  font-size: 14.5px;
  color: var(--text-color);
  /* Soporte modo claro/oscuro */
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dropdown a:hover,
.dropdown button:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
  padding-left: 24px;
  /* Pequeño desplazamiento a la derecha al hacer hover */
}

/* ========================================= */
/* --- TOGGLE SWITCH (MODO OSCURO) --- */
/* ========================================= */

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
  background-color: var(--primary-color, #2563eb);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Estilos para el cuerpo principal */
.main-content {
  scroll-behavior: smooth;
  overflow-y: auto;

}

/* Hero Section Mejorada */
.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0%;
  border-radius: 0 0 20px 20px;
  /* Esquinas inferiores redondeadas */
  overflow: hidden;
  /* Para que el contenido respete el redondeo */
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #2A2A2A;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #4A4A4A;
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.hero-btn:hover {
  transform: translateY(-3px);
}

/* Sección Misión/Visión */
.about-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
  background: #F8FAFF;
}

.about-card {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.highlight-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  padding: 15px 0;
}

/* Servicios Mejorados */
.services {
  padding: 80px 0;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-details {
  margin-top: 15px;
  list-style: none;
  padding-left: 0;
}

.service-details li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #666;
  position: relative;
  padding-left: 25px;
}

.service-details li:before {
  content: "✓";
  color: #6a11cb;
  position: absolute;
  left: 0;
}

/* Proceso de Trabajo */
.work-process {
  padding: 80px 0;
  background: #F9F9F9;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 12px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: #2575fc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-details li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-btn {
    width: 100%;
  }

  .about-card {
    padding: 20px;
  }
}

footer {
  text-align: center;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333333;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 11;
  margin-left: 15px;
}

.mobile-menu-btn img {
  width: 24px;
  height: 24px;
}

/* mobile-nav configurado en viewport mobile */
.mobile-nav {
  display: none;
}

/* Nuevos estilos para el botón de notificaciones */
/* Botón de notificaciones con icono rosado, fondo y borde negros */
.notifications-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;  /* Reducido de 32px */
  height: 30px;
  background-color: #ffffff;
  /* Fondo negro */
  border: 2px solid #ff0000;
  /* Borde negro */
  border-radius: 50%;
  /* Forma circular */
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
  padding: 4px;
  /* Espacio interno */
}

.notifications-btn img {
  width: 30px;
  /* Ajustado por el borde */
  height: 30px;
  filter: brightness(0) saturate(100%) invert(48%) sepia(90%) saturate(1200%) hue-rotate(300deg) brightness(100%) contrast(90%);
}

.notifications-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  /* Sutil sombra al hover */
}

.notifications-btn:hover img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(90%) saturate(1500%) hue-rotate(320deg) brightness(110%) contrast(100%);
}


.mobile-notification-btn {
  display: none;
  margin: 10px auto;
}

@media (max-width: 992px) {

  .left-buttons,
  /* Oculta botones de la izquierda */
  .right-buttons {
    /* Oculta botones de la derecha */
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    /* Muestra el botón de hamburguesa */
  }

  .header {
    justify-content: space-between;
  }

  /* Esto es opcional pero recomendado, para que el logo no ocupe todo el espacio */
  .left-section {
    flex-grow: 0;
  }

  /* ESTILOS DEL MENÚ FLOTANTE MÓVIL */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 5px);
    right: 15px;
    width: 250px;
    background-color: var(--dropdown-bg, #ffffff);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;

    /* Transición Suave */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 8px 0;
    border: 1px solid var(--border-color, #eee);
  }

  .mobile-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Estilos de los Enlaces del menú flotante */
  .mobile-nav .nav-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    color: var(--text-color, #333);
    padding: 15px 20px;
    margin: 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color, #eee);
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    box-sizing: border-box;
    text-align: left;
    justify-content: flex-start;
  }

  .mobile-nav .nav-btn:last-child {
    border-bottom: none;
  }

  .mobile-nav .nav-btn:hover {
    background-color: var(--hover-bg, #f5f5f5);
    transform: none;
    /* Previene el scale de .nav-btn global */
    box-shadow: none;
  }

  .mobile-nav .nav-btn .btn-icon {
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .right-section {
    gap: 10px;
    /* Espacio ligeramente menor en móviles muy pequeños */
  }

  .notifications-btn {
    width: 28px;
    height: 28px;
  }

  .notifications-btn img {
    width: 18px;
    height: 18px;
  }

  .mobile-menu-btn {
    padding: 8px;
  }

  .mobile-menu-btn img {
    width: 20px;
    height: 20px;
  }

  .user-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}


@media (max-width: 768px) {
  .brand-text {
    display: none;
    /* Ahorrar espacio en móvil ocultando el texto, dejando solo el logo si es pequeño */
  }

  .logo {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 5px 10px;
    padding-top: calc(5px + env(safe-area-inset-top, 0px)) !important;
    min-height: 50px;
  }

  /* Mostrar texto de marca solo si hay espacio, o abreviado */
  .brand-text {
    display: block;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo {
    height: 26px;
  }

  .user-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hero {
    padding: 30px 15px;
    /* Menos padding lateral */
  }

  .hero-text h1 {
    font-size: 1.8rem;
    /* Título más controlado */
  }

  .cards {
    gap: 15px;
    /* Menos espacio entre tarjetas */
  }

  .card {
    flex: 1 1 100%;
    /* Tarjetas ocupan ancho completo en móvil */
    margin-bottom: 10px;
  }
}

/* Contenedor principal de notificaciones */
.notifications-wrapper {
  position: relative;
  margin-right: 10px;
}

/* Badge de notificaciones */
.notification-badge {
  display: none;
  /* <-- ¡AÑADE ESTA LÍNEA PARA OCULTARLO POR DEFECTO! */
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

/* Dropdown de notificaciones */
.notifications-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 350px;
  max-height: 500px;
  background-color: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow-color);
  z-index: 1000;
  overflow-y: auto;
}

.notifications-dropdown.show {
  display: block;
  animation: dropFadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Encabezado */
.notifications-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text-color);
}

.mark-all-read {
  background: none;
  border: none;
  color: #2575fc;
  font-size: 12px;
  cursor: pointer;
  padding: 5px;
}

/* Lista de notificaciones */
.notifications-list {
  padding: 0;
}

.notification {
  display: flex;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.notification.unread {
  background-color: var(--hover-bg);
}

.notification:hover {
  background-color: var(--hover-bg);
  opacity: 0.9;
}

.notification-icon {
  font-size: 20px;
  margin-right: 12px;
  color: #2575fc;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin: 0 0 4px 0;
  font-size: 14px;
}

.notification-text {
  margin: 0 0 4px 0;
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
}

.notification-time {
  margin: 0;
  font-size: 11px;
  color: #999;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 10px;
  align-self: flex-start;
}

/* Pie de notificaciones */
.notifications-footer {
  padding: 12px 15px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.notifications-footer a {
  color: #2575fc;
  text-decoration: none;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .notifications-dropdown {
    width: 300px;
    right: -50px;
  }
}

@media (max-width: 480px) {
  .notifications-dropdown {
    width: 280px;
    right: -80px;
  }
}

/* ----- Hero ----- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  gap: 40px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* ----- Sección Servicios ----- */
.services {
  padding: 60px 20px;
  background: #f9f9f9;
}

.section-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  width: max-content !important;
  background: white !important;
  /* Fondo blanco */
  padding: 15px 40px !important;
  /* Espaciado interno */
  box-shadow: 0 4px 12px rgba(42, 49, 102, 0.1) !important;
  /* Sombra consistente */
  border-radius: 12px !important;
  /* Bordes redondeados */
}

/* Línea decorativa mejorada */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    width: 90% !important;
    white-space: normal;
    padding: 12px 25px !important;
    /* Ajuste móvil */
  }
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 250px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 50px;
  margin-bottom: 15px;
}

/* ----- Por qué elegirnos ----- */
.why-choose {
  padding: 60px 20px;
}

.features-list {
  list-style: disc inside;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* ----- Testimonios ----- */
.testimonials {
  padding: 60px 20px;
  background: #f9f9f9;
}

.testimonials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  font-style: italic;
  position: relative;
  padding: 20px;
  background: #fff;
  border-left: 4px solid #a041f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.testimonial footer {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
}

/* ----- CTA Final ----- */
.cta-final {
  padding: 60px 20px;
  text-align: center;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-final p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.cta-btn {
  background-color: #a041f8;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-btn:hover {
  background-color: #9b30ff;
}

/* Estilo Corporativo Premium */
:root {
  --primary-color: #0f172a;
  /* Azul oscuro elegante */
  --accent-color: #2563eb;
  /* Azul vibrante */
  --dark-text: #1e293b;
  --light-text: #475569;
  --bg-light: #f8fafc;
  /* Grisáceo ligero para separar secciones */
}

/* Método de Trabajo */
.work-process {
  padding: 100px 20px;
  background: var(--bg-light);
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 15px 0;
  letter-spacing: -0.5px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Hero Section Corporativa */
.hero {
  padding: 120px 20px 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  padding-bottom: 0%;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  margin: 25px 0;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--accent-color);
  color: white;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s;
}

.cta-icon {
  width: 24px;
  height: 24px;
  margin-left: 15px;
  fill: white;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.hero-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.achievement-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  background: var(--accent-color);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.4;
}

/* Servicios Corporativos */
.enterprise-services {
  padding: 100px 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  padding: 8px 0;
  color: var(--light-text);
  position: relative;
  padding-left: 25px;
}

.service-list li:before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.4rem;
}

/* Valores Corporativos */
.corporate-values {
  padding: 100px 20px;
  background: var(--bg-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-card h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    margin-top: 50px;
    margin-bottom: 0px;
  }

  .hero-divider {
    margin: 25px auto;
  }
}

@media (max-width: 768px) {
  .corporate-values {
    grid-template-columns: 1fr;
  }

  .section-main-title {
    font-size: 2rem;
  }

  .work-process,
  .how-it-works,
  .benefits-section,
  .enterprise-services,
  .corporate-values,
  .testimonials-modern,
  .faq-section {
    padding: 60px 15px;
  }

  .hero {
    padding: 80px 15px 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .process-steps,
  .steps-grid,
  .service-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-main-title,
  .benefits-text h2,
  .cta-container h2 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .step-box,
  .service-card,
  .value-card,
  .testimonial-glass,
  .faq-item {
    padding: 25px 20px;
  }

  .benefits-list li {
    font-size: 1rem;
  }
}

/* --- NUEVAS SECCIONES --- */

/* Cómo Funciona */
.how-it-works {
  padding: 100px 20px;
  background: #ffffff;
  text-align: center;
}

.how-it-works .section-title {
  margin-bottom: 50px !important;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-box {
  position: relative;
  padding: 40px 30px;
  background: var(--bg-light);
  border-radius: 16px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-box:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.step-number-modern {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-icon-modern {
  font-size: 3rem;
  margin-bottom: 20px;
  margin-top: 10px;
}

.step-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.step-box p {
  color: var(--light-text);
  line-height: 1.6;
}

/* Beneficios */
.benefits-section {
  padding: 100px 20px;
  background: #f1f5f9;
  /* Gris azulado muy claro */
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
}

.benefits-text p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 30px;
  line-height: 1.6;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--dark-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.benefit-check {
  color: var(--accent-color);
  font-weight: bold;
  background: rgba(37, 99, 235, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA Final */
.final-cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #1e3a8a 100%);
  text-align: center;
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-container p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.large-btn {
  font-size: 1.3rem;
  padding: 18px 40px;
  background: white;
  color: var(--accent-color);
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.large-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .benefits-container {
    grid-template-columns: 1fr;
  }

  .benefits-text {
    order: 2;
  }

  .benefits-image-container {
    order: 1;
  }

  .benefits-text h2,
  .cta-container h2 {
    font-size: 2rem;
  }
}

/* AÑADE ESTO al final de public/css/Pagina_Principal.css */

.user-btn-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  /* Asegura que la imagen llene el círculo sin deformarse */
  cursor: pointer;
  border: 2px solid #2575fc;
  transition: transform 0.3s, box-shadow 0.3s;
}

.user-btn-img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

/* AÑADE ESTO al final de public/css/Pagina_Principal.css */

.user-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Vanilla JS Carousel Hero */
.carrusel-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.custom-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  max-width: 900px;
}

.carousel-item {
  position: absolute;
  width: 300px;
  transition: all 0.5s ease-in-out;
  top: 20px;
}

/* Magia de posiciones, escalas y desenfoque (Simetría Perfecta) */
.state-1 {
  left: 10%;
  transform: translateX(-50%) scale(0.7);
  z-index: 1;
  opacity: 0.3;
  filter: blur(4px);
}

.state-2 {
  left: 30%;
  transform: translateX(-50%) scale(0.85);
  z-index: 2;
  opacity: 0.7;
  filter: blur(2px);
}

.state-3 {
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  opacity: 1;
  filter: blur(0);
}

.state-4 {
  left: 70%;
  transform: translateX(-50%) scale(0.85);
  z-index: 2;
  opacity: 0.7;
  filter: blur(2px);
}

.state-5 {
  left: 90%;
  transform: translateX(-50%) scale(0.7);
  z-index: 1;
  opacity: 0.3;
  filter: blur(4px);
}

/* Diseño premium de botones mantenido */
.custom-nav-btn {
  background-color: #ffffff;
  color: var(--accent-color);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-nav-btn:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.prev-btn::after {
  content: "❮";
  font-size: 20px;
  font-weight: bold;
}

.next-btn::after {
  content: "❯";
  font-size: 20px;
  font-weight: bold;
}

.slide-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

.slide-img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: cover;
  /* Asegura que la imagen no se deforme */
  background-color: #f0f0f0;
  /* Por si la imagen tarda en cargar */
}

.slide-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: bold;
}

.slide-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--light-text);
  line-height: 1.5;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .custom-carousel {
    height: 350px;
  }

  .carousel-item {
    width: 250px;
  }

  .slide-card {
    height: 320px;
    padding: 15px;
  }

  .slide-img {
    height: 140px;
  }

  .carrusel-wrapper {
    padding: 0 20px;
    box-sizing: border-box; /* Esta es la clave para que no desborde la pantalla */
    width: 100%;
    overflow: visible;
  }

  .custom-nav-btn {
    width: 45px;
    height: 45px;
  }

  .prev-btn {
    left: 15px !important;
  }

  .next-btn {
    right: 15px !important;
  }

  .state-1 {
    left: 10%;
    transform: translateX(-50%) scale(0.6);
  }

  .state-2 {
    left: 25%;
    transform: translateX(-50%) scale(0.8);
  }

  .state-3 {
    left: 50%;
    transform: translateX(-50%) scale(1);
  }

  .state-4 {
    left: 75%;
    transform: translateX(-50%) scale(0.8);
  }

  .state-5 {
    left: 90%;
    transform: translateX(-50%) scale(0.6);
  }
}

@media (max-width: 480px) {
  .carrusel-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
  }

  .custom-carousel {
    height: 300px;
  }

  .carousel-item {
    width: 200px;
  }

  .slide-card {
    height: 280px;
    padding: 12px;
  }

  .slide-img {
    height: 100px;
    margin-bottom: 10px;
  }

  .slide-card h3 {
    font-size: 1.1rem;
  }

  .slide-card p {
    font-size: 0.85rem;
  }

  .custom-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .prev-btn {
    left: 10px !important;
  }

  .next-btn {
    right: 10px !important;
  }

  .prev-btn::after {
    font-size: 16px;
  }

  .next-btn::after {
    font-size: 16px;
  }

  /* Make side items almost invisible or push them further out */
  .state-1 {
    opacity: 0;
    pointer-events: none;
  }

  .state-2 {
    left: 15%;
    transform: translateX(-50%) scale(0.8);
    z-index: 2;
    opacity: 0.5;
    filter: blur(3px);
  }

  .state-4 {
    left: 85%;
    transform: translateX(-50%) scale(0.8);
    z-index: 2;
    opacity: 0.5;
    filter: blur(3px);
  }

  .state-5 {
    opacity: 0;
    pointer-events: none;
  }
}

/* Estadísticas */
.stats-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--light-text);
  font-weight: 600;
}

/* Testimonios Modernos (Glassmorphism) */
.testimonials-modern {
  padding: 100px 20px;
  background: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.testimonial-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-glass:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Asegura que sea un círculo perfecto */
  object-fit: cover; /* Recorta la imagen para que llene el círculo sin estirarse */
  /* Elimina cualquier fondo genérico o icono que ya no se necesite */
  background-color: transparent !important;
  border: 2px solid #fff; /* Opcional: un borde blanco para que resalte */
}

.testimonial-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.testimonial-header span {
  font-size: 0.9rem;
  color: var(--light-text);
}

.testimonial-glass p {
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 100px 20px;
  background: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faq-summary {
  padding: 20px 25px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 25px 25px;
  color: var(--light-text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }

  /* Mostrar botón de descarga de APK en móviles y centrarlo */
  .btn-descarga-apk {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    margin-top: 15px;
  }
  
  .btn-descarga-apk .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .btn-descarga-apk p {
    text-align: center;
    margin: 10px auto 0 auto;
    max-width: 100% !important;
  }
}

/* ========================================= */
/* --- TOAST MINIMALISTA (NOTIFICACIONES) --- */
/* ========================================= */
.toast-minimal {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001; /* Seguro por encima de todo */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-minimal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .toast-minimal {
        right: 50%;
        transform: translate(50%, 20px);
        width: 80%;
        text-align: center;
    }
    
    .toast-minimal.show {
        transform: translate(50%, 0);
    }
}