/* ==========================================================================
   Maccio Atelier — web pública
   CSS plano. Sin preprocesadores, sin frameworks, sin dependencias externas.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Tipografías locales (.woff2)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/CormorantGaramond-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/CormorantGaramond-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-Italic.woff2") format("woff2");
}


/* --------------------------------------------------------------------------
   Variables de marca
   -------------------------------------------------------------------------- */

:root {
  --azul-noche: #1C3149;
  --azul-marino: #0E1E2E;
  --champan: #C8A96E;
  --fondo-calido: #F7F4EF;
  --fondo-claro: #FDFCF9;

  --azul-noche-soft: rgba(28, 49, 73, 0.78);
  --azul-noche-mute: rgba(28, 49, 73, 0.70);
  --champan-soft: rgba(200, 169, 110, 0.30);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 880px;
  --container-narrow: 640px;
  --container-pad: 32px;
  --header-height: 84px;
}


/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--fondo-calido);
  color: var(--azul-noche);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

p {
  margin: 0 0 1.2em 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--champan);
  outline-offset: 4px;
  border-radius: 2px;
}

em,
i {
  font-style: italic;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}


/* --------------------------------------------------------------------------
   Header sticky (CSS puro, sin JavaScript)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--fondo-calido);
  padding: 28px 0;
  border-bottom: 1px solid transparent;
}

/* El header rompe el max-width de .container y ocupa el ancho completo
   con margen lateral cómodo. El resto de secciones mantiene 880 px. */
.site-header .container {
  max-width: none;
  padding: 0 50px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--azul-noche);
  line-height: 1;
  letter-spacing: 0.01em;
}

.wordmark:hover,
.wordmark:focus-visible {
  text-decoration: none;
}

.primary-nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--azul-noche);
  letter-spacing: 0.02em;
}

.primary-nav a:hover {
  color: var(--azul-noche);
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
}

.hero-inner {
  text-align: center;
}

.hero-territory {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.32;
  color: var(--azul-noche);
  margin: 0 0 40px 0;
  letter-spacing: 0.005em;
}

.hero-territory span {
  display: block;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--champan);
  margin: 0;
  letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   Secciones genéricas
   -------------------------------------------------------------------------- */

.section {
  padding: 100px 0;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champan);
  margin: 0 0 28px 0;
}

.section-eyebrow--small {
  font-size: 11px;
  margin-bottom: 20px;
  color: var(--azul-noche-soft);
}

.section-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: var(--azul-noche);
  margin: 0 0 48px 0;
}

.section-lead--centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead--left {
  text-align: left;
  margin-bottom: 60px;
}

.prose {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--azul-noche);
}

.prose p {
  margin: 0 0 1.4em 0;
}

.prose p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   Sobre — declaración legal final
   -------------------------------------------------------------------------- */

.legal-note {
  margin-top: 1.8em;
  color: var(--azul-noche-soft);
}


/* --------------------------------------------------------------------------
   Método FTM
   -------------------------------------------------------------------------- */

.section--metodo {
  padding-top: 110px;
  padding-bottom: 130px;
}

.ftm-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  text-align: center;
  color: var(--azul-noche);
  margin: 0 0 14px 0;
  letter-spacing: 0.005em;
}

.ftm-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: var(--azul-noche-soft);
  margin: 0 0 50px 0;
}

.ftm-pull {
  margin: 80px auto 0;
  padding: 0;
  max-width: var(--container-narrow);
  text-align: center;
  border: 0;
}

.ftm-pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.45;
  color: var(--azul-noche);
  margin: 0;
}


/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.service-block {
  margin: 0 0 64px 0;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--azul-noche);
  margin: 0 0 20px 0;
}

.service-price {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  color: var(--azul-noche);
  margin: 22px 0 0 0;
}

.plan-list {
  margin: 8px 0 0 0;
}

.plan-list li {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--azul-noche);
}

.plan-list li em {
  font-style: italic;
}

.service-footnote {
  margin: 22px 0 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--azul-noche-soft);
}


/* --------------------------------------------------------------------------
   Contacto + Aviso legal
   -------------------------------------------------------------------------- */

.section--contacto {
  padding-bottom: 120px;
}

.contact-block {
  text-align: center;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--azul-noche);
  max-width: 720px;
  margin: 0 auto;
}

.contact-block p {
  margin: 0 0 1.4em 0;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block a {
  color: var(--azul-noche);
  text-decoration: none;
}

.contact-block a:hover,
.contact-block a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.legal-divider {
  border: 0;
  height: 1px;
  width: 50%;
  background-color: var(--champan-soft);
  margin: 90px auto;
}

.legal-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--azul-noche-soft);
}

.legal-block p {
  margin: 0 0 1.3em 0;
}

.legal-block a {
  color: var(--azul-noche-soft);
}

.legal-block .section-eyebrow,
.legal-block .section-eyebrow--small {
  text-align: center;
  margin-bottom: 22px;
}

.copyright {
  margin-top: 2.4em;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--azul-noche-mute);
}


/* --------------------------------------------------------------------------
   Tablet (769–1024 px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .hero-territory {
    font-size: 44px;
  }

  .ftm-title {
    font-size: 36px;
  }

  .ftm-pull p {
    font-size: 26px;
  }

  .section-lead {
    font-size: 28px;
  }

  .section {
    padding: 88px 0;
  }
}


/* --------------------------------------------------------------------------
   Móvil (≤ 768 px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --container-pad: 24px;
    --header-height: 70px;
  }

  body {
    font-size: 17px;
    line-height: 1.7;
  }

  .site-header {
    padding: 20px 0;
  }

  .site-header .container {
    padding: 0 var(--container-pad);
  }

  .header-inner {
    gap: 12px;
  }

  .wordmark {
    font-size: 23px;
  }

  .primary-nav ul {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 13px;
  }

  .hero {
    padding: 60px 0 90px;
    min-height: calc(100vh - var(--header-height));
  }

  .hero-territory {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 32px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 22px;
  }

  .section-lead {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 36px;
  }

  .section-lead--centered {
    max-width: 100%;
  }

  .prose {
    font-size: 17px;
    line-height: 1.7;
  }

  .ftm-title {
    font-size: 32px;
  }

  .ftm-subtitle {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .ftm-pull {
    margin-top: 56px;
  }

  .ftm-pull p {
    font-size: 23px;
    line-height: 1.45;
  }

  .service-title {
    font-size: 22px;
  }

  .service-block {
    margin-bottom: 52px;
  }

  .service-price,
  .plan-list li {
    font-size: 17px;
  }

  .service-footnote {
    font-size: 15px;
  }

  .contact-block {
    font-size: 17px;
  }

  .legal-divider {
    margin: 70px auto;
    width: 60%;
  }

  .legal-block {
    font-size: 14px;
  }
}


/* --------------------------------------------------------------------------
   Móvil estrecho (≤ 380 px) — ajustes finales
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .primary-nav ul {
    gap: 10px;
  }

  .primary-nav a {
    font-size: 12px;
  }

  .wordmark {
    font-size: 20px;
  }

  .hero-territory {
    font-size: 30px;
  }
}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
