/* =========================================================
   ROEP TECH — styles.css
   1. Variables y reset
   2. Utilidades base
   3. Botones
   4. Hero (nav + portada)
   5. Contenido (secciones)
   6. Servicios de mantenimiento
   7. Cotizador interactivo
   8. Carrusel de proyectos
   9. Tarjetas de demo
   10. Preguntas frecuentes (FAQ)
   11. Footer
   12. Botón flotante WhatsApp
   ========================================================= */

/* ---------- 1. Variables y reset ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --ink: #0a0a0f;
  --blue: #1440ff;
  --blue-deep: #0026b8;
  --blue-tint: #e9edff;
  --line: #0a0a0f;
  --muted: #53566b;
  --dot: #e9edff;
  --radius: 6px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. Utilidades base ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 24px);
}

.blueprint {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
}

/* ---------- 4. Hero ---------- */
.hero-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* --- Nav --- */
.hero-nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.hero-nav .row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 24px);
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.hero-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}

.hero-links button {
  background: none;
  border: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s;
}

.hero-links button:hover {
  border-color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* --- Portada --- */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 70px) 0;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.03;
  font-weight: 700;
  max-width: 16ch;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: pullUp .6s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-title .accent {
  color: var(--blue);
}

@keyframes pullUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 5. Contenido ---------- */
.content-wrap {
  display: block;
}

.content-inner {
  min-height: 0;
}

.section {
  padding: 76px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.section-head .count {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
}

/* ---------- 6. Servicios de mantenimiento ---------- */
.services-note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.note-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue-tint);
  box-shadow: var(--shadow-sm);
}

.note-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
}

.note-icon svg {
  width: 22px;
  height: 22px;
}

.note-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  margin-bottom: 4px;
}

.note-item p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.services-carousel {
  position: relative;
  padding: 0 52px;
}

.services-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.services-grid .service-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
}

.service-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s, box-shadow .15s;
}

.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-tint);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.05rem;
}

.service-card p {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  margin: 0;
}

.service-price {
  font-size: .85rem;
  color: var(--muted);
  border-top: 2px solid var(--blue-tint);
  padding-top: 12px;
}

.service-price strong {
  color: var(--blue-deep);
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- 7. Cotizador interactivo ---------- */
.quote-tool {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.quote-summary {
  position: sticky;
  top: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.quote-step {
  margin-bottom: 32px;
}

.quote-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Dispositivo --- */
.device-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.device-btn {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, color .15s, transform .12s;
}

.device-btn svg {
  width: 40px;
  height: 40px;
}

.device-btn:hover {
  background: var(--blue-tint);
}

.device-btn.active {
  background: var(--blue);
  color: #fff;
}

/* --- Servicios del cotizador --- */
.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background .12s;
}

.service-option:hover {
  background: var(--bg-soft);
}

.service-option input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}

.service-option input[type="checkbox"]:checked {
  background: var(--blue);
}

.service-option input[type="checkbox"]:checked::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.service-option label {
  flex: 1;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-option .so-name {
  font-weight: 600;
}

.service-option .so-price {
  font-size: .8rem;
  color: var(--blue-deep);
  font-weight: 600;
}

.service-option .so-desc {
  font-size: .75rem;
  color: var(--muted);
}

/* --- Resumen del cotizador --- */
.quote-breakdown {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--blue-tint);
  padding-bottom: 5px;
}

.breakdown-row strong {
  color: var(--blue-deep);
  white-space: nowrap;
}

.quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.1rem;
}

.quote-total strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: var(--blue-deep);
}

.quote-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 10px 0 0;
  font-style: italic;
}

.quote-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------- 8. Carrusel ---------- */
.carousel-shell {
  position: relative;
  padding: 0 clamp(4px, 6vw, 30px);
}

.stage {
  position: relative;
  height: clamp(300px, 44vw, 370px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.stage .card {
  position: absolute;
  width: min(310px, 60vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .55s cubic-bezier(.22, .8, .28, 1), opacity .55s ease, filter .55s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.stage .card .thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  color: var(--blue-deep);
}

.stage .card .thumb svg {
  width: 56%;
  height: 56%;
}

.stage .card .meta {
  padding: 16px 18px 18px;
  border-top: 2px solid var(--ink);
}

.stage .card .meta .tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
}

.stage .card .meta h3 {
  font-size: 1.02rem;
  margin-top: 4px;
}

.stage .card .meta p {
  font-size: .82rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s, background .2s, color .2s;
}

.nav-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-50%) translate(-2px, -2px);
}

.nav-btn--prev {
  left: 0;
}

.nav-btn--next {
  right: 0;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.dots button[aria-current="true"] {
  background: var(--blue);
  width: 20px;
  border-radius: 4px;
}

/* ---------- 9. Tarjetas de demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.demo-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-card .status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.demo-card .status .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 1px solid var(--blue-deep);
}

.demo-card .status.live .led {
  background: var(--blue);
}

.demo-card h3 {
  font-size: 1.05rem;
}

.demo-card p {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  margin: 0;
}

.demo-card .note {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}

.demo-card .open {
  align-self: flex-start;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  color: var(--ink);
}

.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* ---------- 10. Preguntas frecuentes (FAQ) ---------- */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  user-select: none;
  transition: background .15s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-soft);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .25s, background .2s, color .2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  padding: 0 22px 20px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-a p {
  margin: 0 0 10px;
}

