/* Aurora — tema FolksCMS. Todo el look sale de los design tokens (:root inyectado). */

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

html { scroll-behavior: smooth }

body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block }
a { color: var(--c-primary); text-decoration: none }

h1, h2, h3 { font-family: var(--font-display); color: var(--c-ink); line-height: 1.15; letter-spacing: -0.02em }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700 }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700 }
h3 { font-size: 1.15rem; font-weight: 700 }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem }
.container-narrow { max-width: 760px }

.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-primary); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--c-body); max-width: 60ch }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .65rem 1.4rem; border-radius: 999px;
  background: var(--c-primary); color: #fff; font-weight: 650; font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--c-primary) 35%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--c-primary) 45%, transparent) }
.btn-lg { padding: .9rem 2rem; font-size: 1.02rem }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem }
.btn-ghost { background: transparent; color: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-primary) }
.btn-ghost:hover { background: var(--c-primary-soft); box-shadow: inset 0 0 0 2px var(--c-primary) }
.btn-invert { background: #fff; color: var(--c-primary); box-shadow: 0 6px 20px rgb(0 0 0 / .2) }

/* ── Header ──────────────────────────────────────────────── */
.site-header { position: relative; z-index: 50 }
/* Solo el header principal queda fijo; la barra superior se va con el scroll */
.header-main { position: sticky; top: 0; z-index: 50 }

/* Barra superior de utilidad (dirección · email · redes) */
.topbar {
  background: var(--c-ink); color: color-mix(in srgb, #fff 78%, transparent);
  font-size: .82rem;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 1rem }
.topbar-left { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap }
.topbar-right { display: flex; align-items: center; gap: .3rem }
.tb-item { display: inline-flex; align-items: center; gap: .45rem; color: inherit }
a.tb-item:hover { color: #fff }
.tb-item svg { opacity: .8; flex-shrink: 0 }
.tb-since { color: color-mix(in srgb, #fff 55%, transparent); margin-right: .8rem }
.tb-social {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: color-mix(in srgb, #fff 78%, transparent); transition: background .15s, color .15s;
}
.tb-social:hover { background: color-mix(in srgb, var(--c-primary) 60%, transparent); color: #fff }

/* Header principal */
.header-main {
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--c-border);
  transition: box-shadow .25s ease;
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; height: 78px }
.brand { flex-shrink: 0 }
.brand img { height: 46px; width: auto }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--c-ink) }
.site-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto }
/* Nav estilo "utility": píldoras */
.hdr-utility .site-nav > a, .hdr-utility .nav-drop-btn {
  color: var(--c-ink); font-weight: 600; font-size: .95rem; padding: .5rem .9rem; border-radius: 999px;
  transition: background .15s, color .15s;
}
.hdr-utility .site-nav > a:hover, .hdr-utility .nav-drop-btn:hover { background: var(--c-primary-soft); color: var(--c-primary) }
.hdr-utility .site-nav > a.active { background: var(--c-primary); color: #fff }
/* Nav estilo "classic": enlaces minimalistas con subrayado que crece */
.hdr-classic .site-nav { gap: 1.6rem }
.hdr-classic .site-nav > a, .hdr-classic .nav-drop-btn {
  color: var(--c-ink); font-weight: 550; font-size: .95rem; opacity: .82; position: relative; padding-bottom: 3px;
  transition: opacity .15s, color .15s;
}
.hdr-classic .site-nav > a:hover, .hdr-classic .site-nav > a.active, .hdr-classic .nav-drop-btn:hover { opacity: 1; color: var(--c-primary) }
.hdr-classic .site-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.hdr-classic .site-nav > a:hover::after, .hdr-classic .site-nav > a.active::after { transform: scaleX(1) }
.hdr-classic .site-nav .btn { opacity: 1 } .hdr-classic .site-nav .btn::after { display: none }
/* CTA de teléfono a la derecha (estilo Cleanco, con color de marca) */
.header-cta {
  display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0;
  padding: .55rem 1.3rem .55rem .6rem; border-radius: 999px;
  background: var(--c-primary-soft); transition: transform .18s, box-shadow .18s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px color-mix(in srgb, var(--c-primary) 30%, transparent) }
.header-cta .cta-ic {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; flex-shrink: 0;
}
.header-cta .cta-tx { display: flex; flex-direction: column; line-height: 1.15 }
.header-cta .cta-tx small { font-size: .7rem; color: var(--c-muted); font-weight: 600 }
.header-cta .cta-tx strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--c-ink) }
/* Hamburguesa animada */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; margin-left: auto }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: .25s }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--c-primary) 14%, transparent), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--c-accent) 10%, transparent), transparent 60%),
    var(--c-surface-alt);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center }
