/* ============================================================
   STI-GYM — Sistema de diseño
   Marca: fondo oscuro cálido + naranja #E08C33 + blanco
   ============================================================ */

:root {
  --bg: #131110;
  --bg-soft: #1b1815;
  --surface: #221e1a;
  --surface-2: #2b2621;
  --border: #38322b;
  --accent: #e08c33;
  --accent-strong: #f09d40;
  --accent-soft: rgba(224, 140, 51, 0.12);
  --text: #f7f3ec;
  --text-muted: #c7bfb2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 17, 16, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav a.nav-link {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 10px 14px; border-radius: 8px; display: block;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.has-sub { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 11px; color: var(--text-muted); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); font-size: 14.5px; }
.submenu a:hover { background: var(--accent-soft); color: var(--accent); }
.submenu .sub-note { display: block; font-size: 12px; color: var(--text-muted); }

.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  padding: 12px 26px; border-radius: 999px; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(120deg, var(--accent), #c9741f); color: #16130f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(224, 140, 51, 0.35); color: #16130f; }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { padding: 15px 34px; font-size: 16.5px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 78% 15%, rgba(224, 140, 51, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 420px at 12% 90%, rgba(224, 140, 51, 0.07), transparent 60%),
    var(--bg);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--text-muted); font-size: 1.22rem; margin: 22px 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

.eyebrow {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}

.trust-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}
.trust-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.015em; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.1rem; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(224, 140, 51, 0.45); }
.card h3 { font-size: 1.22rem; margin: 18px 0 10px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card .card-img { border-radius: var(--radius-sm); margin-bottom: 6px; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; }

.app-logo { height: 54px; width: auto; object-fit: contain; }

/* Tarjetas de aplicaciones: logo centrado y prominente */
.app-card { text-align: center; }
.app-card .app-logo {
  height: 72px; margin: 6px auto 10px; display: block;
  filter: drop-shadow(0 6px 18px rgba(224, 140, 51, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-card:hover .app-logo { transform: scale(1.08); }

/* Iconos de características */
.feature { text-align: center; padding: 28px 20px; }
.feature img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 14px; }
.feature h3 { font-size: 1.02rem; font-weight: 600; font-family: var(--font-body); }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 999px; font-size: 14px; cursor: pointer; font-family: var(--font-body);
  transition: all 0.15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #16130f; border-color: var(--accent); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); background: var(--surface); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 8, 7, 0.92));
  font-size: 13.5px; font-weight: 600; color: #fff;
}
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10, 8, 7, 0.94); align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: var(--text-muted); font-size: 15px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 26px; font-size: 34px; color: #fff; background: none; border: none; cursor: pointer; line-height: 1; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px; color: #fff;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer; border-radius: 50%;
  width: 58px; height: 58px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-nav:hover { background: rgba(224, 140, 51, 0.35); }

/* ---------- Precios ---------- */
.price-card { text-align: center; position: relative; overflow: hidden; }
.price-card .plan-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.price-card .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 18px 0 4px; }
.price-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 24px 0; text-align: left; }
.price-card ul li { padding: 11px 0 11px 30px; border-bottom: 1px dashed var(--border); color: var(--text-muted); font-size: 15px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.price-card ul li strong { color: var(--text); }
.price-card .badge {
  position: absolute; top: 18px; right: -34px; transform: rotate(40deg);
  background: var(--accent); color: #16130f; font-size: 11.5px; font-weight: 700;
  padding: 5px 42px; letter-spacing: 0.06em;
}

/* ---------- FAQ ---------- */
.faq-group { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 54px 20px 24px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--accent); transition: transform 0.2s ease; font-weight: 300;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-muted); font-size: 15.5px; }
.faq-item .faq-body ul { margin: 10px 0 10px 22px; }
.faq-item[open] { border-color: rgba(224, 140, 51, 0.4); }

/* ---------- Clientes ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; align-items: center; }
.clients-grid .client {
  background: #f0ece4; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.clients-grid .client:hover { border-color: rgba(224, 140, 51, 0.5); transform: translateY(-3px); }
.clients-grid img { max-height: 74px; width: auto; object-fit: contain; filter: grayscale(35%); transition: filter 0.2s; }
.clients-grid .client:hover img { filter: none; }

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 700px 300px at 50% 0%, rgba(224, 140, 51, 0.2), transparent 65%),
    var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 84px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 640px; margin: 0 auto 30px; }

/* ---------- Contacto ---------- */
.contact-card { text-align: center; }
.contact-card .icon { font-size: 40px; margin-bottom: 14px; }
.contact-card a.big { font-size: 1.15rem; font-weight: 600; }

