/* ==========================================================================
   REFORMAS FLORIN — HOJA DE ESTILOS PRINCIPAL
   Paleta extraída directamente de /assets/logo.png y /assets/casa.png:
   - Azul corporativo: #2F9AC6 (variante accesible: #1E7AA0 / #15536E)
   - Negro tinta:      #0E0E0E
   - Blanco puro:      #FFFFFF
   ========================================================================== */

@font-face {
  font-family: "Oceanshore";
  src: url("../assets/Oceanshore.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores de marca */
  --brand: #2f9ac6;
  --brand-dark: #1e7aa0;
  --brand-deep: #15536e;
  --brand-tint: #edf6fa;

  /* Neutros arquitectónicos */
  --ink: #0e0e0e;
  --charcoal: #14181c;
  --charcoal-soft: #1e242a;
  --text: #1c2126;
  --text-muted: #4b5560;
  --text-on-dark: #e6ecf1;
  --text-on-dark-muted: #a6b2bd;

  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --surface-subtle: #eaeef2;
  --border: #d6dde4;
  --border-strong: #bac4ce;

  /* Estados */
  --success-bg: #ecf7f1;
  --success-text: #155e3b;
  --success-border: #9bd3b5;
  --warning-bg: #fff8ea;
  --warning-text: #7a4b00;
  --warning-border: #e6c687;
  --error-bg: #fdf0f0;
  --error-text: #991b1b;
  --error-border: #e5a5a5;

  /* Tipografía */
  --font-brand: "Oceanshore", "Plus Jakarta Sans", Arial, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Geometría y espaciado */
  --radius: 2px;
  --container-max: 1240px;
  --header-h: 88px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(14, 14, 14, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 14, 14, 0.1);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

/* Accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor y utilidades */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 36px);
}

.section {
  padding-block: clamp(56px, 7.5vw, 96px);
}

.section--alt {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--brand);
}

.section-kicker--light {
  color: #6bc4e8;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-transform: uppercase;
}

.section--dark .section-title {
  color: var(--surface);
}

.section-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.section--dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn--primary:hover {
  background-color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn--secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--surface);
}

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

.btn--outline-dark {
  background-color: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline-dark:hover {
  background-color: var(--ink);
  color: var(--surface);
}

.btn--whatsapp {
  background-color: #166e3b;
  border-color: #166e3b;
  color: var(--surface);
}

.btn--whatsapp:hover {
  background-color: #11572e;
  border-color: #11572e;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.btn.is-unconfigured {
  opacity: 0.85;
}

/* ==========================================================================
   A. CABECERA (HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 2px 0;
}

/* Logo original 857x479 sin recorte ni deformación */
.brand-logo {
  height: 84px;
  width: auto;
  aspect-ratio: 857 / 479;
  object-fit: contain;
  margin-block: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón menú móvil */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Menú móvil desplegable */
.mobile-drawer {
  display: none;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--brand);
  padding: 16px clamp(16px, 4vw, 36px) 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.mobile-nav-list li + li {
  border-top: 1px solid var(--border);
}

.mobile-nav-link {
  display: block;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--brand-dark);
}

/* ==========================================================================
   B. SECCIÓN HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 720px);
  display: flex;
  align-items: center;
  background-color: var(--charcoal);
  color: var(--surface);
  overflow: hidden;
  border-bottom: 4px solid var(--brand);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(14, 14, 14, 0.9) 0%,
    rgba(14, 14, 14, 0.76) 46%,
    rgba(14, 14, 14, 0.38) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 8vw, 96px);
  max-width: 720px;
}

.hero-geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 22px;
  background-color: rgba(14, 14, 14, 0.72);
  border: 1px solid rgba(47, 154, 198, 0.65);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9f6fc;
}

.hero-geo-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--surface);
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.125rem, 2vw, 1.45rem);
  font-weight: 600;
  color: #7ccce9;
  line-height: 1.35;
}

.hero-description {
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: #e4eaef;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Franja de posicionamiento geográfico bajo el Hero */
.geo-bar {
  background-color: var(--ink);
  color: var(--text-on-dark);
  border-bottom: 1px solid #262c33;
}

.geo-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
  font-size: 0.875rem;
}

.geo-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.geo-bar-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand);
  flex-shrink: 0;
}

/* ==========================================================================
   C. PROPUESTA DE VALOR Y CONFIANZA
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: border-top-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.value-card:hover {
  border-top-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.value-num {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--brand-dark);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.value-title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.value-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   D. SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--brand-tint);
  border: 1px solid #cce4ef;
  border-radius: var(--radius);
  color: var(--brand-dark);
  flex-shrink: 0;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-index {
  font-family: var(--font-brand);
  font-size: 1.125rem;
  color: var(--border-strong);
  letter-spacing: 0.08em;
}

.service-title {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.service-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.service-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-subtle);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}

.service-cta:hover {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.service-cta:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   E. GALERÍA DE TRABAJOS — REQUISITOS ESTRICTOS DE PROPORCIÓN Y ALINEACIÓN
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

/* Contenedor de imagen con proporción fija 4:3 para evitar saltos de diseño (CLS)
   y mantener idéntica altura independientemente de si la foto original es vertical u horizontal */