.hero-inner:has(.hero-media:empty), .hero-inner:not(:has(.hero-media)) { grid-template-columns: 1fr; text-align: center }
.hero-inner:not(:has(.hero-media)) .lead { margin: 0 auto }
.hero h1 { margin: 0 0 1.1rem }
.hero .lead { margin-bottom: 2rem }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap }
.hero-inner:not(:has(.hero-media)) .hero-actions { justify-content: center }
/* Recorte por sección: la imagen se adapta a la proporción del layout
   (cuadrada en el hero de 2 columnas), no al ratio original del archivo */
.hero-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}
@media (max-width: 860px) { .hero-media img { aspect-ratio: 16 / 10 } }

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0 }
.section-alt { background: var(--c-surface-alt) }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem }
.section-head .lead { margin: .8rem auto 0 }

/* ── Tarjetas (servicios / blog) ─────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem }
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg) }
.card h3 { margin-bottom: .5rem }
.card h3 a { color: inherit }
.card-icon { font-size: 2rem; margin-bottom: 1rem }
.card-price { margin-top: 1rem; font-weight: 700; color: var(--c-primary) }
.card-service { padding: 0; overflow: hidden; display: flex; flex-direction: column }
.card-service .card-photo { display: block; width: 100%; overflow: hidden }
/* El recorte va en la imagen: aspect-ratio + object-fit ignoran la
   proporción del archivo original (vertical u horizontal, da igual) */
.card-service .card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0;
  transition: transform .3s ease }
.card-service:hover .card-photo img { transform: scale(1.04) }
.card-service .card-body { padding: 1.5rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1 }
.card-more { margin-top: auto; padding-top: 1rem; font-weight: 650 }
.card-more a::after { content: " →"; transition: margin .15s }
.card-more a:hover::after { margin-left: 4px }
.card-cover { border-radius: var(--radius-sm); margin-bottom: 1.2rem; aspect-ratio: 16/9; object-fit: cover }
.card time { display: block; margin-top: .9rem; font-size: .8rem; color: var(--c-muted) }

/* ── Features ────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.2rem }
.feature { text-align: center }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--c-primary-soft); border-radius: 20px;
}
.feature h3 { margin-bottom: .4rem }
.feature-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem }

/* ── Bloque de precios (pricing) ── */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; align-items: stretch }
.price-card { position: relative; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2.2rem 1.5rem;
  text-align: center; background: var(--c-surface); display: flex; flex-direction: column; gap: .7rem }
.price-card.featured { border-color: var(--c-primary); border-width: 2px; box-shadow: var(--shadow-lg) }
.price-badge { position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); background: var(--c-primary);
  color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px }
.price-card h3 { font-size: 1.15rem; margin: 0 }
.price-amt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--c-primary); line-height: 1 }
.price-card p { color: var(--c-muted); font-size: .92rem; line-height: 1.5; flex: 1; margin: 0 }
.price-card .btn { justify-content: center; margin-top: .4rem }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: grid; gap: .8rem }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 650; color: var(--c-ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--c-primary); transition: transform .2s }
.faq-item[open] summary::after { transform: rotate(45deg) }
.faq-item p { margin-top: .8rem; padding-right: 2rem }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 60%, #7c3aed));
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) 2rem; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: .6rem }
.cta-banner p { opacity: .9; max-width: 55ch; margin: 0 auto 1.8rem }

