/* ============================================================
   GLOBAL — el sistema compartido por todo el sitio

   Variables, reset, base tipográfica, cabecera, pie y los
   componentes que se repiten en más de una página. Cada HTML
   carga esta hoja y la suya propia, y ninguna otra.
   ============================================================ */


/* ===== TIPOGRAFÍAS ===== */

/* Locales y autocontenidas, como exige el contrato: sin llamadas a
   Google Fonts ni a ningún CDN. Los seis .woff2 son fuentes variables,
   así que un mismo fichero sirve todos los pesos de su familia y es el
   `font-weight` de cada bloque el que elige la instancia. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin-ext.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== VARIABLES ===== */

/* ============================================================
   VARIABLES CSS — El Secreto del Mar
   Sistema de design tokens. Toda la web referencia aquí.
   ============================================================ */

:root {
  /* --- Paleta de azules (mar) --- */
  --primary-color: #0B3A5B;
  --primary-dark: #072A44;
  --secondary-color: #1E5A8E;
  --accent-color: #5BA8C7;
  --accent-light: #8FC4D9;

  /* --- Texto --- */
  --text-color: #1A2733;
  --title-color: #0B3A5B;
  --body-color: #3D4A5C;
  --muted-color: #6B7A8F;
  --inverse-color: #FFFFFF;

  /* --- Fondos --- */
  --background-color: #FAFBFC;
  --surface-color: #FFFFFF;
  --surface-alt-color: #EEF4F8;
  --overlay-color: rgba(11, 58, 91, 0.55);

  /* --- Bordes --- */
  --border-color: #D9E2EB;
  --divider-color: #E5ECF2;

  /* --- Tipografía --- */
  --primary-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --secondary-font: 'Playfair Display', Georgia, serif;

  --base-font-size: 16px;
  --small-font-size: 14px;
  --large-font-size: 18px;

  /* Escala de títulos con clamp para responsive */
  --h1-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  --h2-size: clamp(2rem, 3vw + 1rem, 3rem);
  --h3-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  --h4-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
  --h5-size: 1.25rem;
  --h6-size: 1rem;

  /* Pesos */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line heights */
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.15em;

  /* --- Espaciado --- */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;
  --spacing-3xl: 7rem;

  /* --- Sección --- */
  --section-padding-y: 80px;   /* En px por contrato: la gobierna el panel */
  --section-padding-x: 24px;   /* En px por contrato: la gobierna el panel */

  /* Alto de la cabecera fija. La usan las primeras secciones de cada
     página para reservar su hueco. */
  --header-height: 80px;

  /* --- Container --- */
  --container-width: 1200px;   /* En px por contrato: la gobierna el panel */
  --container-narrow: 800px;

  /* --- Border radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Sombras --- */
  --shadow-sm: 0 1px 2px rgba(11, 58, 91, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 58, 91, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 58, 91, 0.12);
  --shadow-xl: 0 20px 50px rgba(11, 58, 91, 0.15);

  /* --- Transiciones --- */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* --- Breakpoints (referencia, no se usan en CSS) --- */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1280px;

  /* --- Z-index --- */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-header: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* ===== RESET ===== */

/* ============================================================
   RESET CSS — Normalización de estilos base
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Imágenes con dimensiones explícitas para evitar layout shift */
img[width],
img[height] {
  height: auto;
}

/* ===== BASE ===== */

/* ============================================================
   BASE CSS — Tipografía, fondo y elementos raíz
   ============================================================ */

body {
  font-family: var(--primary-font);
  font-size: var(--base-font-size);
  line-height: var(--line-height-base);
  color: var(--body-color);
  background-color: var(--background-color);
  font-weight: var(--font-regular);
}

/* --- Tipografía jerárquica --- */
h1, h2, h3, h4 {
  font-family: var(--secondary-font);
  color: var(--title-color);
  font-weight: var(--font-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
  font-family: var(--primary-font);
  font-weight: var(--font-semibold);
  color: var(--title-color);
}

h6 {
  font-size: var(--h6-size);
  font-family: var(--primary-font);
  font-weight: var(--font-medium);
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

p {
  color: var(--body-color);
  line-height: var(--line-height-base);
}

p + p {
  margin-top: var(--spacing-sm);
}

a {
  color: var(--secondary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

strong {
  font-weight: var(--font-semibold);
  color: var(--text-color);
}

em {
  font-style: italic;
}

small {
  font-size: var(--small-font-size);
  color: var(--muted-color);
}

::selection {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

/* Etiqueta superior pequeña (eyebrow) */
.eyebrow {
  display: inline-block;
  font-family: var(--primary-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--spacing-sm);
}

/* Skip link para accesibilidad */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: var(--inverse-color);
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: var(--z-tooltip);
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
  font-weight: var(--font-medium);
}

.skip-link:focus {
  top: 0;
  color: var(--inverse-color);
}

/* ===== LAYOUT ===== */

/* ============================================================
   LAYOUT CSS — Container, header, footer
   ============================================================ */

/* --- Container general --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Site Header --- */
#site_header {
  /* Fija arriba. Va anclada al `#id` y no a la clase porque el plugin emite
     su propia regla para la cabecera con especificidad (0,3,0) —elegida para
     perder justo contra este ancla—, y con `.site-header` el diseño perdía.
     El hueco que deja al salir del flujo lo compensa la primera sección de
     cada página, no el <main> que imprime el plugin. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-header);
  transition: box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

#site_header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding-block: var(--spacing-sm);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--secondary-font);
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

.site-header__logo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: var(--radius-full);
  color: var(--inverse-color);
  flex-shrink: 0;
}

.site-header__logo-icon svg {
  width: 20px;
  height: 20px;
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-header__logo-text small {
  font-family: var(--primary-font);
  font-size: 0.65rem;
  font-weight: var(--font-medium);
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-top: 2px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.site-header__nav-list {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.site-header__nav-link {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.site-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-base);
}

.site-header__nav-link:hover,
.site-header__nav-link.is-active {
  color: var(--secondary-color);
}

.site-header__nav-link:hover::after,
.site-header__nav-link.is-active::after {
  width: 100%;
}

.site-header__contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--small-font-size);
  color: var(--muted-color);
}

.site-header__contact-icon {
  width: 16px;
  height: 16px;
  color: var(--secondary-color);
}

/* Menú móvil */
.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.site-header__toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 360px;
    background-color: var(--surface-color);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-2xl) var(--spacing-lg);
    gap: var(--spacing-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .site-header__nav.is-open {
    transform: translateX(0);
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
  }

  .site-header__nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding-block: var(--spacing-sm);
    border-bottom: 1px solid var(--divider-color);
  }

  .site-header__contact {
    display: none;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-header__logo-text small {
    display: none;
  }
}

/* --- Site Footer --- */
/* Anclado al `#id` por lo mismo que la cabecera: la regla del plugin pone
   `padding-block: 0` con (0,3,0) y se llevaba por delante este respiro. */

#site_footer {
  background-color: var(--primary-color);
  color: var(--inverse-color);
  padding-block: var(--spacing-2xl);
}

.site-footer p {
  color: inherit;
}

.site-footer .container {
  display: grid;
  gap: var(--spacing-2xl);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--secondary-font);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--inverse-color);
}

.site-footer__logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border-radius: var(--radius-full);
}