/* ---------- Formulario de cotización ---------- */
.quote-grid { grid-template-columns: 1.7fr 1fr; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 18px 0 22px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.form-grid input, .form-grid select, .form-grid textarea {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #7d766b; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 140, 51, 0.18); background: var(--surface);
}
.form-grid textarea { resize: vertical; min-height: 100px; }
.form-grid select { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 16px; font-size: 15px; font-weight: 600; min-height: 24px; }
.form-status.ok { color: #6fce7f; }
.form-status.error { color: #e57373; }
button.btn[disabled] { opacity: 0.6; cursor: wait; }
.card.quote-sent > h3 { display: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 36px 16px 18px;
  animation: faqIn 0.4s ease;
}
.quote-form.sent .form-success,
form.sent .form-success { display: block; }
.quote-form.sent .form-fields,
form.sent .form-fields { display: none; }
.form-success-icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(111, 206, 127, 0.14); color: #6fce7f;
  font-size: 36px; font-weight: 700; border: 2px solid rgba(111, 206, 127, 0.45);
}
.form-success h3 {
  font-size: 1.55rem; margin-bottom: 12px; color: var(--text);
}
.form-success p {
  color: var(--text-muted); font-size: 1.08rem; max-width: 420px; margin: 0 auto 28px;
}

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}

/* ---------- Página interior ---------- */
.page-hero { padding: 88px 0 64px; text-align: center;
  background: radial-gradient(ellipse 800px 380px at 50% 0%, rgba(224, 140, 51, 0.13), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.page-hero p { color: var(--text-muted); font-size: 1.18rem; max-width: 760px; margin: 20px auto 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.split h2 { font-size: 1.8rem; margin-bottom: 16px; }
.split p { color: var(--text-muted); margin-bottom: 14px; }

.prose { max-width: 820px; margin: 0 auto; color: var(--text-muted); }
.prose h2 { color: var(--text); font-size: 1.5rem; margin: 42px 0 14px; }
.prose h3 { color: var(--text); font-size: 1.15rem; margin: 30px 0 10px; }
.prose ul { margin: 12px 0 12px 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--border); background: #0e0c0b; padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 46px; }
.site-footer h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--text-muted); font-size: 14.5px; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .brand-col img { height: 48px; margin-bottom: 16px; }
.site-footer .brand-col p { color: var(--text-muted); font-size: 14.5px; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 13.5px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============================================================
   Animaciones y micro-interacciones (v2)
   Solo activas con JS presente (html.js) y sin reduced-motion
   ============================================================ */

/* --- Revelado al hacer scroll, con variantes y escalonado --- */
.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.r-left { transform: translateX(-40px); }
.js .reveal.r-right { transform: translateX(40px); }
.js .reveal.r-zoom { transform: scale(0.92); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Entrada del hero al cargar */
.js .hero .eyebrow, .js .hero h1, .js .hero .lead, .js .hero .hero-actions, .js .hero-media {
  opacity: 0; transform: translateY(28px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.js .hero h1 { animation-delay: 0.12s; }
.js .hero .lead { animation-delay: 0.24s; }
.js .hero .hero-actions { animation-delay: 0.36s; }
.js .hero-media { animation-delay: 0.3s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Entrada del hero en páginas interiores */
.js .page-hero .eyebrow, .js .page-hero h1, .js .page-hero p {
  opacity: 0; transform: translateY(24px);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.js .page-hero h1 { animation-delay: 0.1s; }
.js .page-hero p { animation-delay: 0.22s; }

/* Imagen del hero flotando suavemente */
.hero-media img { animation: floatY 7s ease-in-out 1.2s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero tecnológico: brillo pulsante + flotación */
.hero-tech { position: relative; }
.hero-tech::before {
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(ellipse, rgba(224, 140, 51, 0.35), transparent 70%);
  filter: blur(46px); z-index: 0;
  animation: glowPulse 4.5s ease-in-out infinite;
}
.hero-tech img {
  position: relative; z-index: 1;
  border: 1px solid rgba(224, 140, 51, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 46px rgba(224, 140, 51, 0.22);
  animation: floatY 7s ease-in-out 1.2s infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Subrayado animado en títulos de sección */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: 3px; width: 64px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 3px; transform: translateX(-50%) scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.section-head.visible h2::after, html:not(.js) .section-head h2::after { transform: translateX(-50%) scaleX(1); }

/* --- Barra de progreso de lectura --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 10px rgba(224, 140, 51, 0.6);
}

/* --- Header reactivo al scroll --- */
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled {
  background: rgba(14, 12, 11, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.site-header .nav-wrap { transition: height 0.3s ease; }
.site-header.scrolled .nav-wrap { height: 62px; }
.brand img { transition: transform 0.2s ease; }
.brand:hover img { transform: scale(1.05); }

/* Subrayado animado en enlaces del menú */
.main-nav a.nav-link { position: relative; }
.main-nav a.nav-link::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a.nav-link:hover::before, .main-nav a.nav-link.active::before { transform: scaleX(1); }

/* --- Botones: brillo, presión y ripple --- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(0) scale(0.96); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.5); transform: scale(0);
  animation: ripple 0.55s ease-out forwards;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* --- Tarjetas: elevación con brillo --- */
.card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(224, 140, 51, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(224, 140, 51, 0.18), 0 10px 40px rgba(224, 140, 51, 0.10);
}
.card .card-img { transition: transform 0.35s ease; }
.card:hover .card-img { transform: scale(1.02); }
.card .card-link { position: relative; transition: padding-left 0.2s ease; }
.card:hover .card-link { padding-left: 6px; }

/* --- Iconos de características --- */
.feature { border-radius: var(--radius-sm); transition: background 0.25s ease, transform 0.25s ease; }
.feature:hover { background: var(--accent-soft); transform: translateY(-4px); }
.feature img { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature:hover img { transform: scale(1.14) rotate(-4deg); }
.feature h3 { transition: color 0.25s ease; }
.feature:hover h3 { color: var(--accent); }

/* --- Galería: entrada animada y overlay de zoom --- */
.gallery-item:not(.hidden) { animation: itemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes itemIn { from { opacity: 0; transform: scale(0.94) translateY(14px); } to { opacity: 1; transform: none; } }
.gallery-item::after {
  content: "⊕"; position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(224, 140, 51, 0.92); color: #16130f;
  font-size: 21px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.5); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-item .cap { transition: padding-bottom 0.25s ease; }
.gallery-item:hover .cap { padding-bottom: 16px; }

/* Botones de filtro */
.filter-btn { transition: all 0.2s ease; }
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn:active { transform: scale(0.94); }
.filter-btn.active { box-shadow: 0 6px 18px rgba(224, 140, 51, 0.35); }

/* Lightbox con entrada suave */
.lightbox.open img { animation: lbIn 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.lightbox .lb-nav, .lightbox .lb-close { transition: background 0.2s ease, transform 0.2s ease; }
.lightbox .lb-nav:hover { transform: translateY(-50%) scale(1.1); }
.lightbox .lb-close:hover { transform: rotate(90deg); }

/* --- Logos de clientes --- */
.clients-grid .client { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.clients-grid .client:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }

/* --- FAQ: apertura animada y guía visual --- */
.faq-item { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq-item:hover { border-color: rgba(224, 140, 51, 0.45); }
.faq-item[open] { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.faq-item summary { transition: color 0.2s ease; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] .faq-body { animation: faqIn 0.35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- Precios --- */
.price-card:hover .price { animation: pulseOnce 0.45s ease; }
@keyframes pulseOnce { 50% { transform: scale(1.06); color: var(--accent); } }

/* --- WhatsApp flotante con pulso --- */
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(0.8); opacity: 1; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* --- Botón volver arriba --- */
.to-top {
  position: fixed; bottom: 100px; right: 32px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent);
  border: 1px solid var(--border); cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #16130f; }

/* --- Bandas CTA con brillo animado --- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: -50%; left: -20%; width: 40%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(224, 140, 51, 0.06), transparent);
  transform: skewX(-18deg); animation: bandShine 6s ease-in-out infinite;
}
@keyframes bandShine { 0%, 100% { left: -30%; } 50% { left: 110%; } }
.cta-band .container { position: relative; }

/* --- Accesibilidad y visibilidad --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #16130f; }
.gallery-item .cap {
  background: linear-gradient(transparent, rgba(8, 6, 5, 0.96));
  font-size: 14px; letter-spacing: 0.01em;
}
.section-head p { color: #cdc5b8; }
.card p { color: #c2bab0; }
.hero p.lead { color: #d4ccc0; }

@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 .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: none; }
}
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--border); padding: 18px 24px 26px;
    display: none; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding-left: 18px;
  }
  .main-nav .btn { margin-top: 14px; text-align: center; display: block; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
}