/* ── Contacto ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start }
.contact-info { list-style: none; margin-top: 1.5rem; display: grid; gap: .7rem }
.contact-form { display: grid; gap: .4rem; background: var(--c-surface); padding: 2rem;
  border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow) }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--c-ink); margin-top: .6rem }
.contact-form input, .contact-form textarea {
  padding: .7rem .9rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font: inherit; background: var(--c-surface-alt);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--c-primary); border-color: transparent }
.contact-form .btn { margin-top: 1.2rem; justify-self: start }
.form-notice { background: #ecfdf5; color: #047857; padding: 1rem 1.3rem; border-radius: var(--radius-sm); font-weight: 550 }
.form-error { background: #fef2f2; color: #b91c1c; margin-bottom: 1rem }

/* ── Bloques de texto ────────────────────────────────────── */
.text-block h2 { margin-bottom: 1.2rem }  /* aire entre el título y el primer párrafo */
/* Separación entre párrafos consecutivos del bloque: mayor que la interlínea
   (1.65em) para que al terminar un párrafo se note el salto */
.text-block .prose + .prose { margin-top: 1.75em }

/* ── Testimonios ─────────────────────────────────────────── */
.testimonial { margin: 0 }
.testimonial .stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: .8rem }
.testimonial blockquote { margin: 0 0 1rem; font-size: .98rem; color: var(--c-body) }
.testimonial figcaption strong { color: var(--c-ink) }
.testimonial .t-source { display: block; font-size: .78rem; color: var(--c-muted); margin-top: .15rem }
.t-cta { text-align: center; margin-top: 2rem }

