/* sections.css - Secciones de la página principal */

/* HERO */
#hero {
  padding: 12rem 2.5rem 8rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.98));
  z-index: 1;
  pointer-events: none;
}

/* GENERAL SECTION SPACING & REVEALS */
section {
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
  background: transparent;
}

.hero-secondary {
  padding: 12rem 0;
  background: transparent;
}

#process {
  background: transparent;
}

/* Fondos Geométricos (Digital Atmosphere) */
.section-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 20px;
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 82, 255, 0.05);
  z-index: 1;
}

/* Variaciones para aleatoriedad */
.shape-1 {
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  transform: rotate(15deg);
}

.shape-2 {
  bottom: 10%;
  right: -2%;
  width: 250px;
  height: 250px;
  transform: rotate(-10deg);
  background: rgba(255, 255, 255, 0.6);
}

.shape-3 {
  top: 40%;
  left: 15%;
  width: 150px;
  height: 150px;
  transform: rotate(45deg);
  background: rgba(0, 82, 255, 0.04);
}

.shape-4 {
  top: -5%;
  right: 10%;
  width: 200px;
  height: 200px;
  transform: rotate(-25deg);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.1), transparent);
}

.shape-5 {
  bottom: 20%;
  left: -8%;
  width: 350px;
  height: 350px;
  transform: rotate(8deg);
  background: rgba(0, 82, 255, 0.03);
}

.shape-6 {
  top: 60%;
  right: 15%;
  width: 100px;
  height: 100px;
  transform: rotate(60deg);
  background: var(--gold-dim);
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 5rem;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: #000000;
  font-weight: 600;
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.8
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.stat-row {
  background: transparent;
  padding: 0;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.stat-num {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem
}

.stat-desc {
  font-size: 0.82rem;
  color: #000000;
  font-weight: 500;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 0.6rem
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  animation: pulse 2s infinite;
  flex-shrink: 0
}

/* SERVICES SECTION */
.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.service-detail-block.rev {
  direction: rtl;
}

.service-detail-block.rev .s-detail-content {
  direction: ltr;
}

.s-detail-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text);
}

.s-detail-content p {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Nuevas Pills de Beneficios */
.benefits-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefits-flex.center {
  justify-content: center;
}

.benefit-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.benefit-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.08);
}

.benefit-pill svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.s-detail-benefit {
  padding: 1.2rem;
  background: var(--gold-dim);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  font-size: 0.95rem;
}

.service-detail-visual {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.service-visual-box {
  width: 100%;
  max-width: 440px;
  min-height: 380px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 82, 255, 0.05));
  border: 1px solid rgba(0, 82, 255, 0.12);
  border-radius: 40px;
  box-shadow: 0 40px 120px rgba(0, 82, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  cursor: default;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.service-visual-box:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 60px 150px rgba(0, 82, 255, 0.15);
}

.visual-inner-float {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: subtleFloat 5s ease-in-out infinite;
}

@keyframes subtleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.s-visual-mockup {
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 82, 255, 0.12);
  border-radius: 12px;
  background: #ffffff;
  position: relative;
}

/* Badges de OS para Apps */
.os-badge {
  position: absolute;
  padding: 0.4rem 0.8rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

.os-badge.ios {
  top: 10%;
  right: -20px;
  color: #000;
}

.os-badge.android {
  bottom: 20%;
  left: -20px;
  color: #3DDC84;
}

.os-badge svg {
  width: 12px;
  height: 12px;
}

/* ABOUT SECTION */
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8rem;
  align-items: start;
  /* Align content to top for better visual hierarchy */
  position: relative;
  z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-hero-inner .about-content {
    margin-top: 0;
  }
}

.hero-secondary h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-hero-p {
  font-size: 1.25rem;
  color: var(--text2);
  margin-bottom: 4.5rem;
  max-width: 620px;
  line-height: 1.8;
}

.about-visual-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-box-v2 {
  background: #ffffff;
  padding: 4rem 3rem;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 5;
  width: 100%;
}

.v-tag-v2 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  display: block;
}

.v-main-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.v-title-v2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.1;
}

.v-sub-v2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1.1;
}

.about-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* PROCESS */
#process {
  background: var(--bg);
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 1rem;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--bg2);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  transition: all 0.3s ease;
}

.process-step:hover .step-dot {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 82, 255, 0.4);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

/* TIERS */
#tiers {
  background: var(--bg2);
}

.tiers-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
}

.solution-card:hover {
  transform: scale(1.02);
  border-color: var(--gold);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.use-case-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
}

.use-case-card:hover {
  transform: scale(1.02);
  border-color: var(--gold);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tier-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.tier-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.tier-card p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.6;
}

/* CTA FINAL */
#cta-final {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center
}

.cta-inner {
  position: relative;
  z-index: 1
}

.cta-inner h2 {
  margin-bottom: 1rem
}

.cta-inner>p {
  max-width: 500px;
  margin: 0 auto 3rem
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap
}

.cta-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 280px;
}

.cta-card.featured {
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(0, 82, 255, 0.08);
  transform: scale(1.05);
}

.cta-badge {
  position: absolute;
  top: -12px;
  background: var(--gold);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cta-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.cta-link-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
}

/* REVEAL ANIMATIONS GLOBAL */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}