/* VEIA — Home. Sistema en :root. Sin frameworks. */

:root {
  /* Color */
  --ink: #16181D;
  --ink-soft: #5B5F66;
  --brand: #570080;
  --brand-dark: #43006B;
  --brand-tint: #F2E9F6;
  --accent: #F2006D;
  --bg: #FFFFFF;
  --surface: #F6F5F1;
  --border: #E2E0D9;
  --danger: #B3261E;

  /* Tipo */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: clamp(2.5rem, 6vw, 3.5rem);

  /* Espacio */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* Radios / sombras */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22,24,29,.06);
  --shadow-md: 0 6px 20px rgba(22,24,29,.08);
  --focus-ring: 0 0 0 3px rgba(14,107,78,.35);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-5); }
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 60ch; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700;
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: .02em; }
.nav { display: flex; gap: var(--space-5); margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.site-header__cta { margin-inline-start: var(--space-4); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface); border-color: var(--ink-soft); }
.btn--wa { background: var(--ink); color: #fff; }
.btn--wa:hover { background: #000; }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn:disabled { background: var(--border); color: var(--ink-soft); cursor: not-allowed; }

/* Hero */
.hero { padding-block: var(--space-9); }
.hero__inner { max-width: 720px; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }

/* Secciones */
.section { padding-block: var(--space-9); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead { color: #C9CCD2; }
.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-7); }

/* Chips */
.chip {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  background: var(--brand-tint); color: var(--brand);
  padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-4);
}
.chip--accent { background: var(--accent); color: var(--ink); }

/* Logos de clientes */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.logo {
  display: grid; place-items: center; min-height: 72px; padding: var(--space-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600; text-align: center;
}

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.card--featured { background: var(--bg); border-color: var(--brand); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--space-2); }
.card__desc { color: var(--ink-soft); font-size: var(--fs-sm); }
.card .btn { margin-top: var(--space-4); width: 100%; }
.price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--brand); margin-bottom: var(--space-2); }
.price--quote { font-size: var(--fs-xl); color: var(--ink); }
.list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.list li { padding-left: var(--space-5); position: relative; font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Cierre */
.closing { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: start; }
.closing__text .btn { margin-top: var(--space-4); }

/* Formulario */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field textarea {
  font-family: inherit; font-size: var(--fs-base); color: var(--ink);
  padding: 10px 12px; min-height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--focus-ring); outline: none; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CCD2; padding-block: var(--space-8) var(--space-5); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.footer__brand .brand__name { color: #fff; }
.footer__nav, .footer__contact { display: grid; gap: var(--space-2); align-content: start; }
.footer__nav a, .footer__contact a { color: #C9CCD2; text-decoration: none; font-size: var(--fs-sm); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid #2C2F36; font-size: var(--fs-xs); }

/* Responsive */
@media (min-width: 760px) {
  .closing { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 759px) {
  .hero { padding-block: var(--space-8); }
  .section { padding-block: var(--space-8); }
  .nav { order: 3; width: 100%; gap: var(--space-4); margin-inline-start: 0; }
  .site-header__cta { margin-inline-start: auto; }
}

/* --- Activos reales --- */
.brand img{ height: 30px; width: auto; }
.logo img{ max-width: 100%; max-height: 42px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.logo:hover img{ filter: none; opacity: 1; }
.footer__brand img{ height: 30px; width: auto; }

/* --- Hero con degradado animado (paleta VEIA) --- */
.hero{
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #2B003F, #570080 28%, #F2006D 52%, #7B2CBF 72%, #570080 88%, #2B003F);
  background-size: 300% 300%;
  animation: vHeroGrad 22s ease-in-out infinite;
}
.hero::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 8%, rgba(251,221,65,.22), transparent 62%),
    radial-gradient(60% 80% at 8% 100%, rgba(242,0,109,.30), transparent 62%);
}
.hero > .container{ position: relative; z-index: 1; }
.hero h1{ color: #fff; }
.hero .lead{ color: rgba(255,255,255,.9); }
.hero .chip{ background: rgba(255,255,255,.16); color: #fff; }
.hero .btn--primary{ background: #fff; color: #570080; }
.hero .btn--primary:hover{ background: rgba(255,255,255,.86); }
.hero .btn--secondary{ color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--secondary:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
@keyframes vHeroGrad{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce){ .hero{ animation: none; } }

/* --- Hero plasma/fuego (arcoiris cálido animado) --- */
.hero{
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #140017;
  background-size: auto;
  animation: none;
}
.hero::before{
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 22% 32%, #ff1a00 0%, rgba(255,26,0,0) 60%),
    radial-gradient(40% 40% at 76% 24%, #ff6a00 0%, rgba(255,106,0,0) 60%),
    radial-gradient(46% 46% at 62% 80%, #ffd000 0%, rgba(255,208,0,0) 58%),
    radial-gradient(38% 38% at 30% 84%, #ff2e00 0%, rgba(255,46,0,0) 60%),
    radial-gradient(54% 54% at 50% 50%, #ff8a00 0%, rgba(255,138,0,0) 64%),
    radial-gradient(30% 30% at 88% 62%, #ffe14d 0%, rgba(255,225,77,0) 60%);
  filter: blur(42px) saturate(240%) brightness(1.2);
  animation: vPlasma 13s ease-in-out infinite alternate;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 88% 6%, rgba(255,214,0,.30), transparent 60%),
    linear-gradient(180deg, rgba(10,0,16,.06), rgba(10,0,16,.34));
}
.hero > .container{ position: relative; z-index: 1; }
.hero h1{ color: #fff; }
.hero .lead{ color: rgba(255,255,255,.92); }
.hero .chip{ background: rgba(255,255,255,.16); color: #fff; }
.hero .btn--primary{ background: #fff; color: #570080; }
.hero .btn--primary:hover{ background: rgba(255,255,255,.86); }
.hero .btn--secondary{ color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--secondary:hover{ background: rgba(255,255,255,.14); border-color: #fff; }
@keyframes vPlasma{
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.08) rotate(0deg);   filter: blur(42px) saturate(240%) brightness(1.2) hue-rotate(-10deg); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.3) rotate(10deg);      filter: blur(42px) saturate(265%) brightness(1.26) hue-rotate(35deg); }
  100% { transform: translate3d(-3%, 4%, 0) scale(1.15) rotate(-9deg);    filter: blur(42px) saturate(240%) brightness(1.2) hue-rotate(-28deg); }
}
@media (prefers-reduced-motion: reduce){ .hero::before{ animation: none; } }

/* --- Hero: brasas que brotan y se apagan (CSS puro, en loop) --- */
.hero::before{ display: none; }              /* fuera el degradado fijo anterior */
.hero{ background: #140017; }
.hero__fire{ position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero__fire i{
  position: absolute; display: block; border-radius: 50%;
  width: var(--s); height: var(--s);
  left: var(--x); top: var(--y);
  background: radial-gradient(circle, var(--c) 0%, rgba(0,0,0,0) 68%);
  filter: blur(26px);
  opacity: 0;
  mix-blend-mode: screen;
  animation: vFire var(--d) ease-in-out infinite;
  animation-delay: var(--dl);
}
@keyframes vFire{
  0%   { opacity: 0;   transform: translate3d(0, 12%, 0) scale(.55); }
  35%  { opacity: .95; transform: translate3d(0, 0, 0)   scale(1.05); }
  70%  { opacity: .5;  transform: translate3d(0, -8%, 0) scale(1.2); }
  100% { opacity: 0;   transform: translate3d(0, -16%, 0) scale(.65); }
}
/* Cada brasa: punto, tamano, color, duracion y desfase distintos */
.hero__fire i:nth-child(1){  --x:8%;  --y:62%; --s:220px; --c:#ff1a00; --d:9s;  --dl:-1s; }
.hero__fire i:nth-child(2){  --x:22%; --y:28%; --s:160px; --c:#ff5a00; --d:13s; --dl:-5s; }
.hero__fire i:nth-child(3){  --x:38%; --y:70%; --s:260px; --c:#ff8a00; --d:11s; --dl:-3s; }
.hero__fire i:nth-child(4){  --x:55%; --y:18%; --s:180px; --c:#ffb300; --d:17s; --dl:-9s; }
.hero__fire i:nth-child(5){  --x:70%; --y:58%; --s:300px; --c:#ff2e00; --d:7s;  --dl:-2s; }
.hero__fire i:nth-child(6){  --x:86%; --y:34%; --s:140px; --c:#ffd000; --d:19s; --dl:-12s; }
.hero__fire i:nth-child(7){  --x:14%; --y:84%; --s:200px; --c:#ff006e; --d:15s; --dl:-6s; }
.hero__fire i:nth-child(8){  --x:48%; --y:40%; --s:240px; --c:#ff5a00; --d:21s; --dl:-4s; }
.hero__fire i:nth-child(9){  --x:62%; --y:86%; --s:170px; --c:#ff8a00; --d:9s;  --dl:-7s; }
.hero__fire i:nth-child(10){ --x:92%; --y:74%; --s:150px; --c:#ffb300; --d:23s; --dl:-14s; }
.hero__fire i:nth-child(11){ --x:5%;  --y:8%;  --s:130px; --c:#ffd000; --d:25s; --dl:-10s; }
.hero__fire i:nth-child(12){ --x:33%; --y:54%; --s:210px; --c:#ff1a00; --d:29s; --dl:-16s; }
@media (prefers-reduced-motion: reduce){ .hero__fire i{ animation: none; opacity: .5; } }

/* --- Contraste: el texto dentro de tarjetas siempre oscuro --- */
.card{ color: var(--ink); }   /* no hereda blanco de secciones oscuras; no toca a los componentes */
.section--ink h2, .section--ink h3{ color: #fff; }

/* --- Guardia de legibilidad: resaltes con fondo de color -> texto claro --- */
.chip--accent{ background: #B0004F; color: #fff; }
.card .chip--accent{ color: #fff; }
.btn--primary, .btn--wa, .card .btn--primary, .card .btn--wa{ color: #fff; }
