/* CallWelli — tokens de diseño y maquetación */
:root {
  --brand-teal: #319783;
  --brand-teal-bright: #3db89f;
  --brand-teal-dim: #256f61;
  --bg-void: #000000;
  --bg-midnight: #0a0f1a;
  --bg-elevated: #0f172a;
  --border-subtle: rgba(49, 151, 131, 0.22);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-glow: 0 0 60px rgba(49, 151, 131, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(49, 151, 131, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg-midnight) 0%, var(--bg-void) 35%, var(--bg-void) 100%);
  min-height: 100vh;
}

a {
  color: var(--brand-teal-bright);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fondo de rejilla hexagonal (sutil) */
.hex-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%23319783' stroke-opacity='0.12' d='M28 0L0 16v32l28 16 28-16V16L28 0zm0 50L0 66v32l28 16 28-16V66L28 50z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Cabecera */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-teal-bright);
}

/* Bloque principal (hero) */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--brand-teal-bright);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-void);
  background: linear-gradient(165deg, var(--brand-teal-bright), var(--brand-teal));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(49, 151, 131, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(49, 151, 131, 0.45);
  color: var(--bg-void);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

button.btn-primary {
  cursor: pointer;
}

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

.hero-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 26, 0.85));
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 340px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(49, 151, 131, 0.5), transparent 40%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-hex {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 151, 131, 0.08);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hero-hex img {
  width: 120px;
  height: 120px;
}

.hero-card p {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Títulos de sección */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(49, 151, 131, 0.45);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--brand-teal-bright);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

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

/* Contacto */
.contact-block {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(10, 15, 26, 0.5));
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.contact-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.contact-block > p {
  margin: 0 0 2rem;
  color: var(--text-muted);
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .email-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.email-chip svg {
  flex-shrink: 0;
  color: var(--brand-teal);
}

/* Pie de página */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

@media (min-width: 640px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.forge-signature {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.65);
}

/* Página legal */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-inner h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-inner h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.legal-inner p,
.legal-inner li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-inner ul {
  padding-left: 1.25rem;
}

.legal-inner a {
  word-break: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
