/* --- Variables y Reset (MallPath Design System) --- */
:root {
  /* Colores principales */
  --primary: #06425C;          /* Azul oscuro principal */
  --secondary: #1297A6;        /* Turquesa secundario */
  --accent: #06425C;           /* Azul oscuro para títulos */
  --selected: #bae6fd;         /* Selección */

  /* Fondos */
  --canvas: #F0F0F0;           /* Gris claro */
  --bg-primary: #FFFFFF;       /* Blanco */
  --bg-secondary: #F8FAFC;     /* Gris muy claro */
  --bg-dark: #06425C;          /* Azul oscuro */

  /* Botones */
  --btn-primary: #06425C;
  --btn-primary-hover: #053548;
  --btn-success: #1297A6;
  --btn-success-hover: #0E7787;

  /* Texto */
  --text-main: #1e293b;        /* Texto oscuro principal */
  --text-muted: #475569;       /* Texto secundario gris */

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(6, 66, 92, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Fondo gris claro suave */
  background-color: #E8EEF2;
  background-image:
    linear-gradient(to bottom, rgba(232, 238, 242, 1), rgba(220, 230, 238, 1)),
    linear-gradient(rgba(6, 66, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 66, 92, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;

  color: var(--text-main);
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Luz ambiental de fondo */
body::before {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(18, 151, 166, 0.08) 0%,
    transparent 65%
  );
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Segunda luz suave (accent) */
body::after {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(
    circle,
    rgba(204, 226, 241, 0.15) 0%,
    transparent 70%
  );
  top: 10%;
  left: 25%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* --- Contenedor Principal (Glassmorphism) --- */
.container {
  width: 100%;
  max-width: 900px;
  background: linear-gradient(135deg, #06425C 0%, #053548 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(18, 151, 166, 0.2);
  border-radius: 32px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(6, 66, 92, 0.35);
  animation: fadeUp 0.8s ease-out forwards;
}

/* --- Header --- */
.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 25px;

  /* Halo suave */
  filter: drop-shadow(0 10px 22px rgba(6, 66, 92, 0.20));
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #f1f1f1;
  text-shadow: 0 0 10px rgba(204,226,241,0.35);
}

.tagline {
  font-size: 1.2rem;
  color: rgba(204, 226, 241, 0.85);
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.tagline strong {
  color: #1297A6;
  font-weight: 600;
}

/* --- Grid de Funcionalidades (Features) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 45px;
  margin-bottom: 45px;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(204, 226, 241, 0.15);
  padding: 25px;
  border-radius: 20px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(18, 151, 166, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.icon-box {
  width: 45px;
  height: 45px;

  background: rgba(18, 151, 166, 0.12);
  color: var(--secondary);

  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;
  margin-bottom: 15px;

  box-shadow: 0 4px 12px rgba(18,151,166,0.08);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgb(237, 243, 247);
}

.feature-card p {
  font-size: 0.9rem;
  color: rgb(203, 208, 212);
  line-height: 1.5;
}

/* --- Botones --- */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  gap: 8px;
  user-select: none;
}

/* Botón Principal (Probar App) */
.btn-primary {
  background: linear-gradient(135deg, var(--btn-success), var(--btn-primary));
  color: #fff;
  box-shadow: 0 6px 18px rgba(18, 151, 166, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 151, 166, 0.55);
  filter: brightness(1.05);
}

/* Botón Secundario (Conoce al equipo) */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(204, 226, 241, 0.3);
  color: rgb(255, 255, 255);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(204, 226, 241, 0.5);
  color: #FFFFFF;
}

/* --- WIDGET FLOTANTE --- */
.floating-widget {
  /* Oculto en escritorio por defecto */
  display: none;

  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;

  background: linear-gradient(135deg, var(--btn-success), var(--btn-primary));
  border-radius: 50%;

  color: #fff;
  font-size: 1.8rem;

  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 22px rgba(18, 151, 166, 0.55);
  z-index: 1000;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-widget:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* --- Footer --- */
footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(204, 226, 241, 0.15);
  font-size: 0.85rem;
  color: rgba(204, 226, 241, 0.6);
}

footer strong { color: rgba(204, 226, 241, 0.9); }

/* --- Animación Keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive (MAX-WIDTH: 768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 30px 20px;
    padding-bottom: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .btn { width: 100%; }

  /* Visible el widget flotante en móvil */
  .floating-widget {
    display: flex;
  }

  .btn-group a {
    width: 100%;
  }

  .btn-group .btn-primary {
    display: inline-flex;
  }
}
