/* =====================================================
   Tema Lucía Fernández — CSS principal
   Réplica del diseño original (Lovable / Tailwind v4)
   Tokens y utilidades portados de src/styles.css
   Breakpoints: md = 768px · lg = 1024px
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0C0C08;
  --ink-2: #141410;
  --mute: #666662;
  --line: #D8D8D2;
  --surface: #F7F6F4;
  --paper: #FFFFFF;
  --font-display: "Raleway", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; border-color: var(--line); }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; transition: opacity 240ms ease; }
a:hover { opacity: 0.6; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.nav-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.hairline { border-top: 1px solid var(--line); }
.text-mute { color: var(--mute); }
.text-ink2 { color: var(--ink-2); }

/* Enlaces subrayados finos (CTA) */
.link-ink { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-line { border-bottom: 1px solid var(--line); padding-bottom: 4px; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(12px); animation: reveal-in 700ms ease forwards; }
.float { animation: float-y 6s ease-in-out infinite; will-change: transform; }
.float-slow { animation: float-y 8s ease-in-out infinite; will-change: transform; }
.float-delayed { animation: float-y 6s ease-in-out infinite; animation-delay: 1.5s; will-change: transform; }
.float-gentle { animation: float-gentle 10s ease-in-out infinite; will-change: transform; }
.float-pronounced { animation: float-pronounced 7s ease-in-out infinite; will-change: transform; }
.float-shadow { box-shadow: 0 24px 60px rgba(12, 12, 8, 0.08); }
.float-shadow-gentle { box-shadow: 0 20px 50px rgba(12, 12, 8, 0.06); }
.hover-lift { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.hover-lift:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 28px 60px rgba(12, 12, 8, 0.10); }

@keyframes reveal-in { to { opacity: 1; transform: none; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-gentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-pronounced { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .float, .float-slow, .float-delayed, .float-gentle, .float-pronounced { animation: none !important; }
}

/* ---------- Contenedor ---------- */
.wrap { max-width: 1600px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 1000px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) {
  .wrap, .wrap--narrow { padding-inline: 40px; }
}

/* Accesibilidad: saltar al contenido */
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
}

/* =====================================================
   CABECERA
   ===================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-header__brand { font-size: 13px; }
.site-header__nav { display: none; }
.site-header__toggle { display: inline-block; }
@media (min-width: 768px) {
  .site-header__inner { height: 80px; }
  .site-header__brand { font-size: 15px; }
  .site-header__nav { display: flex; align-items: center; gap: 40px; }
  .site-header__toggle { display: none; }
}
.site-header__nav a.is-active { opacity: 0.55; }

/* Menú móvil */
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { display: flex; flex-direction: column; padding: 24px; }
.mobile-nav__inner a { border-bottom: 1px solid var(--line); padding-block: 16px; }
.mobile-nav__lang { padding-top: 24px; }
@media (min-width: 768px) { .mobile-nav { display: none; } }

/* Selector de idioma */
.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-switcher .is-current { color: var(--ink); }
.lang-switcher a:not(.is-current) { color: var(--mute); }
.lang-switcher .sep { color: var(--mute); }

/* Contenido principal bajo cabecera fija */
.site-main { padding-top: 64px; }
@media (min-width: 768px) { .site-main { padding-top: 80px; } }

/* =====================================================
   PIE
   ===================================================== */
.site-footer { border-top: 1px solid var(--line); margin-top: 128px; }
.site-footer__inner { padding-block: 56px; display: grid; gap: 40px; }
.site-footer__brand { font-size: 13px; margin-bottom: 24px; }
.site-footer__copy { font-size: 14px; line-height: 20px; color: var(--mute); max-width: 448px; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__links { display: flex; align-items: center; gap: 24px; }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .site-footer__right { align-items: flex-end; }
}

/* =====================================================
   NÚMERO DE SECCIÓN (01 · ÍNDICE / HOME)
   ===================================================== */
.section-number { display: flex; align-items: baseline; gap: 16px; }
.section-number__n {
  font-family: var(--font-display); font-weight: 200;
  color: var(--mute); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums;
}

/* =====================================================
   HOME
   ===================================================== */
.hero { padding-top: 40px; }
.hero__grid { display: grid; gap: 40px; }
.hero__left { display: flex; flex-direction: column; justify-content: space-between; }
.hero__eyebrow { margin-bottom: 32px; }
.hero__title { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }
.hero__p { margin-top: 32px; max-width: 448px; color: var(--mute); }
.hero__links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px; }
.hero__index { display: none; }
.hero__figure img { width: 100%; height: auto; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .hero__left { grid-column: span 5; }
  .hero__figure { grid-column: span 7; }
  .hero__title { font-size: 44px; }
  .hero__index { display: block; padding-top: 64px; }
}
@media (min-width: 1024px) {
  .hero__left { grid-column: span 4; }
  .hero__figure { grid-column: span 8; }
  .hero__title { font-size: 52px; }
}

/* Banda parallax */
.parallax-band { margin-top: 96px; }
.parallax { overflow: hidden; aspect-ratio: 4 / 3; }
.parallax img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
@media (min-width: 768px) {
  .parallax-band { margin-top: 128px; }
  .parallax { aspect-ratio: 16 / 9; }
}

/* Sección Enfoque */
.approach { padding-top: 128px; }
.approach__grid { display: grid; gap: 48px; }
.approach__title { margin-top: 24px; font-size: 30px; line-height: 1.25; }
.approach__text { font-size: 18px; color: var(--ink-2); line-height: 1.625; }
.approach__figures { margin-top: 64px; display: grid; gap: 24px; }
.approach__fig-small { display: flex; align-items: flex-end; }
.approach__fig-small img { width: 100%; height: auto; object-fit: contain; }
.approach__figures img { width: 100%; height: auto; }
.approach__fig-big img { object-fit: cover; }
@media (min-width: 768px) {
  .approach { padding-top: 160px; }
  .approach__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .approach__head { grid-column: span 4; }
  .approach__body { grid-column: 6 / span 6; }
  .approach__title { font-size: 36px; }
  .approach__figures { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .approach__fig-big { grid-column: span 8; }
  .approach__fig-small { grid-column: span 4; }
}

/* CTA final Home */
.home-cta { padding-top: 128px; }
.home-cta__grid { padding-top: 40px; display: grid; gap: 40px; }
.home-cta__phrase { font-family: var(--font-display); font-weight: 300; font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.home-cta__link { margin-top: 40px; }
.home-cta__figure img { width: 100%; height: auto; object-fit: contain; }
@media (min-width: 768px) {
  .home-cta { padding-top: 160px; }
  .home-cta__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .home-cta__left { grid-column: span 5; }
  .home-cta__figure { grid-column: span 7; }
  .home-cta__phrase { font-size: 48px; }
}

/* Espaciadores finales */
.spacer-40 { height: 160px; }
.spacer-32 { height: 128px; }

/* =====================================================
   CABECERA DE PÁGINA INTERIOR (Servicios, Sobre mí, Contacto)
   ===================================================== */
.page-head { display: grid; gap: 32px; }
.page-head__title { font-size: 36px; line-height: 1.05; }
.page-head__sub { margin-top: 32px; max-width: 672px; color: var(--mute); }
@media (min-width: 768px) {
  .page-head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page-head__label { grid-column: span 4; }
  .page-head__main { grid-column: span 8; }
  .page-head__title { font-size: 60px; }
}
.page-top { padding-top: 64px; }
@media (min-width: 768px) { .page-top { padding-top: 96px; } }

/* =====================================================
   SERVICIOS
   ===================================================== */
.services-blocks { margin-top: 96px; display: flex; flex-direction: column; gap: 112px; }
@media (min-width: 768px) { .services-blocks { margin-top: 128px; } }
.service-block__grid { padding-top: 32px; display: grid; gap: 32px; }
.service-block__eyebrow { margin-bottom: 12px; }
.service-block__title { font-size: 30px; line-height: 36px; }
.service-block__items { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .service-block__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .service-block__head { grid-column: span 4; }
  .service-block__items { grid-column: span 8; }
  .service-block__title { font-size: 36px; line-height: 40px; }
}
.service-item { border-top: 1px solid var(--line); padding-block: 40px; display: grid; gap: 24px; }
.service-item__n {
  font-family: var(--font-display); font-weight: 200;
  font-size: 36px; line-height: 40px; font-variant-numeric: tabular-nums; color: var(--ink);
}
.service-item__title { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.service-item__body { color: var(--mute); max-width: 672px; }
@media (min-width: 768px) {
  .service-item { grid-template-columns: 80px minmax(0, 1fr); }
  .service-item__n { font-size: 48px; line-height: 48px; }
  .service-item__title { font-size: 24px; line-height: 32px; }
}
.service-block__figure { margin-top: 64px; }
.service-block__figure img { width: 100%; height: auto; object-fit: cover; }
.service-block__figure--contain img { object-fit: contain; background: var(--surface); }

/* =====================================================
   SOBRE MÍ
   ===================================================== */
.about { margin-top: 96px; display: grid; gap: 64px; }
.about__portrait img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; filter: grayscale(1); }
.about__text { display: flex; flex-direction: column; gap: 24px; font-size: 18px; color: var(--ink-2); line-height: 1.625; }
.about__detail { margin-top: 48px; padding-top: 32px; }
.about__detail-label { margin-bottom: 8px; }
.about__detail-value { font-family: var(--font-display); font-weight: 300; font-size: 20px; line-height: 28px; color: var(--ink); }
.about__cta { margin-top: 48px; }
@media (min-width: 768px) {
  .about { margin-top: 128px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about__portrait { grid-column: span 4; }
  .about__content { grid-column: 6 / span 7; }
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact-head__title { font-size: 30px; line-height: 1.1; max-width: 896px; }
@media (min-width: 768px) { .contact-head__title { font-size: 48px; } }
@media (min-width: 1024px) { .contact-head__title { font-size: 60px; } }
.contact { margin-top: 64px; display: grid; gap: 48px; align-items: start; }
.contact__figure { overflow: hidden; position: relative; }
.contact__figure img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.contact__body { display: flex; flex-direction: column; gap: 48px; }
.contact__p { font-size: 18px; color: var(--ink-2); line-height: 1.625; max-width: 576px; }
.contact__email-block { padding-top: 40px; }
.contact__email-label { margin-bottom: 16px; }
.contact__email {
  font-family: var(--font-display); font-weight: 300;
  display: block; font-size: 24px; line-height: 1.2; color: var(--ink);
}
@media (min-width: 768px) {
  .contact { margin-top: 96px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__figure { grid-column: span 4; }
  .contact__body { grid-column: 6 / span 8; }
  .contact__email { font-size: 30px; }
}
@media (min-width: 1024px) {
  .contact__body { grid-column: 6 / span 7; }
  .contact__email { font-size: 36px; }
}

/* =====================================================
   AVISO LEGAL
   ===================================================== */
.legal-head { margin-bottom: 64px; }
.legal-head__title { margin-top: 24px; font-size: 36px; line-height: 40px; }
@media (min-width: 768px) { .legal-head__title { font-size: 48px; line-height: 48px; } }
.legal-sections { display: flex; flex-direction: column; gap: 40px; color: var(--ink-2); line-height: 1.625; }
.legal-section__title { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.legal-section { padding-top: 32px; }
.legal-section--first { padding-top: 0; border-top: none; }
.legal-dl { display: grid; grid-template-columns: 1fr; row-gap: 8px; column-gap: 24px; }
.legal-dl dt { color: var(--mute); }
.legal-dl dd { margin: 0; }
@media (min-width: 768px) {
  .legal-dl { grid-template-columns: 220px 1fr; }
}

/* =====================================================
   404
   ===================================================== */
.error-404 { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-inline: 24px; }
.error-404__box { max-width: 448px; text-align: center; }
.error-404__eyebrow { margin-bottom: 24px; }
.error-404__title { font-size: 30px; line-height: 36px; margin-bottom: 16px; }
.error-404__p { color: var(--mute); margin-bottom: 32px; }