.site-footer__logo-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

.site-footer__description {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--small-font-size);
  line-height: var(--line-height-relaxed);
  max-width: 360px;
}

.site-footer__social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.site-footer__social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--inverse-color);
  transition: background-color var(--transition-fast);
}

.site-footer__social-link:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

.site-footer__social-link svg {
  width: 18px;
  height: 18px;
}

.site-footer__nav h4 {
  font-family: var(--primary-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  color: var(--inverse-color);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.site-footer__nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--small-font-size);
  transition: color var(--transition-fast);
}

.site-footer__nav-link:hover {
  color: var(--accent-color);
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--spacing-sm);
}

.site-footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__contact-item a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.site-footer__contact-item a:hover {
  color: var(--accent-color);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal {
  display: flex;
  gap: var(--spacing-md);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 600px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== COMPONENTS ===== */

/* ============================================================
   COMPONENTS CSS — Botones, cards, inputs, badges
   ============================================================ */

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--primary-font);
  font-size: 0.95rem;
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--inverse-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--inverse-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--primary-color);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--inverse-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-ghost:hover {
  background-color: var(--secondary-color);
  color: var(--inverse-color);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--inverse-color);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: var(--inverse-color);
  color: var(--primary-color);
  border-color: var(--inverse-color);
}

/* Botón para usar sobre fondos oscuros (CTAs, hero, secciones con gradiente).
   Inversión: fondo claro, texto azul. Asegura contraste suficiente. */
.btn-inverted {
  background-color: var(--inverse-color);
  color: var(--primary-color);
  border-color: var(--inverse-color);
}

.btn-inverted:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

/* --- Service Card --- */
.service-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.service-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--inverse-color);
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.service-card__content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.service-card__title {
  font-family: var(--secondary-font);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--title-color);
  line-height: var(--line-height-tight);
}

.service-card__location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--small-font-size);
  color: var(--muted-color);
  font-weight: var(--font-medium);
}

.service-card__location svg {
  width: 14px;
  height: 14px;
  color: var(--secondary-color);
}

.service-card__description {
  color: var(--body-color);
  font-size: var(--small-font-size);
  line-height: var(--line-height-relaxed);
  flex: 1;
}

.service-card__meta {
  display: flex;
  gap: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--divider-color);
  flex-wrap: wrap;
}

.service-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.8rem;
  color: var(--muted-color);
}

.service-card__meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--secondary-color);
  font-weight: var(--font-semibold);
  font-size: var(--small-font-size);
  margin-top: var(--spacing-sm);
  transition: gap var(--transition-fast);
}

