:root {
  --fm-bg: #0f0f10;
  --fm-bg-alt: #141417;
  --fm-surface: #1b1b1f;
  --fm-surface-alt: #23232a;
  --fm-border-subtle: #33333a;
  --fm-text: #f5f5f7;
  --fm-text-muted: #c0c0c7;
  --fm-accent: #d4af37;
  --fm-accent-soft: rgba(212, 175, 55, 0.12);
  --fm-danger: #f25a5a;
  --fm-radius-lg: 18px;
  --fm-radius-md: 12px;
  --fm-radius-sm: 8px;
  --fm-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --fm-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fm-font-serif: "Playfair Display", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fm-font-sans);
  background: radial-gradient(circle at top, #262632 0, #050507 55%, #000 100%);
  color: var(--fm-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--fm-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.brand-logo {
  height: 32px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--fm-text-muted);
}

.site-nav a.is-active {
  color: var(--fm-text);
}

.header-cta {
  display: none;
  gap: 0.75rem;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--fm-border-subtle);
  background: rgba(10, 10, 13, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fm-text);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 3px;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  inset: 60px 1.5rem auto 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 10, 10, 0.98);
  border-radius: 16px;
  box-shadow: var(--fm-shadow-soft);
}

.site-nav.is-open ul {
  flex-direction: column;
}

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--fm-accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--fm-font-serif);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lead {
  color: var(--fm-text-muted);
  max-width: 36rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlights {
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--fm-text-muted);
  font-size: 0.9rem;
}

.hero-media {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--fm-shadow-soft);
  max-width: 420px;
  justify-self: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fm-accent), #f6d574);
  color: #201b07;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--fm-text);
}

.btn-outline {
  background: transparent;
  border-color: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--fm-text);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--fm-accent);
  font-size: 0.85rem;
  cursor: pointer;
}

.btn:focus-visible,
.btn-link:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #181820 0, #050507 70%);
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  font-family: var(--fm-font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--fm-text-muted);
  margin: 0;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.card-service,
.card-article {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: var(--fm-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.card-service h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.price {
  font-weight: 600;
  color: var(--fm-accent);
  margin-top: 0.1rem;
  margin-bottom: 0.75rem;
}

.price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--fm-text-muted);
  font-weight: 400;
}

.card-service ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--fm-text-muted);
  font-size: 0.9rem;
}

.card-service li + li {
  margin-top: 0.25rem;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-article-media img {
  border-radius: var(--fm-radius-md);
}

.card-article-body {
  margin-top: 0.85rem;
}

.article-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fm-text-muted);
}

.strip {
  padding: 2.4rem 0;
}

.strip-dark {
  background: radial-gradient(circle at top left, #262631 0, #050508 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.strip-grid {
  display: grid;
  gap: 1.75rem;
}

.strip-items {
  display: grid;
  gap: 1rem;
}

.strip-item {
  padding: 1rem 1.1rem;
  border-radius: var(--fm-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 13, 0.75);
}

.strip-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.strip-item p {
  margin: 0 0 0.5rem;
  color: var(--fm-text-muted);
}

.text-link {
  font-size: 0.86rem;
}

.cotizador-grid {
  display: grid;
  gap: 2rem;
}

.cotizador-form {
  background: rgba(10, 10, 13, 0.9);
  border-radius: var(--fm-radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--fm-shadow-soft);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--fm-text-muted);
  margin: 0.25rem 0 0;
}

.field-inline {
  display: grid;
  gap: 1rem;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border-radius: var(--fm-radius-sm);
  border: 1px solid var(--fm-border-subtle);
  background: rgba(6, 6, 10, 0.9);
  color: var(--fm-text);
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.92rem;
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 1px;
}