.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.03);
}

/* Clases auxiliares configurables para ajustar el encuadre por imagen */
.pos-center {
  --img-pos: center;
}
.pos-top {
  --img-pos: center top;
}
.pos-bottom {
  --img-pos: center bottom;
}
.pos-left {
  --img-pos: left center;
}
.pos-right {
  --img-pos: right center;
}

.gallery-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background-color: rgba(14, 14, 14, 0.82);
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.gallery-zoom-btn:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand);
}

.gallery-zoom-btn svg {
  width: 14px;
  height: 14px;
}

.gallery-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 18px 22px;
  flex-grow: 1;
}

.gallery-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.gallery-caption {
  margin: 0;
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* ==========================================================================
   F. SOBRE NOSOTROS
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.03125rem;
  line-height: 1.72;
}

.about-copy p:last-of-type {
  margin-bottom: 26px;
}

.about-panel {
  background-color: var(--charcoal);
  color: var(--surface);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}

.about-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #2b323a;
}

.about-panel-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.about-panel-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--surface);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-on-dark);
  line-height: 1.55;
}

.about-list svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   G. SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--brand-tint);
  border: 1px solid #cce4ef;
  border-radius: var(--radius);
  color: var(--brand-dark);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.contact-item-value a {
  text-decoration: none;
}

.contact-item-value a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.contact-item-note {
  margin: 4px 0 0;
  font-size: 0.84375rem;
  color: var(--text-muted);
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Formulario */
.contact-form-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.contact-form-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-form-hint {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-label .required {
  color: var(--brand-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.96875rem;
  color: var(--ink);
  background-color: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(47, 154, 198, 0.16);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--error-text);
}

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

.form-error {
  font-size: 0.8125rem;
  color: var(--error-text);
  min-height: 1.1em;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84375rem;
  color: var(--text-muted);
}

.form-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-dark);
  flex-shrink: 0;
}

.form-checkbox-row a {
  color: var(--brand-dark);
  font-weight: 600;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.form-status--warning {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  border-color: var(--warning-border);
}

.form-status--error {
  background-color: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

/* ==========================================================================
   H. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: #111519;
  color: var(--text-on-dark);
  border-top: 3px solid var(--brand);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 0.9fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid #262d35;
}

/* Placa blanca arquitectónica para integrar el logo original con fondo blanco sin recorte */
.footer-logo-plate {
  display: inline-block;
  background-color: var(--surface);
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.footer-logo {
  height: 76px;
  width: auto;
  aspect-ratio: 857 / 479;
  object-fit: contain;
}

.footer-desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  max-width: 38ch;
  line-height: 1.65;
}

.footer-geo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7ccce9;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact-list li {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-contact-list a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: #7ccce9;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-social[hidden] {
  display: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #2f3842;
  border-radius: var(--radius);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.footer-social a:hover {
  border-color: var(--brand);
  background-color: var(--brand-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  font-size: 0.8125rem;
  color: #8f9ba7;
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-inline a {
  color: #b8c2cc;
  text-decoration: none;
}

.footer-legal-inline a:hover {
  color: var(--surface);
  text-decoration: underline;
}

/* ==========================================================================
   MODAL LIGHTBOX DE GALERÍA
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(10, 13, 16, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 1040px;
  background-color: var(--charcoal);
  border: 1px solid #2c353d;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #2c353d;
  color: var(--surface);
}

.lightbox-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #3c4652;
  border-radius: var(--radius);
  color: var(--surface);
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--brand);
  background-color: var(--brand-dark);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0e11;
  max-height: 76vh;
  padding: 16px;
}

.lightbox-stage img {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #2c353d;
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   PÁGINAS LEGALES (aviso-legal.html / politica-privacidad.html)
   ========================================================================== */
.legal-hero {
  background-color: var(--charcoal);
  color: var(--surface);
  padding-block: 48px;
  border-bottom: 3px solid var(--brand);
}

.legal-hero .section-title {
  color: var(--surface);
  margin-bottom: 0;
}

.legal-content {
  max-width: 820px;
  padding-block: 48px 72px;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.72;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN (1440px, 1280px, 768px, 390px, 320px)
   ========================================================================== */
@media (max-width: 1080px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .main-nav,
  .header-cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .brand-logo {
    height: 72px;
    margin-block: 0;
  }

  .hero {
    min-height: 500px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 14, 14, 0.82) 0%,
      rgba(14, 14, 14, 0.78) 65%,
      rgba(14, 14, 14, 0.9) 100%
    );
  }
}

@media (max-width: 680px) {
  .values-grid,
  .services-grid,
  .gallery-grid,
  .form-grid,
  .contact-quick-actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    height: 68px;
    margin-block: 0;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .contact-form-card,
  .service-card,
  .value-card {
    padding: 22px 18px;
  }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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