/* ESTILOS ESPECÍFICOS DE LA PÁGINA HOME/INDEX */

/* HERO */

.hero {
  position: relative;
  padding: 6rem 0 8rem;
  color: #0f172a;
  overflow: hidden;
  background: none;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: -60vw;
  top: -10vh;
  width: 160vw;
  height: 70vh;
  background: linear-gradient(120deg, #a855f7 0%, #d946ef 20%, #ec4899 40%, #f97316 60%, #fbbf24 80%, #92d035 100%);
  transform: skewY(-12deg);
  z-index: 1;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: clamp(4.2rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1e293b;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: left !important;
}

.hero-gradient-red {
  background: linear-gradient(135deg, #b91c1c 0%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: #334155;
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-form {
  display: flex;
  gap: 1rem;
  max-width: 550px;
  flex-wrap: wrap;
}

.hero-email-input {
  flex: 1;
  min-width: 250px;
  padding: 0.9rem 1.2rem;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.hero-email-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.hero-email-input::placeholder {
  color: #94a3b8;
}

.btn-hero {
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  color: #fff;
  border-radius: 999px;
  border: none;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  transition: background 0.2s;
}

.btn-hero:hover {
  background: #2563eb;
}

.btn-hero .arrow {
  transition: transform 0.2s;
  display: inline-block;
}

.btn-hero:hover .arrow {
  transform: translateX(4px);
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.phone-mockup {
  position: relative;
  background: #ffffff;
  padding: 0.35rem;
  border-radius: 32px;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.phone-screen {
  width: min(270px, 68vw);
  height: 480px;
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.phone-notch {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #e2e8f0;
  border-radius: 999px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #0f172a;
}

.phone-header .badge {
  background: rgba(99, 91, 255, 0.14);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.75rem;
  color: #4338ca;
}

.phone-chart {
  flex: 1;
  margin-top: 0.2rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #f1f5f9, #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
}

.phone-chart::before,
.phone-chart::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.06);
}

.phone-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.phone-card {
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.phone-card p {
  margin: 0;
  font-size: 0.72rem;
  color: #475569;
}

.phone-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

/* HERO BADGES */

.hero-badges {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge-row span {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* MEGA MENU */

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 1.2rem 0 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.mega-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-content {
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
  color: #edeff2;
  max-width: 1100px;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.mega-column {
  padding: 0 1rem;
  border-right: 1px solid rgba(226, 232, 240, 0.5);
}

.mega-column:last-child {
  border-right: none;
}

.mega-column.slim {
  max-width: 240px;
}

.mega-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.mega-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.solutions-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.mega-grid.solutions-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-grid.solutions-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mega-item:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(2px);
}

.mega-item:active {
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(2px) scale(0.98);
}

.mega-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.1rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.mega-item:hover strong {
  color: #2563eb;
}

.mega-item span {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
}

/* Ocultar iconos */
.mega-icon {
  display: none !important;
}

/* Estilos específicos para el mega menú de soluciones */
#megaMenuSolutions .mega-content {
  padding: 1.5rem 1rem;
  max-width: 1000px;
}

#megaMenuSolutions .mega-columns {
  grid-template-columns: auto auto auto auto;
  gap: 2rem;
}

#megaMenuSolutions .mega-column {
  padding: 0;
  border-right: none;
}

#megaMenuSolutions .mega-title {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  color: #64748b;
  font-weight: 500;
}

#megaMenuSolutions .mega-grid {
  gap: 0.15rem;
}

#megaMenuSolutions .mega-item {
  padding: 0.35rem 0.5rem;
}

#megaMenuSolutions .mega-item strong {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.05rem;
}

#megaMenuSolutions .mega-item span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mega-pills {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}

.mega-pill {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  background: transparent;
  border-radius: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 500;
  transition: background 0.15s ease;
}

.mega-pill:hover {
  background: rgba(241, 245, 249, 0.8);
  border-radius: 6px;
}

.pill-sub {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 400;
}

.mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-links li {
  margin: 0;
}

.mega-links a {
  display: block;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mega-links a:hover {
  background: rgba(241, 245, 249, 0.8);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.about-grid h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.about-grid p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FEATURES */

.features-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 52%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-card ul {
  padding-left: 1.1rem;
  margin: 0;
  list-style: disc;
  color: #101011;
  font-size: 0.84rem;
}

/* PLANS */

.plans-grid {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.plan-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.plan-card-featured {
  border-color: rgba(99, 91, 255, 0.4);
  box-shadow: 0 24px 50px rgba(99, 91, 255, 0.2);
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 244, 255, 0.92) 100%);
}

.plan-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(22, 163, 74, 0.2);
  color: #101111;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.5);
}

.plan-card h3 {
  margin: 0;
}

.plan-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  font-size: 0.84rem;
  color: #302f2f;
}

.plan-features li {
  margin-bottom: 0.3rem;
}

/* NEWSLETTER */

.newsletter {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  padding: 1.8rem 1.6rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.newsletter h2 {
  margin: 0 0 0.4rem;
}

.newsletter p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-form input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-feedback {
  font-size: 0.75rem;
  min-height: 1rem;
}

/* RESPONSIVE HOME */

@media (max-width: 900px) {
  .mega-menu {
    display: none !important;
  }

  .hero-text h1 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1.2rem;
  }

  .hero-text {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    display: flex;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid,
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .hero-text {
    order: 1;
    width: 100%;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-bottom: 0.5rem;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    align-items: center;
    margin-top: 0.5rem;
  }
}

@media (min-width: 700px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .hero-text {
    order: 1;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .hero-visual {
    order: 2;
    align-items: center;
    margin-top: 0;
  }
}