.service-card__cta:hover {
  gap: var(--spacing-sm);
  color: var(--primary-color);
}

.service-card__cta svg {
  width: 16px;
  height: 16px;
}

/* --- Gallery Item --- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background-color: var(--surface-alt-color);
}

.gallery-item--tall {
  aspect-ratio: 1 / 1.4;
}

.gallery-item--wide {
  aspect-ratio: 1.6 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 58, 91, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--inverse-color);
  font-family: var(--secondary-font);
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
}

.testimonial-card__quote {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  color: var(--accent-light);
  font-family: var(--secondary-font);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.4;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--accent-color);
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--body-color);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border-top: 1px solid var(--divider-color);
  padding-top: var(--spacing-md);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: var(--font-semibold);
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: var(--font-semibold);
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--muted-color);
}

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-label {
  font-size: var(--small-font-size);
  font-weight: var(--font-semibold);
  color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--primary-font);
  font-size: var(--base-font-size);
  color: var(--text-color);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Info Card --- */
.info-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  transition: all var(--transition-base);
}

.info-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--surface-alt-color);
  color: var(--secondary-color);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 24px;
  height: 24px;
}

.info-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.info-card__title {
  font-weight: var(--font-semibold);
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-family: var(--primary-font);
}

.info-card__value {
  color: var(--body-color);
  font-size: 0.95rem;
  line-height: var(--line-height-base);
}

.info-card__value a {
  color: var(--secondary-color);
  font-weight: var(--font-medium);
}

.info-card__value a:hover {
  color: var(--primary-color);
}

/* --- Badge / Pill --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--surface-alt-color);
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.badge--light {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--inverse-color);
  backdrop-filter: blur(10px);
}

/* --- Stat --- */
.stat {
  text-align: center;
  padding: var(--spacing-md);
}

.stat__number {
  font-family: var(--secondary-font);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-bold);
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat__label {
  font-size: var(--small-font-size);
  color: var(--muted-color);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.stat--light .stat__number {
  color: var(--inverse-color);
}

.stat--light .stat__label {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
  will-change: transform;
}

/* Solo se muestra en dispositivos con mouse (no touch) */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select,
  body.has-custom-cursor [role="button"] {
    cursor: none;
  }
}

.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--inverse-color);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(11, 58, 91, 0.3);
  transition: background-color var(--transition-fast);
}

.cursor__outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

/* Estados interactivos */
/* `scale` y no `transform`: GSAP escribe el `transform` en línea para mover
   el punto y el aro, y una regla de hoja no le puede ganar a eso. La
   propiedad `scale` es independiente y se compone con él. */

.cursor.is-hovering .cursor__dot {
  background-color: var(--accent-light);
  scale: 1.5;
}

.cursor.is-hovering .cursor__outline {
  border-color: var(--inverse-color);
  opacity: 0.9;
}

/* Estado "down" al hacer click */
.cursor.is-down .cursor__outline {
  scale: 0.7;
  opacity: 1;
}

/* Estado oculto cuando el mouse sale de la ventana */
.cursor.is-hidden {
  opacity: 0;
}

/* ===== ENCABEZADO DE PÁGINA INTERNA ===== */

/* --- PAGE HEADER (genérico para páginas internas) --- */
:is(#services_hero, #gallery_hero, #contact_hero) {
  padding-block: calc(var(--spacing-3xl) + var(--header-height)) var(--spacing-2xl);
  background-color: var(--surface-alt-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}
:is(#services_hero, #gallery_hero, #contact_hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(91, 168, 199, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
:is(#services_hero, #gallery_hero, #contact_hero) .container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}
:is(#services_hero, #gallery_hero, #contact_hero) .page-header__title {
  font-size: var(--h1-size);
}
:is(#services_hero, #gallery_hero, #contact_hero) .page-header__lead {
  font-size: 1.15rem;
  color: var(--body-color);
  line-height: var(--line-height-relaxed);
  max-width: 720px;
}

/* ===== BANDA DE LLAMADA A LA ACCIÓN ===== */

/* La usan inicio, servicios y galería. Al repetirse en más de una
   página sube aquí, que es lo que manda el contrato. */

/* --- CTA (home-cta) --- */
:is(#home_cta, #services_cta, #gallery_cta) {
  padding-block: var(--section-padding-y);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--inverse-color);
  position: relative;
  overflow: hidden;
}
:is(#home_cta, #services_cta, #gallery_cta)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(91, 168, 199, 0.3) 0%, transparent 50%),
                    radial-gradient(circle at 80% 30%, rgba(143, 196, 217, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
:is(#home_cta, #services_cta, #gallery_cta) .container {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}
:is(#home_cta, #services_cta, #gallery_cta) .home-cta__title {
  color: var(--inverse-color);
  font-size: var(--h2-size);
  max-width: 700px;
}
:is(#home_cta, #services_cta, #gallery_cta) .home-cta__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: var(--line-height-relaxed);
}
:is(#home_cta, #services_cta, #gallery_cta) .home-cta__buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--spacing-sm);
}
