/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #101014;
  color: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* VARIABLES */
:root {
  --color-bg: #101014;
  --color-bg-alt: #17171d;
  --color-primary: #f0b15a;
  --color-primary-soft: rgba(240, 177, 90, 0.2);
  --color-secondary: #f28c3a;
  --color-text: #f5f5f5;
  --color-muted: #a0a0ac;
  --color-border: #2c2c35;
  --color-danger: #ff5a5f;
  --color-success: #39b37c;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --header-height: 72px;
  --top-bar-height: 32px;
}

/* UTILIDADES */
.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section__title {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.section__subtitle {
  color: var(--color-muted);
  max-width: 640px;
  font-size: 0.98rem;
}

/* TOP BAR FIJA SUPERIOR */
.top-info-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  background: linear-gradient(90deg, #2a1c10, #3a2620);
  color: #f9efe1;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(240, 177, 90, 0.4);
}

.top-info-bar__inner {
  width: 100%;
  overflow: hidden;
}

.top-info-bar__marquee {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 0.78rem;
}

.top-info-bar__highlight {
  color: var(--color-primary);
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* HEADER / NAV */
.site-header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 900;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(240, 177, 90, 0.4), 0 10px 20px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 20% 0, #f7d29a, #c17b2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: -0.08em;
  font-size: 1.1rem;
  color: #1a1208;
}

.nav__logo-text-main {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.nav__logo-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--color-muted);
  padding: 6px 8px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.nav__link:hover {
  color: var(--color-primary);
  background: rgba(240, 177, 90, 0.09);
  transform: translateY(-1px);
}

.nav__link--primary {
  border-radius: 999px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #f0b15a, #f28c3a);
  color: #1b1208;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.nav__link--primary:hover {
  background: linear-gradient(135deg, #f4c77d, #f5a256);
  color: #120b05;
}

.nav__link--active {
  color: #fff;
  background: rgba(240, 177, 90, 0.15);
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(240, 177, 90, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.68rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: rgba(240, 177, 90, 0.12);
  color: var(--color-primary);
}

/* NAV MOBILE */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

/* ESPACIADO PRINCIPAL */
main {
  padding-top: calc(var(--top-bar-height) + var(--header-height) + 16px);
}

/* HERO */
.hero {
  padding: 56px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero__gradient {
  background: linear-gradient(135deg, #ffffff, #f0b15a);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  color: var(--color-muted);
  font-size: 0.96rem;
  max-width: 540px;
  margin-bottom: 18px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.hero__stat {
  min-width: 120px;
}

.hero__stat-number {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
}

.hero__stat-label {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.btn {
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #f0b15a, #f28c3a);
  color: #1b1208;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f4c77d, #f5a256);
}

.btn--ghost {
  border: 1px solid rgba(240, 177, 90, 0.4);
  color: var(--color-primary);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(240, 177, 90, 0.08);
}

.hero__note {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.hero__note-strong {
  color: var(--color-primary);
}

.hero__media-card {
  background: radial-gradient(circle at 20% 0, #1f1b15, #111014);
  border-radius: 22px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(240, 177, 90, 0.25);
}

.hero__badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.7rem;
  color: var(--color-muted);
}

.hero__badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 151, 101, 0.12);
  color: #58e1a4;
  border: 1px solid rgba(88, 225, 164, 0.4);
}

.hero__img-wrapper {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero__img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__mini-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.68rem;
  color: var(--color-muted);
}

/* TARJETAS GENERALES */
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  padding: 18px 18px 16px;
}

.card--accent {
  border-color: rgba(240, 177, 90, 0.28);
}

.card__title {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

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

/* SECCIÓN SERVICIOS RESUMEN (HOME) */
.services-grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.service-pill {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.service-pill__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(240, 177, 90, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.service-pill__title {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.service-pill__text {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* LISTAS */
.text-block {
  margin-top: 18px;
  font-size: 0.9rem;
}

.text-block p + p {
  margin-top: 10px;
}

.text-block ul,
.text-block ol {
  margin: 10px 0 0 16px;
  font-size: 0.88rem;
}

.text-block li + li {
  margin-top: 4px;
}

/* TABLAS */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.82rem;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  text-align: left;
  color: var(--color-primary);
  font-weight: 500;
}

/* FORMULARIO CONTACTO */
.form-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 24px;
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--color-muted);
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #111118;
  color: var(--color-text);
  padding: 8px 10px;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(240, 177, 90, 0.7);
  box-shadow: 0 0 0 1px rgba(240, 177, 90, 0.4);
  background: #15151d;
}

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

.form-helper {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* MAPA */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #09090c;
}

.map-wrapper iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* BANNER DE COOKIES */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 12, 0.98);
  border-top: 1px solid rgba(240, 177, 90, 0.35);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.6);
  z-index: 950;
}

.cookie-banner__inner {
  width: min(1100px, 100% - 24px);
  margin: 10px auto;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) auto;
  gap: 12px;
  align-items: center;
}

.cookie-banner__title {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.cookie-banner__text {
  font-size: 0.76rem;
  color: var(--color-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn--outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-button {
  position: fixed;
  right: 16px;
  bottom: 70px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1110;
  font-size: 24px;
  cursor: pointer;
  z-index: 940;
  border: 2px solid #e9fff2;
}

/* PIE DE PÁGINA */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #09090d;
  padding: 24px 0 18px;
  margin-top: 40px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 14px;
}

.footer-section-title {
  font-size: 0.86rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* BLOQUES DE CONTENIDO INTERNOS */
.page-hero {
  padding: 40px 0 18px;
}

.page-hero__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.page-hero__meta {
  font-size: 0.76rem;
  color: var(--color-muted);
}

.page-hero__image {
  margin-top: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* BLOQUE DE SECCIÓN CON COLUMNS */
.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 20px;
}

/* ETIQUETAS / BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(240, 177, 90, 0.15);
  color: var(--color-primary);
}

/* ETIQUETA DE ACTUALIDAD */
.timeline {
  margin-top: 18px;
  border-left: 2px solid rgba(240, 177, 90, 0.4);
  padding-left: 16px;
}

.timeline-item {
  margin-bottom: 12px;
}

.timeline-item__year {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

.timeline-item__title {
  font-size: 0.92rem;
}

.timeline-item__body {
  font-size: 0.84rem;
  color: var(--color-muted);
}

/* LISTAS DE GLOSARIO */
.glossary {
  margin-top: 16px;
}

.glossary-term {
  margin-bottom: 10px;
}

.glossary-term__title {
  font-weight: 600;
  font-size: 0.9rem;
}

.glossary-term__def {
  font-size: 0.84rem;
  color: var(--color-muted);
}

/* BREAKPOINTS RESPONSIVE */
@media (max-width: 960px) {
  .hero__grid,
  .form-card,
  .footer-grid,
  .columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    inset: calc(var(--top-bar-height) + var(--header-height)) 0 auto 0;
    background: rgba(6, 6, 10, 0.98);
    padding: 12px 16px 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(240, 177, 90, 0.2);
  }

  .nav__menu--open {
    display: flex;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__social {
    display: none;
  }

  .hero {
    padding: 32px 0 26px;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-button {
    width: 46px;
    height: 46px;
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  .top-info-bar__marquee {
    font-size: 0.7rem;
  }

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

  .map-wrapper iframe {
    height: 220px;
  }
}