/* ============================================================================
 * SoftGan.Sitio — Base, Reset Moderno, Tipografía y Animaciones
 * ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* Contenedor principal */
.container {
  width: min(var(--container-max), 100% - 2rem);
  margin-inline: auto;
}

/* Tipografía de secciones */
.section {
  padding-block: clamp(4rem, 7vw, 6.25rem);
  position: relative;
}

.section--dark {
  background: radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.16), transparent 46%),
    radial-gradient(circle at 86% 82%, rgba(2, 132, 199, 0.14), transparent 44%),
    var(--forest-950);
  color: var(--white);
}

.section--soft {
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--forest-50);
  color: var(--forest-700);
  border: 1px solid rgba(21, 92, 67, 0.15);
  margin-bottom: 1rem;
}

.section--dark .eyebrow {
  background: rgba(16, 185, 129, 0.14);
  color: var(--forest-100);
  border-color: rgba(16, 185, 129, 0.28);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.section--dark .section-title {
  color: var(--white);
}

.section-subtitle {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--slate-600);
}

.section--dark .section-subtitle {
  color: rgba(226, 232, 240, 0.8);
}

/* Botones reutilizables */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth),
    background-color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--forest-500), var(--forest-600));
  color: var(--white);
  box-shadow: 0 10px 26px -8px rgba(16, 185, 129, 0.55);
}

.btn--primary:hover {
  box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.65);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: var(--white);
  box-shadow: 0 10px 26px -8px rgba(34, 197, 94, 0.5);
}

.btn--whatsapp:hover {
  box-shadow: 0 16px 34px -8px rgba(34, 197, 94, 0.65);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn--outline {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.btn--outline:hover {
  border-color: var(--forest-500);
  color: var(--forest-700);
}

.btn--sm {
  padding: 0.58rem 1.05rem;
  font-size: 0.84rem;
  border-radius: 11px;
}

/* Animaciones Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-smooth), transform 650ms var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.5;
  }
}
