/* =============================================================
   MadridWS · estilos propios del sitio
   (base, cabecera, pie, formulario y ajustes de la landing)
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #fafaf9;
  color: #0a0a0a;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 2px solid #C9A961; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: #0a0a0a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e7e5e4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0a0a0a;
}
.brand img { width: 42px; height: auto; border-radius: 6px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; }
.brand-name b { color: #C9A961; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  text-decoration: none;
  color: #404040;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.25s;
}
.site-nav ul a:hover { color: #0a0a0a; }

.nav-cta {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: #C9A961; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0a0a0a;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
    box-shadow: 0 18px 40px rgba(10, 10, 10, 0.08);
    padding: 8px 20px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid #f0efee; font-size: 16px; }
  .nav-cta { margin-top: 16px; text-align: center; }
}

/* ---------- Pie ---------- */
.site-footer { background: #0a0a0a; color: #a3a3a3; padding: 56px 0 28px; font-size: 14.5px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { margin: 16px 0 0; max-width: 380px; line-height: 1.7; }

.brand-dark { color: #fff; }
.brand-dark .brand-name { color: #fff; }
.brand-dark .brand-name b { color: #C9A961; }

.footer-h {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #C9A961;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a3a3a3; text-decoration: none; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }

.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #262626; }
.footer-bottom p { margin: 0; font-size: 13px; color: #737373; }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Ajustes de la landing ---------- */
/* Las dos tarjetas de contacto (canales + formulario) en columna, con aire */
.mws-contact-grid { display: grid; gap: 24px; }

/* Titulares de sección en pantallas estrechas.
   Con el tamaño original, la primera línea de cada titular
   (p. ej. "Precios transparentes") no cabe y se parte en tres líneas.
   Se escala de forma continua para que cada línea quepa entera. */
@media (max-width: 560px) {
  .mws-sec-h2 {
    font-size: clamp(24px, 7.8vw, 34px) !important;
    letter-spacing: -1px !important;
  }
}

/* Palabras en cursiva de los titulares. Llevan el degradado dorado
   recortado al texto (background-clip:text), así que solo se ve lo que
   cae dentro de la caja del elemento. La cursiva se inclina a la derecha
   y la última letra sobresale de esa caja: esa parte se queda sin pintar
   y parece cortada (p. ej. la "s" de "transparentes").
   Se ensancha la caja por la derecha y se compensa para que el texto
   no se desplace. */
.mws-sec-h2 .mws-italic,
.mws-cambio-h .mws-italic,
.mws-cob-h .mws-italic,
.mws-cta-h .mws-italic,
.mws-contact-h .mws-italic {
  padding-right: 0.14em !important;
  margin-right: -0.14em !important;
}
/* En el titular del hero la cursiva es un bloque en línea con una línea
   decorativa debajo (::after), así que hay que acortar esa línea lo mismo
   que se ensancha la caja, para que siga cuadrando con el texto. */
.mws-h1 .mws-italic {
  padding-right: 0.16em !important;
  margin-right: -0.16em !important;
}
.mws-h1 .mws-italic::after {
  right: 0.16em !important;
}

/* ---------- Formulario de contacto ---------- */
.mws-form { display: block !important; }
.mws-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .mws-form-row { grid-template-columns: 1fr; } }

.mws-field { margin-bottom: 18px !important; }

.mws-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #404040 !important;
  letter-spacing: 0.2px !important;
}

.mws-input {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #e7e5e4 !important;
  border-radius: 12px !important;
  background: #fafaf9 !important;
  color: #0a0a0a !important;
  font-size: 15px !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
  -webkit-appearance: none;
  appearance: none;
}
.mws-input::placeholder { color: #a3a3a3 !important; }
.mws-input:focus {
  outline: none !important;
  border-color: #C9A961 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15) !important;
}
.mws-textarea { resize: vertical !important; min-height: 110px !important; }

.mws-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 22px !important;
  font-size: 13px !important;
  color: #525252 !important;
  line-height: 1.55 !important;
  cursor: pointer;
}
.mws-check input { margin-top: 3px !important; width: 18px !important; height: 18px !important; accent-color: #C9A961; flex: 0 0 auto; }

.mws-form-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 17px 26px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #0a0a0a !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background 0.25s, transform 0.25s !important;
}
.mws-form-btn:hover { background: #C9A961 !important; transform: translateY(-2px) !important; }

.mws-form-note {
  margin: 14px 0 0 !important;
  font-size: 12.5px !important;
  color: #a3a3a3 !important;
  text-align: center !important;
}

/* Trampa anti-spam: invisible para personas, visible para bots */
.mws-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

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

/* Estilos de impresión básicos */
@media print {
  .site-header, .nav-toggle, .mws-particles, .mws-cta-final-wrap, .mws-form-btn { display: none !important; }
  .mws-reveal { opacity: 1 !important; transform: none !important; }
}
