/* =========================================================================
   TAGMEE - ESTILOS PREMIUM
   ========================================================================= */

:root {
/* PALETA DARK/TECH CON MÁS VIDAAA */
  --color-bg: #F8FAFC; /* Un blanco más cálido */
  --color-surface: #FFFFFF;
  --color-surface-hover: #F1F5F9;
  
  --color-text: #0F172A; 
  --color-text-muted: #475569;
  
  /* Azul mucho más primario, vivo e intenso */
  --color-primary: #0077FF; 
  --color-primary-light: #dbeafe;
  
  --color-dark: #0B0F19; 
  
  --color-border: #E2E8F0;
  --color-border-soft: #F1F5F9;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 119, 255, 0.15); /* Sombra con toques azules */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.05);

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  /* Un glow sutil más grande y azulado atrás del título */
  background-image: radial-gradient(circle at 60% -10%, rgba(0, 119, 255, 0.08) 0%, transparent 60%);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.5rem;
}

/* ================== CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================== HEADER NAV ================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 253, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 40px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary); /* Usar el azul vibrante en los botones */
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 119, 255, 0.4);
  background: #005fcc; /* Azul más oscuro al hover */
}

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-dark);
  background: var(--color-surface);
}

/* ================== HERO ================== */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Damos más aire a la imagen para que luzca */
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 span {
  /* Gradiante más vivo para la palabra clave */
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text; /* Fix compatibilidad */
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-badges {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Efecto super wow para la imagen de la tarjeta en el Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px; /* Para efecto 3D si lo quisieramos mover */
}

/* Glow detrás de la imagen */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero-card {
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .hero-card {
  transform: rotateY(0) rotateX(0) translateY(-10px);
}

/* ================== SECCIONES ================== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

/* ================== CÓMO FUNCIONA (STEPS) ================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Linea conectora sutil de fondo */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--color-border);
  z-index: 0;
  display: none; /* en móvil se oculta solos, pero acá lo activamos en media query */
}

@media (min-width: 900px) {
  .steps::before { display: block; }
}

.step {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(11, 15, 25, 0.2);
}

.step h3 {
  margin-bottom: 0.8rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ================== FEATURES ================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  padding: 2.5rem 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  transition: background 0.3s ease;
}

.feature:hover {
  background: var(--color-surface-hover);
}

.feature h3 {
  margin-bottom: 1rem;
}

.feature p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ================== PLANES (PRICING) ================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center; /* Para que el del medio pueda ser más alto */
}

.plan {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  box-shadow: var(--shadow-md);
}

.plan h3 {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.plan .price {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 1.5rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.plan ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.plan ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.plan .btn {
  width: 100%;
}

/* Plan Destacado (GLASSMORPHISM / DARK THEME) */
.plan-highlight {
  background: var(--color-dark);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Brillo sutil de fondo para el plan destacado */
.plan-highlight::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.plan-highlight:hover {
  transform: scale(1.05);
}

.plan-highlight h3 {
  color: #cbd5e1;
}

.plan-highlight .price {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.plan-highlight ul li {
  color: #e2e8f0;
}

.plan-highlight .btn {
  background: #fff;
  color: var(--color-dark);
}

.plan-highlight .btn:hover {
  background: #f8fafc;
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* ================== FAQ / CONTACTO ================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 4rem;
}

.faq-grid h2 {
  text-align: left;
  margin-bottom: 2rem;
}

details {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

details[open] {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-soft);
}

summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  list-style: none; /* quita flecha default en algunos exp */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact Card */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  align-self: start;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-card .btn {
  width: 100%;
  margin-bottom: 1.5rem;
}

.contact-hint {
  font-size: 0.85rem !important;
  margin: 0 !important;
}

.contact-hint a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
}

/* ================== FOOTER ================== */
.site-footer {
  padding: 2rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-small {
  font-size: 0.8rem !important;
  opacity: 0.7;
}

/* ================== ANIMACIONES INTERSECT (ON SCROLL) ================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================== BOTÓN VOLVER ARRIBA ================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

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

.back-to-top:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 0 2rem; /* Menos espacio arriba en movil */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Título sutilmente más chico */
  }
  
  .hero-copy p {
    font-size: 1rem; /* Texto un poco más chico para no invadir */
    margin: 0 auto 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column; /* Botones apilados en celu */
  }

  .hero-buttons .btn {
    width: 100%; /* Botones 100% de ancho */
  }
  
  .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .steps,
  .features,
  .plans,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .plan-highlight {
    transform: none;
    padding: 2.5rem 1.5rem; /* Achicamos padding en movil */
  }
  
  .plan-highlight:hover {
    transform: none;
  }

  .main-nav {
    display: none; /* Requiere de JS para menú haburguesa, se oculta en móvil por simpleza por ahora */
  }

  /* El botón de volver arriba en movil es más chico y está más pegado */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
