/* FWL — plantilla visual MASTER (layout + componentes) */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent, #c9a227); }
a:hover { opacity: 0.92; }

h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--muted {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Top bar —— */
.top-bar {
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.875rem;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.top-bar__info { opacity: 0.95; }

/* —— Header —— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--color-text);
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}
.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}
.header__logo {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.header__logo img {
  max-height: 48px;
  width: auto;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}
.header__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.header__nav a:hover,
.header__nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header__phone {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-primary);
  line-height: 1;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header__phone { display: none; }
  .header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }
  .header__nav.is-open { display: flex; }
  .header > .container { position: relative; }
  body.nav-open { overflow: hidden; }
}

/* —— Botones —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.btn-gold {
  background: var(--color-secondary);
  color: #fff;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; min-height: 40px; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* —— Hero —— */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    color-mix(in srgb, var(--color-secondary) 85%, var(--color-primary)) 100%
  );
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 42rem;
  opacity: 0.95;
  margin-bottom: 0;
}
.hero-trust {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  max-width: 36rem;
}
.hero-trust li { margin: 0.35rem 0; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero .btn-gold {
  background: #fff;
  color: var(--color-primary);
}

/* —— Página 404 —— */
.error-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.error-page__code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  opacity: 0.25;
}
.error-page h1 {
  margin-bottom: 0.75rem;
}
.error-page .lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.75rem 0 2rem;
}
.error-page__nav {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, #e0e0e0);
}
.error-page__nav h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* —— Page header + breadcrumbs —— */
.page-header {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: var(--color-primary);
  color: #fff;
}
.page-header h1 { margin-bottom: 0.5rem; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.6;
}
.breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: underline;
}
.breadcrumbs span { opacity: 0.85; }
.hub-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: inherit;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* —— Resumen rápido —— */
.page-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-primary) 15%, #ddd);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.page-summary dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0;
}
.page-summary dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* —— Cards —— */
.services-grid,
.zones-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-card,
.zone-card {
  display: block;
  padding: 1.35rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, #e0e0e0);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.service-card:hover,
.zone-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card h3 { margin-bottom: 0.5rem; color: var(--color-primary); }
.service-card p,
.zone-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 75%, #666);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--color-text) 90%, #444);
}
.service-points {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}
.service-points li { margin: 0.35rem 0; }

/* —— FAQ —— */
details {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
  background: #fff;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}
details[open] summary { margin-bottom: 0.5rem; }
details p { margin: 0; font-size: 0.95rem; }

/* —— Interlinking —— */
.related-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.related-block h2 { font-size: 1.15rem; }
.related-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.related-block a { font-weight: 500; }

/* —— Footer —— */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0 1.25rem;
  margin-top: 2rem;
}
.footer a { color: inherit; }
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer__col-title {
  font-weight: 700;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li { margin: 0.35rem 0; }
.footer__contact-item { margin: 0.35rem 0; }
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  opacity: 0.9;
}
.text-sm { font-size: 0.875rem; opacity: 0.9; }
.cookie-footer-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* —— Sticky CTA móvil —— */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 0.75rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.sticky-cta .container {
  display: flex;
  gap: 0.5rem;
}
.sticky-cta .btn { flex: 1; }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 4.5rem; }
  .header__cta .btn-sm { display: none; }
}

/* —— Formularios —— */
form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}
form input,
form textarea {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: cookieSlideUp 0.35s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
.cookie-banner__title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cookie-banner__text { margin: 0 0 1rem; font-size: 0.9rem; opacity: 0.95; }
.cookie-banner__text a { color: var(--color-accent); }
.cookie-banner__settings {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.cookie-banner__settings[hidden] { display: none; }
.cookie-banner__fieldset { border: none; padding: 0; margin: 0; }
.cookie-banner__option {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-banner__option--disabled { opacity: 0.7; cursor: default; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.cookie-banner__btn {
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  font-size: 0.9rem;
}
.cookie-banner__btn--accept,
.cookie-banner__btn--save {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner__btn--reject {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cookie-banner__btn--config {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}
.cookie-banner__btn--save[hidden] { display: none; }

/* —— Hero split + badge —— */
.hero--split { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero__intro { opacity: 0.92; max-width: 40rem; }
.hero__img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.trust-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}
.trust-stat strong { display: block; font-size: 1.1rem; }
.trust-stat span { font-size: 0.75rem; opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.hero .btn-outline { color: #fff; }

.header__logo-img { max-height: 44px; width: auto; }
.header__brand { font-weight: 800; }
@media (min-width: 901px) {
  .header__logo-img + .header__brand { display: none; }
}
@media (max-width: 900px) {
  .header__logo-img { display: none; }
}

.entity-summary {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--color-accent) 8%, #fff);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.98rem;
}
.entity-summary p { margin: 0; }

.content-narrow { max-width: 800px; margin-inline: auto; }
.section-intro { max-width: 42rem; color: color-mix(in srgb, var(--color-text) 75%, #666); }
.section-cta { margin-top: 1.25rem; }
.link-arrow { font-weight: 700; color: var(--color-primary); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.text-accent { color: var(--color-accent); }
.page-header__lead { opacity: 0.9; margin: 0; }
.page-header__icon { margin-right: 0.35rem; }

.service-card--rich {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.service-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: -1.35rem -1.35rem 0.75rem;
  width: calc(100% + 2.7rem);
}
.service-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.9rem;
}
.service-card--static {
  display: block;
  text-decoration: none;
  color: inherit;
}
.services-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.benefits-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.benefit-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 10%, #e8e8e8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.benefit-card__icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.benefit-card h3 { margin-bottom: 0.35rem; font-size: 1.05rem; color: var(--color-primary); }
.benefit-card p { margin: 0; font-size: 0.92rem; color: color-mix(in srgb, var(--color-text) 80%, #555); }

.process-steps,
ol.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.25rem;
}
.process-step {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #e8e8e8;
  position: relative;
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.process-step p { margin: 0; font-size: 0.9rem; }

.zone-card__pin { font-size: 1.1rem; }
.zone-card__name { display: block; font-weight: 700; color: var(--color-primary); }
.zone-card__tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.75;
}
.zones-grid--chips .zone-card { text-align: center; }

.check-list {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}
.check-list li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 1rem;
}
.related-links a {
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 15%, #ddd);
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: 0.5rem; }
.cta-section p { opacity: 0.95; max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-section .cta-buttons { justify-content: center; }

.inline-cta { margin-top: 2rem; text-align: center; }

.faq-list details { margin-bottom: 0.65rem; }

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
}
.contact-line { margin: 0.5rem 0; }
.contact-form label { display: block; margin-bottom: 1rem; }
