/* Capa visual moderna de tuwebsincosto.com.
   Solo cambia estilos, colores y efectos. Los textos y la estructura HTML no se tocan. */

:root {
  --cobalt: #2a4ff0;
  --cobalt-deep: #1d37c4;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --navy: #0e1530;
  --navy-soft: #1a2448;
  --lime: #c8f76b;
  --ink: #0e1530;
  --muted: #5b6480;
  --line: #e4e9f5;
  --surface: #ffffff;
  --surface-soft: #f6f8ff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px -12px rgba(14, 21, 48, 0.18);
  --shadow-lift: 0 28px 60px -22px rgba(42, 79, 240, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cobalt), var(--violet), var(--cyan));
  z-index: 60;
  pointer-events: none;
}

/* Encabezado de cristal */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(14, 21, 48, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.brand-mark {
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  box-shadow: 0 8px 20px -6px rgba(42, 79, 240, 0.6);
  border-radius: 10px;
  transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.desktop-nav a {
  position: relative;
  font-weight: 600;
  transition: color 0.2s;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* Botones */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--violet) 100%);
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(42, 79, 240, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.35s;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -14px rgba(42, 79, 240, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: saturate(1.1);
}

.button:hover::before {
  transform: translateX(120%);
}

.button:active {
  transform: translateY(-1px) scale(0.99);
}

.button-lime {
  background: linear-gradient(135deg, var(--lime), #e6ffb0);
  color: var(--navy);
  box-shadow: 0 14px 30px -14px rgba(200, 247, 107, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button-lime:hover {
  box-shadow: 0 22px 40px -12px rgba(200, 247, 107, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.text-button {
  transition: color 0.2s, gap 0.3s var(--ease-out);
}

.text-button:hover {
  color: var(--cobalt);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(42, 79, 240, 0.22), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(124, 92, 255, 0.2), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(200, 247, 107, 0.35), transparent 38%);
  filter: blur(10px);
  animation: meshShift 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 21, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 21, 48, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

@keyframes meshShift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

.eyebrow-pill {
  background: rgba(42, 79, 240, 0.08);
  border: 1px solid rgba(42, 79, 240, 0.18);
  color: var(--cobalt-deep);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.hero h1 {
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 > span {
  background: linear-gradient(100deg, var(--cobalt) 0%, var(--violet) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientFlow 6s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-description {
  color: var(--muted);
}

.hero-condition {
  color: var(--muted);
}

/* Mockup del hero con inclinación y flotación */
.hero-showcase {
  perspective: 1400px;
}

.browser-card {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(14, 21, 48, 0.08);
  box-shadow: 0 40px 80px -30px rgba(14, 21, 48, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.5);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
  transform-style: preserve-3d;
  will-change: transform;
}

.browser-card:hover {
  box-shadow: 0 50px 90px -30px rgba(42, 79, 240, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.6);
}

.free-design-tag,
.responsive-tag {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -18px rgba(14, 21, 48, 0.35);
  border-radius: 16px;
}

.free-design-tag {
  animation: floatY 6s ease-in-out infinite;
}

.responsive-tag {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  animation: floatY 7s ease-in-out infinite reverse;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.free-icon {
  background: linear-gradient(135deg, var(--lime), #e6ffb0);
  color: var(--navy);
  box-shadow: 0 8px 18px -8px rgba(200, 247, 107, 0.9);
}

/* Banda de beneficios */
.benefit-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.benefit-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.benefits > div {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}

.benefits > div:hover {
  transform: translateY(-4px);
}

.benefits svg {
  color: var(--lime);
  filter: drop-shadow(0 0 12px rgba(200, 247, 107, 0.45));
}

/* Secciones y títulos */
.eyebrow {
  color: var(--cobalt);
  letter-spacing: 0.14em;
  font-weight: 700;
}

.section-heading h2,
.included-copy h2,
.faq-grid h2,
.request-copy h2 {
  letter-spacing: -0.04em;
  line-height: 1.08;
}

/* Pasos */
.steps article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.5s;
  overflow: hidden;
}

.steps article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(42, 79, 240, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.steps article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(42, 79, 240, 0.35);
}

.steps article:hover::before {
  opacity: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(42, 79, 240, 0.8);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Filtros */
.filter-bar button {
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.filter-bar button:hover {
  transform: translateY(-2px);
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.filter-bar button.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(14, 21, 48, 0.6);
}

/* Tarjetas de ejemplo */
.example-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.5s;
}

.example-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(42, 79, 240, 0.3);
}

.example-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.example-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.example-card:hover .example-preview::after {
  opacity: 1;
}

.example-content img {
  transition: transform 0.8s var(--ease-out);
}

.example-card:hover .example-content img {
  transform: scale(1.06);
}

.example-caption {
  border-top: 1px solid var(--line);
}

.example-caption > a {
  color: var(--cobalt);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 79, 240, 0.08);
  transition: background 0.25s, color 0.25s;
}

.example-caption > a:hover {
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
}

/* Oferta */
.offer-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #14204a 0%, var(--navy) 60%, #0a1024 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -30px rgba(14, 21, 48, 0.6);
}

.offer-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 247, 107, 0.35), transparent 65%);
  filter: blur(6px);
  animation: floatY 9s ease-in-out infinite;
  pointer-events: none;
}

.offer-label {
  color: var(--lime);
  letter-spacing: 0.14em;
  font-weight: 700;
}

.offer-price {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.offer-price {
  color: #fff;
}

.offer-price > span:first-child {
  color: var(--lime);
}

.offer-price .price-context {
  color: rgba(255, 255, 255, 0.7);
}

.offer-card li svg {
  color: var(--lime);
}

/* Incluye */
.included-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.included-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(42, 79, 240, 0.3);
}

.included-item svg {
  color: var(--cobalt);
  background: rgba(42, 79, 240, 0.08);
  border-radius: 12px;
  padding: 9px;
  box-sizing: content-box;
  width: 21px;
  height: 21px;
  transition: transform 0.4s var(--ease-out), background 0.4s, color 0.4s;
}

.included-item:hover svg {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: #fff;
}

/* FAQ */
.faq-question {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.faq-section {
  background: linear-gradient(180deg, var(--surface-soft), #fff);
}

/* Formulario de solicitud */
.request-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.request-section::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: -220px;
  bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.request-assurances span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-soft);
}

.request-domain {
  background: linear-gradient(135deg, var(--cobalt), var(--violet));
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
}

.request-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -36px rgba(14, 21, 48, 0.35);
}

.request-card input:focus,
.request-card textarea:focus,
.request-card select:focus,
.request-card [role="combobox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(42, 79, 240, 0.18);
  border-color: var(--cobalt);
}

.request-card input,
.request-card textarea,
.request-card [role="combobox"] {
  border-radius: 12px;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.submit-button {
  width: 100%;
}

/* Pie de página */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.site-footer .brand,
.site-footer .brand span {
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 247, 107, 0.6), transparent);
}

.site-footer button {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.site-footer button:hover {
  color: var(--lime);
}

/* Revelado al hacer scroll (solo cuando JavaScript lo activa) */
/* Se usa la propiedad translate, no transform, para no pisar los efectos de hover */
.js-motion .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.js-motion .hero-copy > * {
  animation: riseIn 0.9s var(--ease-out) both;
}

.js-motion .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.js-motion .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.js-motion .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.js-motion .hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.js-motion .hero-copy > *:nth-child(5) { animation-delay: 0.45s; }

.js-motion .hero-showcase {
  animation: riseIn 1.1s 0.25s var(--ease-out) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Movimiento reducido: el usuario pidió menos animación */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-motion .reveal {
    opacity: 1;
    translate: none;
  }
}

/* Ajustes para celular */
@media (max-width: 640px) {
  .hero::before {
    height: 100%;
  }

  .button {
    min-height: 52px;
  }

  .steps article:hover,
  .example-card:hover {
    transform: none;
  }

  .browser-card {
    transform: none;
  }
}

/* Selector de idioma */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

/* Tarjetas de ejemplo de la portada: plantillas de limpieza y techos */
.sample-cleaning { background: #eff9ff; color: #16405a; }
.sample-roof { background: #f3f1ec; color: #202a2d; }
