/* =========================================================
   ALMA DIGITAL — Estilos
   Cambia los colores de la marca aquí, en :root
   ========================================================= */
:root {
  --bg: #0d0c12;
  --bg-alt: #13121a;
  --surface: #1a1922;
  --border: #2a2833;
  --text: #f3f1ec;
  --muted: #a3a0ad;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --accent-2: #b9a7ff;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1160px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 800px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #1a0d07;
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: #ff8360; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 12, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.logo__light { font-weight: 500; color: var(--muted); margin-left: 0.15em; }
.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 4px;
  background: var(--accent);
  box-shadow: 6px -6px 0 -2px var(--accent-2);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.22), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 2.5rem; }

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  line-height: 1.1;
}

/* Maqueta de navegador */
.hero__visual { position: relative; }
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.browser__bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser__url {
  margin-left: 10px;
  flex: 1;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
}
.browser__body { padding: 22px; display: grid; gap: 22px; }
.mock-nav { display: flex; gap: 10px; justify-content: flex-end; }
.mock-nav i { width: 38px; height: 7px; border-radius: 4px; background: var(--border); }
.mock-nav i:first-child { margin-right: auto; width: 60px; background: var(--accent); }
.mock-hero { display: grid; gap: 10px; padding: 10px 0; }
.mock-line { height: 14px; border-radius: 6px; background: var(--border); }
.mock-line--xl { width: 85%; height: 22px; background: #3a3744; }
.mock-line--lg { width: 65%; height: 22px; background: #3a3744; }
.mock-line--md { width: 50%; }
.mock-btn {
  width: 110px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 8px;
  animation: pulse 2.6s ease-in-out infinite;
}
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards div { height: 76px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); }
.mock-cards div:nth-child(2) { background: var(--accent-soft); border-color: rgba(255, 106, 61, 0.3); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  animation: float 5s ease-in-out infinite;
}
.float-card--a { left: -28px; bottom: 60px; }
.float-card--b { right: -18px; top: 70px; background: var(--accent-2); animation-delay: -2.5s; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--ok { background: #22c55e; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.5); } 60% { box-shadow: 0 0 0 10px rgba(255, 106, 61, 0); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 3.5rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Tarjetas de servicio */
.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 61, 0.45); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 1.4rem;
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Proceso */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--muted);
  margin-bottom: 0.8rem;
}
.step p { color: var(--muted); margin: 0; }

/* Proyectos */
.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease;
}
.project:hover { transform: translateY(-4px); }
.project__thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: end center;
  padding: 1.6rem 1.6rem 0;
}
.project__thumb--1 { background: linear-gradient(160deg, #3d5a3a, #1f2e1e); }
.project__thumb--2 { background: linear-gradient(160deg, #6b4fd6, #2c2160); }
.project__thumb--3 { background: linear-gradient(160deg, #e0a15b, #7a4a1d); }
.thumb-ui {
  width: 100%;
  height: 80%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px 12px 0 0;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.4s ease;
}
.project:hover .thumb-ui { transform: translateY(-8px); }
.thumb-ui i { height: 10px; border-radius: 5px; background: #d9d6e0; }
.thumb-ui i:first-child { width: 70%; height: 16px; background: #2a2833; }
.thumb-ui i:nth-child(2) { width: 90%; }
.thumb-ui i:nth-child(3) { width: 40%; height: 26px; border-radius: 999px; background: var(--accent); margin-top: 6px; }
.project__info { padding: 1.5rem 1.6rem 1.7rem; }
.project__info p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent-2);
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

/* Planes */
.plans { align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px rgba(255, 106, 61, 0.45);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0d07;
  font-size: 0.75rem;
  font-weight: 700;
}
.plan__desc { color: var(--muted); font-size: 0.95rem; }
.plan__price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.5rem;
}
.plan__price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.plan__list { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95rem;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Testimonios */
.quote {
  margin: 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; }
.quote small { display: block; color: var(--muted); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Preguntas frecuentes */
.faq { display: grid; gap: 0.8rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1.5rem;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(255, 106, 61, 0.45); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }

/* Contacto */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: -200px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(185, 167, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: start;
}
.contact__text > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: grid; gap: 0.1rem; }
.contact__list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact__list a { font-weight: 700; font-size: 1.1rem; }
.contact__list a:hover { color: var(--accent); }

.form {
  display: grid;
  gap: 1.1rem;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; }
.form input::placeholder,
.form textarea::placeholder { color: #6c6977; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__note { font-size: 0.82rem; color: var(--muted); margin: 0; text-align: center; }
.form__hp { display: none; }
.form__status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form__status--ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.form__status--error { background: var(--accent-soft); border: 1px solid rgba(255, 106, 61, 0.45); color: #ffb39c; }
.form__status a { text-decoration: underline; font-weight: 700; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Pie de página */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { color: var(--muted); font-size: 0.92rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner,
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 560px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; padding: 0.95rem; }

  .grid--3,
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .float-card--a { left: -6px; }
  .float-card--b { right: -6px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 999px;
  background: #25d366;
  color: #07270f;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(130%);
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.2s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #2ee377; }
.wa-float:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.wa-float svg { width: 28px; height: 28px; fill: #07270f; display: block; flex: none; }
.wa-float__label {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease;
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { max-width: 140px; }

@media (max-width: 760px) {
  .wa-float { right: 16px; bottom: 16px; padding: 13px; }
  .wa-float__label { display: none; }
}

.project { display: block; color: inherit; }
.project__ver {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.project:hover .project__ver { text-decoration: underline; }

/* ---------- Artículo de contenido ---------- */
.articulo { padding: clamp(3rem, 7vw, 5rem) 0; }
.migas { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.3rem; }
.migas a:hover { color: var(--accent); }
.prosa { max-width: 760px; }
.prosa > p:first-of-type { font-size: 1.15rem; }
.prosa h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.8rem; }
.prosa h3 { margin-top: 1.9rem; }
.prosa p, .prosa li { color: var(--muted); }
.prosa strong { color: var(--text); }
.prosa ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; margin: 0 0 1.3rem; }
.prosa a { color: var(--accent); font-weight: 700; }
.prosa a:hover { text-decoration: underline; }

.tabla-envoltura { overflow-x: auto; margin: 1.6rem 0; }
.tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.tabla th, .tabla td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.tabla th {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.tabla td:first-child { color: var(--text); font-weight: 500; }
.tabla .precio-celda { font-family: var(--font-display); font-weight: 800; color: var(--text); white-space: nowrap; }

.destacado {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; margin: 1.9rem 0;
}
.destacado p:last-child { margin: 0; }
.cierre {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem); margin-top: 3rem; text-align: center; max-width: 760px;
}
.cierre p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.cierre .btn { margin-top: 0.6rem; }