.cotizador-result {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.cotizador-monto {
  font-weight: 600;
}

.cotizador-note {
  font-size: 0.82rem;
  color: var(--fm-text-muted);
}

.cotizador-aside {
  font-size: 0.9rem;
  color: var(--fm-text-muted);
}

.cotizador-aside h3 {
  font-size: 1.1rem;
}

.cotizador-aside ul {
  padding-left: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item img {
  border-radius: var(--fm-radius-md);
}

.gallery-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.section-cta {
  background: radial-gradient(circle at center, #262631 0, #050508 70%);
}

.section-cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.section-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050507;
  padding: 2.5rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-logo {
  height: 28px;
}

.footer-tagline {
  margin: 0.75rem 0 0.25rem;
}

.footer-meta,
.footer-hours {
  color: var(--fm-text-muted);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.75rem;
  padding-top: 1rem;
  color: var(--fm-text-muted);
  text-align: center;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 30;
}

.fab {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  font-size: 1.2rem;
}

.fab-phone span {
  color: #58d0ff;
}

.fab-whatsapp span {
  color: #25d366;
}

.fab:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 3px;
}

.chatbot {
  position: fixed;
  right: 1rem;
  bottom: 5.2rem;
  z-index: 40;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top left, #343439 0, #131318 70%);
  color: var(--fm-text);
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
}

.chatbot-toggle-label::before {
  content: "●";
  color: #3df39b;
  margin-right: 0.35rem;
}

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 3rem;
  width: min(100vw - 2rem, 360px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(5, 5, 8, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.95);
}

.chatbot-header {
  padding: 0.9rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header h2 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.chatbot-header p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fm-text-muted);
}

.chatbot-close {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--fm-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.chatbot-body {
  padding: 0.75rem 0.9rem;
  overflow-y: auto;
  flex: 1;
}

.chatbot-message {
  max-width: 90%;
  margin-bottom: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  font-size: 0.82rem;
}

.chatbot-message-bot {
  background: rgba(255, 255, 255, 0.04);
}

.chatbot-message-user {
  background: var(--fm-accent-soft);
  margin-left: auto;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.4rem;
}

.chatbot-quick-replies button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fm-text);
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.chatbot-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-form input {
  flex: 1;
  font-size: 0.82rem;
}

.btn-chatbot-send {
  border-radius: 999px;
  border: none;
  background: var(--fm-accent);
  color: #201b07;
  font-size: 0.8rem;
  padding: 0 0.8rem;
  cursor: pointer;
}

.chatbot-reset {
  border: none;
  background: transparent;
  color: var(--fm-text-muted);
  font-size: 0.76rem;
  padding: 0.15rem 0.9rem 0.4rem;
  text-align: left;
  cursor: pointer;
}

.chatbot-disclaimer {
  padding: 0 0.9rem 0.8rem;
  margin: 0;
  font-size: 0.7rem;
  color: var(--fm-text-muted);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(8, 8, 10, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-links a {
  font-size: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strip-grid {
    grid-template-columns: 1.3fr 2fr;
    align-items: center;
  }

  .strip-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cotizador-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: flex-start;
  }

  .field-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }

  .hero-media {
    max-width: 430px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1.3fr 1fr;
  }

  .section-cta-inner {
    grid-template-columns: 1.7fr 1.2fr;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Catálogo, políticas y redes oficiales */
[hidden] { display: none !important; }
.catalog-tools { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; margin: 2rem 0 1rem; padding: 1.2rem; background: var(--fm-surface); border-radius: var(--fm-radius-md); }
.catalog-tools label { display: grid; gap: .5rem; font-weight: 600; }
.catalog-tools input, .catalog-tools select { width: 100%; min-width: 0; min-height: 46px; padding: .7rem; border: 1px solid var(--fm-border-subtle); border-radius: 8px; background: #101014; color: var(--fm-text); font: inherit; }
.catalog-card { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.catalog-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; background: var(--fm-bg-alt); }
.catalog-card h2 { font-size: 1.3rem; margin: 0; }
.catalog-card .btn { margin-top: auto; }
.policy-content { overflow-wrap: anywhere; }
.policy-content > p, .policy-content > dl, .policy-content > ol, .policy-content > ul { max-width: 80ch; line-height: 1.8; }
.policy-content > h2 { margin-top: 2rem; }
.policy-content dt { color: var(--fm-accent); font-weight: 600; margin-top: 1rem; }
.policy-content dd { margin: .3rem 0 1rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; }
.social-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem; }
.social-symbol { border: 1px solid currentColor; border-radius: 50%; width: 2rem; height: 2rem; display: inline-grid; place-items: center; font-weight: 700; }
:focus-visible { outline: 2px solid var(--fm-accent); outline-offset: 4px; }
@media (max-width: 800px) { .catalog-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .catalog-tools { grid-template-columns: 1fr; } }