.faq-a ul,
.faq-a ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.faq-a li {
  margin-bottom: 4px;
}

.faq-a strong {
  color: var(--ink);
}

/* ---------- 11. Footer ---------- */
footer.site-foot {
  border-top: 2px solid var(--ink);
  padding: 32px clamp(20px, 4vw, 24px) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-soft);
}

footer.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.foot-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.foot-link {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
  transition: border-color .15s;
}

.foot-link:hover {
  border-color: var(--blue);
}

/* ---------- 12. Botón flotante WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
  border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
}

.float-whatsapp:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   Animaciones y dinamismo
   ========================================================= */

/* --- Formas flotantes del hero --- */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border: 2px solid var(--ink);
  opacity: .5;
  animation: floaty 7s ease-in-out infinite;
}

.shape--square {
  width: 26px;
  height: 26px;
  background: var(--blue-tint);
  top: 24%;
  left: 8%;
}

.shape--circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  top: 62%;
  left: 14%;
  animation-delay: 1.2s;
}

.shape--plus {
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  border: none;
  top: 32%;
  right: 12%;
  animation-delay: .6s;
  font-family: 'Space Grotesk', sans-serif;
}

.shape--sm {
  width: 14px;
  height: 14px;
  top: 74%;
  right: 22%;
  animation-delay: 2s;
}

.shape--circle.shape--sm {
  top: 18%;
  right: 28%;
  left: auto;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@media (max-width: 620px) {
  .hero-shapes { display: none; }
}

/* --- Divisores de sección animados --- */
.section-divider {
  height: 20px;
  background:
    linear-gradient(135deg, var(--ink) 25%, transparent 25%) -14px 0,
    linear-gradient(225deg, var(--ink) 25%, transparent 25%) -14px 0,
    linear-gradient(315deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%);
  background-size: 28px 28px;
  background-color: var(--blue);
  animation: dividerSlide 10s linear infinite;
}

@keyframes dividerSlide {
  to { background-position: 28px 0, 28px 0, 28px 0, 28px 0; }
}

/* --- Insignia PROYECTO REAL --- */
.badge-real {
  display: inline-block;
  padding: 3px 8px;
  background: var(--blue);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 3px;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

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

/* Subrayado animado en títulos de sección */
.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56px;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s .25s cubic-bezier(.16, 1, .3, 1);
}

.section-head.revealed h2::after {
  transform: scaleX(1);
}

/* --- Stagger grid children --- */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.revealed > *:nth-child(1) { transition-delay: .06s; }
.stagger.revealed > *:nth-child(2) { transition-delay: .12s; }
.stagger.revealed > *:nth-child(3) { transition-delay: .18s; }
.stagger.revealed > *:nth-child(4) { transition-delay: .24s; }
.stagger.revealed > *:nth-child(5) { transition-delay: .3s; }
.stagger.revealed > *:nth-child(6) { transition-delay: .36s; }
.stagger.revealed > *:nth-child(7) { transition-delay: .42s; }
.stagger.revealed > *:nth-child(8) { transition-delay: .48s; }

/* --- Blueprint animado en el hero --- */
@keyframes blueprintDrift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

.hero-screen.blueprint {
  animation: blueprintDrift 30s linear infinite;
}

/* --- Link de demo en tarjeta activa del carrusel --- */
.stage .card .card-demo {
  display: none;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .15s;
}

.stage .card.active .card-demo {
  display: inline-flex;
}

.stage .card .card-demo:hover {
  color: var(--blue);
}

/* --- WhatsApp flotante con pulso --- */
@keyframes waPulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 10px rgba(37, 211, 102, .13); }
}

.float-whatsapp {
  animation: waPulse 2.8s ease-in-out infinite;
}

/* --- Nav activa --- */
.hero-links button.active {
  border-color: var(--blue);
  color: var(--blue);
}

/* --- Entrada del cotizador --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-tool {
  animation: fadeSlideUp .6s ease;
}

/* --- Servicios del cotizador: entrada escalonada --- */
.service-options.show {
  animation: fadeSlideUp .35s ease;
}

/* --- Número de paso con pop --- */
@keyframes stepPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.quote-step-title .step-num {
  animation: stepPop .45s cubic-bezier(.16, 1, .3, 1);
}

/* --- Hover mejorado en tarjetas de servicio --- */
.service-card {
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}

.service-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

/* --- Hover en tarjetas de demo --- */
.demo-card {
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}

.demo-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

/* --- Hover en FAQ --- */
.faq-item {
  transition: box-shadow .2s ease, transform .2s ease;
}

.faq-item:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.faq-item[open] {
  box-shadow: 5px 5px 0 var(--ink);
}

/* --- Botón con ripple sutil --- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

/* --- Accesibilidad: respetar prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-screen.blueprint,
  .float-whatsapp,
  .shape,
  .section-divider {
    animation: none;
  }

  .section-head h2::after {
    transform: scaleX(1);
    transition: none;
  }

  .service-card,
  .demo-card,
  .faq-item {
    transition: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .services-carousel {
    padding: 0 44px;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
  }

  .nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .device-btn {
    min-width: 130px;
    padding: 18px 12px;
    font-size: 13px;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .quote-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .float-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    height: 36px;
  }

  .hero-links {
    display: none;
  }

  .hero-links.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--ink);
    padding: 16px clamp(20px, 4vw, 24px);
  }

  .hero-links.open button {
    padding: 8px 0;
    font-size: 15px;
  }

  .menu-toggle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .word {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