/* ── Banner con imagen de fondo (full-bleed) ─────────────── */
.banner {
  position: relative; background-size: cover; background-position: center;
  background-color: var(--c-ink);
  padding: clamp(4rem, 10vw, 7rem) 0; color: #fff; overflow: hidden;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--c-ink) 82%, transparent),
    color-mix(in srgb, var(--c-primary) 55%, transparent));
}
.banner-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto }
.banner.banner-left .banner-inner { text-align: left; margin: 0 }
.banner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem }
.banner-kicker { color: color-mix(in srgb, #fff 85%, var(--c-accent)) }
.banner-text { font-size: 1.1rem; opacity: .92; margin-bottom: 2rem; max-width: 60ch }
.banner.banner-left .banner-text { margin-left: 0 }
.banner .btn { background: #fff; color: var(--c-primary); box-shadow: 0 10px 30px rgb(0 0 0 / .3) }
.banner .btn:hover { background: var(--c-accent); color: #fff }

/* ── Mapa (SEO local) ────────────────────────────────────── */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border) }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0 }
@media (max-width: 860px) { .map-embed iframe { height: 300px } }

/* ── Equipo ──────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem }
.team-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow) }
.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  background: var(--c-primary-soft); color: var(--c-primary); font-family: var(--font-display); font-size: 1.8rem; font-weight: 700 }
.team-role { color: var(--c-primary); font-size: .85rem; font-weight: 650; margin-top: .2rem }
.team-bio { font-size: .88rem; margin-top: .6rem }

/* ── Prose (blog) ────────────────────────────────────────── */
.prose { font-size: 1.05rem }
/* Salto tras párrafo (1.75em) > interlínea (1.65em): fin de párrafo visible */
.prose p, .prose ul, .prose ol { margin-bottom: 1.75em }
.prose h2, .prose h3 { margin: 2rem 0 .8rem }
.prose ul, .prose ol { padding-left: 1.4rem }
.article-head { text-align: center; margin-bottom: 2.5rem }
.article-meta { color: var(--c-muted); font-size: .9rem; margin-top: .8rem }
.article-cover { border-radius: var(--radius); margin-bottom: 2.5rem; box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover }

/* ── Footer — común ──────────────────────────────────────── */
.site-footer { margin-top: 3rem; position: relative }
.site-footer a { transition: color .15s }
.footer-title { font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 1rem; font-size: .95rem }
.footer-bottom { padding: 1.3rem 1.25rem; font-size: .8rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center }
.footer-bottom .fb-left p { margin: 0 } .footer-bottom .fb-credit { margin-top: .2rem !important }
.footer-bottom .fb-credit a { font-weight: 700; text-decoration: underline }
.footer-legal a { margin-left: 1.2rem } .footer-legal a:first-child { margin-left: 0 }
.footer-legal a { text-decoration: underline }
.footer-review { font-weight: 650 }

/* ── Footer "centered": dirección centrada sobre blanco + franja de acento ── */
.ftr-centered { background: var(--c-surface); color: var(--c-ink) }
.ftr-centered .ftr-c-top { text-align: center; padding: 3rem 1.25rem 2.4rem; display: flex; flex-direction: column; align-items: center; gap: .8rem }
.ftr-centered .ftr-c-logo { height: 46px; width: auto }
.ftr-centered .ftr-c-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem }
.ftr-centered .ftr-c-addr { font-size: 1.05rem; color: var(--c-ink) }
.ftr-centered .ftr-c-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center }
.ftr-centered .ftr-c-links a { color: var(--c-ink); opacity: .8; font-weight: 550 } .ftr-centered .ftr-c-links a:hover { opacity: 1; color: var(--c-primary) }
.ftr-centered .footer-social a { color: var(--c-ink) }
.ftr-centered .footer-bottom-wrap { background: var(--c-accent) }
.ftr-centered .footer-bottom { color: color-mix(in srgb, #fff 82%, transparent) }
.ftr-centered .footer-bottom a { color: #fff }

/* ── Footer "rich": color de marca, franja de contacto, 4 columnas ── */
.ftr-rich {
  background: color-mix(in srgb, var(--c-primary) 78%, #0a0e1a);
  color: color-mix(in srgb, #fff 72%, transparent);
  padding-top: 3.5rem; /* aire para la franja, que va DENTRO del footer */
}
.ftr-rich a { color: color-mix(in srgb, #fff 72%, transparent) }
.ftr-rich a:hover { color: #fff }
/* Franja de contacto: dentro del footer oscuro (sin solaparse con la sección clara) */
.footer-contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem 2rem;
  background: color-mix(in srgb, #fff 9%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: var(--radius); padding: 1.6rem 2rem; margin-bottom: 2.8rem;
}
.fc-item { display: flex; align-items: center; gap: 1rem; color: color-mix(in srgb, #fff 72%, transparent) }
.fc-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, #fff 15%, transparent); color: #fff; flex-shrink: 0 }
.fc-tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0 }
.fc-tx small { font-size: .75rem; color: color-mix(in srgb, #fff 55%, transparent); margin-bottom: .1rem }
.fc-tx strong { color: #fff; font-size: .95rem; font-weight: 650; overflow-wrap: anywhere }
.ftr-rich .footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 0 1.25rem 3.5rem }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95 }
.ftr-rich .footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: 1rem }
.footer-blurb { font-size: .9rem; line-height: 1.6; margin-bottom: 1.2rem; max-width: 34ch }
.footer-social { display: flex; gap: .5rem }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, #fff 10%, transparent); color: #fff }
.footer-social a:hover { background: color-mix(in srgb, var(--c-accent) 85%, #000); color: #fff }
.footer-col { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem }
.footer-col .fcol-line { color: color-mix(in srgb, #fff 65%, transparent); margin-bottom: .2rem }
.ftr-rich .footer-review { color: var(--c-accent) !important; margin-top: .3rem }
.footer-bottom-wrap { border-top: 1px solid color-mix(in srgb, #fff 12%, transparent) }
.ftr-rich .footer-bottom p { color: color-mix(in srgb, #fff 55%, transparent) }

/* ── Footer "classic": oscuro neutro, 3 columnas ── */
.ftr-classic { background: var(--c-ink); color: #cbd2e0 }
.ftr-classic a { color: #cbd2e0 } .ftr-classic a:hover { color: #fff }
.ftr-classic .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.25rem }
.ftr-classic .footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff }
.ftr-classic .footer-tagline { opacity: .7; margin-top: .4rem; font-size: .9rem }
.ftr-classic .footer-title { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem }
.ftr-classic p { font-size: .92rem; margin-bottom: .3rem }
.ftr-classic .footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); opacity: .7 }
.ftr-classic .footer-review { color: #cbd2e0 }

/* ── Header "variety": logo + nav centrado + botón oscuro ── */
.nav-wrap--variety { display: flex; align-items: center }
.nav-wrap--variety .brand { flex: 1 }
.site-nav--center { flex: 0 0 auto; margin: 0 auto; gap: 1.7rem }
.hdr-variety .variety-actions { flex: 1; display: flex; justify-content: flex-end }
.hdr-variety .site-nav > a, .hdr-variety .nav-drop-btn {
  color: var(--c-ink); font-weight: 550; font-size: .95rem; opacity: .85; position: relative; padding-bottom: 3px;
  transition: opacity .15s, color .15s;
}
.hdr-variety .site-nav > a:hover, .hdr-variety .site-nav > a.active, .hdr-variety .nav-drop-btn:hover { opacity: 1; color: var(--c-primary) }
.hdr-variety .site-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c-ink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.hdr-variety .site-nav > a:hover::after, .hdr-variety .site-nav > a.active::after { transform: scaleX(1) }
.btn-dark {
  display: inline-block; background: var(--c-ink); color: #fff; border-radius: 999px;
  padding: .7rem 1.6rem; font-weight: 650; font-size: .92rem; transition: transform .18s, background .18s;
}
.btn-dark:hover { transform: translateY(-2px); background: var(--c-primary) }

/* ── Footer "bold": encabezado grande + columnas (fondo claro) ── */
.ftr-bold { background: var(--c-surface-alt); color: var(--c-body); border-top: 1px solid var(--c-border); padding-top: 4rem }
.ftr-bold a { color: var(--c-ink) } .ftr-bold a:hover { color: var(--c-primary) }
.footer-bold-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 0 1.25rem 3rem }
.fb-heading h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--c-ink); line-height: 1.1; max-width: 12ch }
.ftr-bold .footer-title { color: var(--c-ink); text-transform: none; letter-spacing: 0 }
.fb-col { display: flex; flex-direction: column; gap: .35rem }
.fb-line { color: var(--c-body); font-size: .95rem }
.fb-email { text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; margin-bottom: .3rem }
.fb-phone { font-size: 1.05rem; font-weight: 650; color: var(--c-ink) !important }
.ftr-bold .footer-review { color: var(--c-primary) !important; margin-top: .3rem }
.fb-social { display: flex; gap: .6rem; margin-top: 1.2rem }
.fb-social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-border);
  display: grid; place-items: center; color: var(--c-ink); transition: background .15s, border-color .15s }
.fb-social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff }
.footer-bold-bottom { border-top: 1px solid var(--c-border); padding: 1.5rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap }
.fb-nav { display: flex; gap: 1.6rem; flex-wrap: wrap }
.fb-nav a { font-size: .9rem; font-weight: 550 }
.fb-copy { color: var(--c-muted); font-size: .82rem }

/* ── Banner de borrador (solo agencia) ───────────────────── */
.draft-banner {
  background: #f59e0b; color: #451a03; text-align: center; font-weight: 650;
  font-size: .85rem; padding: .5rem 1rem; position: sticky; top: 0; z-index: 60;
}
.draft-banner ~ .site-header { top: 34px }

/* ── Dropdown de servicios ───────────────────────────────── */
.nav-dropdown { position: relative }
.nav-drop-btn {
  background: none; border: 0; cursor: pointer; font: inherit; font-weight: 550;
  font-size: .95rem; color: var(--c-ink); opacity: .8; padding: 0;
}
.nav-drop-btn:hover { opacity: 1; color: var(--c-primary) }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: .5rem; min-width: 230px; z-index: 40;
}
/* Puente invisible sobre el gap de 12px: sin él, el hover se pierde al
   mover el cursor del botón hacia el submenú y este se cierra. */
.nav-drop-menu::before {
  content: ""; position: absolute; top: -14px; left: -12px; right: -12px; height: 16px;
}
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu, .nav-dropdown.open .nav-drop-menu { display: block }
.nav-drop-menu a {
  display: block; padding: .55rem .9rem; border-radius: 8px; color: var(--c-ink);
  font-size: .92rem; font-weight: 500;
}
.nav-drop-menu a:hover { background: var(--c-primary-soft); color: var(--c-primary) }

/* ── Botones flotantes WhatsApp / llamada (config. por cliente) ── */
.float-btns {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70;
  display: flex; flex-direction: column; gap: .8rem;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  transition: transform .18s ease;
}
.float-btn:hover { transform: scale(1.08) }
.float-wa { background: #25d366 }
.float-call { background: var(--c-primary) }
@media (max-width: 860px) { .float-btns { right: .9rem; bottom: .9rem } }

/* ── Badge de imagen placeholder (solo agencia) ──────────── */
.hero-media { position: relative }
.ph-badge {
  position: absolute; top: .8rem; left: .8rem; background: rgb(0 0 0 / .65); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
}

/* ── Editor inline ───────────────────────────────────────── */
.edit-toolbar {
  position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 1rem;
  background: #14161d; color: #e8eaf0; padding: .55rem 1.2rem; font-size: .85rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.et-brand { font-weight: 700 }
.et-status { flex: 1; color: #8b91a3 }
.et-status.ok { color: #4ade80 } .et-status.err { color: #ff6b6b } .et-status.busy { color: #fbbf24 }
.et-actions { display: flex; gap: .8rem; align-items: center }
.et-actions button, .et-actions a {
  background: #2a2f3d; color: #e8eaf0; border: 0; border-radius: 8px; padding: .4rem .9rem;
  font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.et-actions button:hover, .et-actions a:hover { background: #3a4054 }
.fe { cursor: text; border-radius: 4px; transition: box-shadow .15s; min-width: 1ch; display: inline-block }
.fe:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary) 45%, transparent) }
.fe:focus { outline: none; box-shadow: 0 0 0 2px var(--c-primary); background: color-mix(in srgb, var(--c-primary) 6%, transparent) }
.et-img-btn {
  position: absolute; bottom: .8rem; right: .8rem; z-index: 5;
  background: rgb(0 0 0 / .7); color: #fff; border: 0; border-radius: 999px;
  padding: .45rem 1rem; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.et-img-btn:hover { background: rgb(0 0 0 / .85) }

/* ── Reveal on scroll (con stagger en grillas) ───────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease }
.reveal.in { opacity: 1; transform: none }
.cards .reveal:nth-child(2), .features .reveal:nth-child(2), .team-grid .reveal:nth-child(2) { transition-delay: .1s }
.cards .reveal:nth-child(3), .features .reveal:nth-child(3), .team-grid .reveal:nth-child(3) { transition-delay: .2s }
.cards .reveal:nth-child(4) { transition-delay: .3s }
.cards .reveal:nth-child(5) { transition-delay: .4s }

/* ── Microinteracciones ──────────────────────────────────── */
/* Header: sombra al hacer scroll (la página "responde") */
.header-main.scrolled { box-shadow: 0 6px 24px rgb(17 24 39 / .08) }

/* Hero: flotación suave de la imagen */
@keyframes floaty { 0%, 100% { translate: 0 0 } 50% { translate: 0 -9px } }
.hero-media img { animation: floaty 7s ease-in-out infinite }

/* Botón flotante: anillo de pulso que invita al contacto */
.float-btn { position: relative }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent) }
  70%, 100% { box-shadow: 0 0 0 16px transparent }
}
.float-wa { color: #25d366 }
.float-call { color: var(--c-primary) }
.float-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: pulse-ring 3.5s ease-out infinite;
}
.float-btn svg { color: #fff }

/* FAQ: la respuesta entra con suavidad */
@keyframes fade-slide { from { opacity: 0; translate: 0 -6px } to { opacity: 1; translate: 0 0 } }
.faq-item[open] p { animation: fade-slide .3s ease }

/* Botones: sensación táctil al presionar */
.btn:active, button:active { transform: translateY(0) scale(.97) }

/* Nota: las animaciones corren siempre, sin depender de la preferencia
   "reducir movimiento" del sistema (decisión de la agencia). */

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .header-cta .cta-tx { display: none }
  .header-cta { padding: .4rem }
}
@media (max-width: 860px) {
  .hero-inner, .contact-grid { grid-template-columns: 1fr }
  .ftr-rich .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem }
  .ftr-classic .footer-grid { grid-template-columns: 1fr; gap: 1.8rem }
  .footer-bold-grid { grid-template-columns: 1fr; gap: 1.8rem }
  .footer-about { grid-column: 1 / -1 }
  .site-nav--center { margin: 0 } .variety-actions { display: none }
  .nav-wrap { height: 66px }
  .nav-toggle { display: flex }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
  .nav-toggle.open span:nth-child(2) { opacity: 0 }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }
  .header-cta { display: none }
  .site-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; background: var(--c-surface); padding: 1rem;
    border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-lg); gap: .2rem;
  }
  .site-nav.open { display: flex }
  .site-nav > a, .nav-drop-btn { text-align: left }
  .topbar-left { gap: 1rem } .tb-item span, .tb-since { display: none }
}
@media (max-width: 560px) {
  .ftr-rich .footer-grid { grid-template-columns: 1fr }
  .topbar-left .tb-item:not(:first-child) { display: none }
}
