/*
==================================================
NUNKY & NICE - MAIN.CSS
Versión refinada | estilo profesional, discreto, tech y elegante
==================================================

ESTRUCTURA:
1. Variables globales
2. Reset y base
3. Layout general
4. Header y navegación
5. Hero
6. Botones
7. Cards, grids y bloques comunes
8. Equipo / testimonios
9. Video
10. CTA
11. Servicios
12. Accordion / FAQ
13. Footer
14. Back to top + animaciones
15. Cookies
16. Helpers
17. Responsive
18. SECCIÓN ESPECIAL PARA GUÍAS (Añadido)
==================================================
*/

/* =========================
   1. VARIABLES GLOBALES
========================= */
:root {
  --color-text: #0f172a;
  --color-text-soft: #334155;
  --color-muted: #64748b;

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-soft: #f1f5f9;

  --color-white: #ffffff;
  --color-black: #020617;

  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-soft: rgba(37, 99, 235, 0.12);

  --color-border: rgba(15, 23, 42, 0.10);
  --color-border-strong: rgba(15, 23, 42, 0.16);

  --hero-overlay:
    linear-gradient(135deg, rgba(7, 15, 32, 0.82), rgba(14, 34, 74, 0.58));
  --hero-glow: rgba(59, 130, 246, 0.22);
  --hero-line: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.08);

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.16);
  --shadow-hero: 0 30px 80px rgba(4, 12, 30, 0.30);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container-width: 1160px;
  --header-height: 78px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* =========================
   2. RESET Y BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.05), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.section-title,
.cta-title,
.hero-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

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

iframe {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

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

ul,
ol {
  padding-left: 1.2rem;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--color-text);
}

/* =========================
   3. LAYOUT GENERAL
========================= */
.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt,
.section-soft,
.section-muted {
  background: var(--color-bg-alt);
}

.section-title {
  margin: 0 0 22px;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-title-left,
.left {
  text-align: left;
}

.section-title-small {
  font-size: 1.25rem;
}

.center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.spacer {
  height: 32px;
}

/* =========================
   4. HEADER Y NAVEGACIÓN
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.brand {
  flex: 0 0 auto;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  position: relative;
}

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

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--color-text-soft);
  font-size: 0.96rem;
  font-weight: 500;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-item > a:hover,
.nav-item > a:focus-visible {
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-text);
  outline: none;
}

.nav-item.is-active > a,
.nav-item.has-children.is-active > a {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  margin: 5px 0;
  border-radius: 2px;
}

/* DROPDOWN ESCRITORIO */
.nav-item.has-children::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(14px);
  display: none;
  z-index: 1001;
}

.nav-item.has-children:hover > .dropdown,
.nav-item.has-children:focus-within > .dropdown {
  display: block;
}

.dropdown li {
  margin: 0;
  padding: 0;
}

.dropdown a {
  display: block;
  padding: 11px 16px;
  color: var(--color-text-soft);
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(15, 23, 42, 0.04);
  color: var(--color-text);
  outline: none;
}

/* =========================
   5. HERO
========================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 56vw, 700px);
  padding: clamp(120px, 11vw, 160px) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(circle at 16% 20%, rgba(125, 211, 252, 0.16), transparent 24%),
    radial-gradient(circle at 84% 24%, rgba(37, 99, 235, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(4, 10, 26, 0.92), rgba(15, 36, 86, 0.68)),
    var(--hero-bg) center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: -10%;
  right: -8%;
  width: 34vw;
  height: 34vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0) 68%);
  filter: blur(10px);
  animation: heroFloat 12s ease-in-out infinite alternate;
}

.hero::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 88%);
  opacity: 0.38;
  animation: heroGridShift 18s linear infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 24, 0.58), rgba(4, 10, 24, 0.18) 48%, rgba(4, 10, 24, 0.56)),
    linear-gradient(to top, rgba(3, 9, 24, 0.72), rgba(3, 9, 24, 0.12) 60%);
}

.hero-grid-lines,
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-lines {
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(125, 211, 252, 0.16) 42%, transparent 46% 100%),
    linear-gradient(125deg, transparent 0 58%, rgba(125, 211, 252, 0.08) 61%, transparent 64% 100%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: heroSweep 10s linear infinite;
}

.hero-particles {
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-hero);
}

.hero-content > *:last-child {
  margin-bottom: 0;
}

.hero h1,
.hero-title {
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.02;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-sub,
.hero-text p,
.hero-small,
.hero-tiny {
  margin: 0 auto 10px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.90);
}

.hero-cta {
  margin-top: 24px;
}

.logo-secondary {
  width: min(300px, 30%);
  margin: 0 auto;
}

.hero-particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(191, 219, 254, 0.85);
  box-shadow: 0 0 14px rgba(147, 197, 253, 0.65);
  animation: heroParticleFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.64;
}

/* =========================
   6. BOTONES
========================= */
.btn,
.button,
.btn-light,
.btn-primary,
.btn-outline,
.btn--primary,
.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover,
.button:hover,
.btn-light:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn--primary:hover,
.btn--outline:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.btn:focus-visible,
.button:focus-visible,
.btn-light:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn--primary:focus-visible,
.btn--outline:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.btn-small,
.btn.small {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.btn-invert {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  box-shadow: none;
}

.btn-invert:hover {
  background: #ffffff;
  color: var(--color-text);
}

.btn-outline,
.btn--outline {
  background: transparent;
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--color-accent-dark);
  box-shadow: none;
}

.btn-outline:hover,
.btn--outline:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent-dark);
}

/* =========================
   7. CARDS, GRIDS Y BLOQUES
========================= */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2,
.two-cols,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3,
.services,
.service-main,
.services-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.card,
.benefit-card,
.service-box,
.mini-card,
.service-card,
.service {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

.card:hover,
.benefit-card:hover,
.service-box:hover,
.mini-card:hover,
.service-card:hover,
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

.card {
  padding: 22px;
}

.mini-card {
  padding: 18px;
  text-align: center;
}

.mini-card h3 {
  margin: 0 0 8px;
}

.code-note {
  padding: 16px;
  border-radius: 14px;
  background: #fff8e6;
  border-left: 4px solid #d4a017;
}

.page-intro {
  padding: 44px 0;
}

.page-intro .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prose,
.rich,
.rich-text,
.card-body,
.benefit-body {
  line-height: 1.8;
  color: var(--color-text-soft);
}

.prose ul,
.rich ul,
.rich-text ul,
.card-body ul,
.benefit-body ul {
  padding-left: 18px;
}

.img-responsive,
.img-fluid,
.img-wide {
  width: 100%;
  border-radius: 14px;
}

/* TÍTULOS CON LÍNEAS */
.title-lines,
.divider-title,
.section-title-with-lines,
.hr-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.line,
.divider-line,
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.45), transparent);
  border-radius: 999px;
  border: 0;
}

.divider-title hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, 0.45), transparent);
  margin: 0;
}

/* BENEFIT CARDS */
.benefit-card {
  overflow: hidden;
}

.benefit-icon {
  display: flex;
  justify-content: center;
  padding: 22px 18px 0;
}

.benefit-title,
.benefit-title-bar,
.benefit-pill,
.benefit-label,
.card-head {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  color: #082f49;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
}

.benefit-body,
.card-body {
  padding: 18px;
}

/* =========================
   8. EQUIPO / TESTIMONIOS
========================= */
.team-card {
  text-align: center;
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--color-text);
}

.team-card p {
  color: var(--color-text-soft);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 18px;
  display: block;
  border: 4px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
}

.team-card:hover .team-photo {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(37, 99, 235, 0.20);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.team-role {
  margin: 0 0 12px;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--color-accent-dark);
  font-weight: 600;
}

.team-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =========================
   9. VIDEO
========================= */
.video-wrap,
.video-wrapper,
.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #020617;
  box-shadow: var(--shadow-soft);
}

.video-wrap iframe,
.video-wrapper iframe,
.video iframe,
.video-ratio iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   10. CTA
========================= */
.cta-box {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(56, 189, 248, 0.90));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(29, 78, 216, 0.18);
}

.cta-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-text,
.cta-line,
.lead {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

/* =========================
   11. SERVICIOS
========================= */
.service-card,
.service,
.service-box {
  overflow: hidden;
}

.service-img {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.service-body,
.service-text {
  padding: 18px;
}

.service-body h3,
.service-body h4,
.service-text h4,
.service__title {
  margin: 0 0 10px;
}

.service-body p,
.service-text p,
.service__desc {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.big-list {
  margin: 0;
  padding-left: 20px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.75;
}

/* =========================
   12. ACCORDION / FAQ
========================= */
.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.accordion-btn,
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.accordion-btn:hover,
.accordion-trigger:hover {
  background: rgba(15, 23, 42, 0.03);
}

.accordion-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
  flex: 0 0 auto;
}

.accordion-btn[aria-expanded="true"] .accordion-icon,
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(225deg);
}

.accordion-panel {
  padding: 0 20px 20px;
  color: var(--color-text-soft);
}

/* =========================
   13. FOOTER
========================= */
.site-footer {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: 64px 0 24px;
  margin-top: 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer .container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: start;
}

.footer-left {
  max-width: 580px;
}

.footer-logo,
.footer-brand-text {
  margin: 0 0 18px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-description {
  margin: 0;
  color: #94a3b8;
  line-height: 1.85;
  font-size: 0.98rem;
  max-width: 54ch;
}

.footer-right {
  justify-self: end;
  text-align: right;
  min-width: 260px;
}

.footer-title {
  margin: 0 0 22px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

.footer-contact-item {
  margin-bottom: 18px;
}

.footer-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.footer-contact-item a,
.footer-contact-item p {
  margin: 0;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.6;
}

.footer-contact-item a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.footer-legal {
  margin-top: 6px;
}

.footer-legal a {
  color: #94a3b8;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-legal a:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  color: #7dd3fc;
  transform: translateY(-1px);
}

/* =========================
   14. BACK TO TOP + ANIMACIONES
========================= */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: var(--shadow-soft);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 26px, 0) scale(1.06);
  }
}

@keyframes heroGridShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 28px, 0);
  }
}

@keyframes heroSweep {
  from {
    transform: translateX(-3%);
  }
  to {
    transform: translateX(3%);
  }
}

@keyframes heroParticleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.22);
    opacity: 0.88;
  }
}

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

  .hero::before,
  .hero::after,
  .hero-particle,
  .hero-grid-lines,
  .reveal-on-scroll,
  .card,
  .benefit-card,
  .service-box,
  .mini-card,
  .service-card,
  .service,
  .btn,
  .button,
  .btn-light,
  .btn-primary,
  .btn-outline,
  .btn--primary,
  .btn--outline,
  .back-to-top,
  .cookie-banner {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   15. COOKIES
========================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity var(--transition-medium),
    transform var(--transition-medium);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(11, 17, 32, 0.96), rgba(15, 23, 42, 0.94));
  color: #e2e8f0;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-banner-content {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #ffffff;
}

.cookie-banner-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 72ch;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

/* PLACEHOLDER DE VÍDEO BLOQUEADO */
.video-consent-box {
  position: relative;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 36%),
    linear-gradient(135deg, #0b1120, #172554);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-placeholder p {
  margin: 0;
}

.video-placeholder-small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 48ch;
}

/* LINK DE COOKIES EN FOOTER */
.footer-separator {
  display: inline-block;
  margin: 0 8px;
  color: #475569;
}

.footer-cookies-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-cookies-link:hover,
.footer-cookies-link:focus-visible {
  color: #e2e8f0;
  text-decoration: underline;
  outline: none;
}

/* =========================
   16. HELPERS
========================= */
.center-media,
.center-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.oswald {
  letter-spacing: 0.5px;
}

.hero-main {
  margin: 0;
}

[data-disabled-link] {
  pointer-events: none;
  opacity: 0.7;
}

/* =========================
   17. RESPONSIVE
========================= */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(92vw, 340px);
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(14px);
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-item > a {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-item.has-children::after {
    display: none;
  }

  .dropdown {
    position: static;
    top: auto;
    left: auto;
    min-width: unset;
    margin-top: 4px;
    padding: 6px 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    display: none;
  }

  .nav-item.has-children.is-open > .dropdown {
    display: block;
  }

  .page-intro .cards,
  .grid-3,
  .services,
  .service-main,
  .services-grid,
  .benefits-grid,
  .grid-2,
  .two-cols,
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding: 100px 0 92px;
  }

  .hero-content {
    width: min(780px, calc(100% - 28px));
    padding: 26px 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-right {
    justify-self: start;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .brand img {
    height: 30px;
  }

  .hero h1,
  .hero-title {
    font-size: 2rem;
    line-height: 1.05;
  }

  .hero-sub,
  .hero-text p,
  .hero-small,
  .hero-tiny {
    font-size: 0.96rem;
  }

  .hero-content {
    width: calc(100% - 20px);
    padding: 22px 16px;
    border-radius: 22px;
  }

  .hero::after {
    background-size: 28px 28px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .big-list {
    font-size: 1.15rem;
  }

  .title-lines,
  .divider-title,
  .section-title-with-lines,
  .hr-title {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .line,
  .divider-line,
  .hr,
  .divider-title hr {
    display: none;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .team-photo {
    width: 140px;
    height: 140px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-inner {
    border-radius: 18px;
    padding: 16px;
  }

  .cookie-banner-title {
    font-size: 1rem;
  }

  .cookie-banner-text {
    font-size: 0.9rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }

  .video-placeholder {
    min-height: 260px;
    padding: 22px 18px;
  }

  .footer-separator {
    display: none;
  }
}

/* ==================================================
   18. SECCIÓN ESPECIAL PARA GUÍAS (Reutilizable)
================================================== */
.guide-hero {
    background: linear-gradient(135deg, #0493ff 0%, #00579a 100%);
    padding: clamp(60px, 10vh, 100px) 0;
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.guide-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.guide-sub {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.4;
}

.guide-image-container img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    max-width: 100%;
    height: auto;
}

.form-container-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.form-container-glass h3 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
}

.guide-form-group { margin-bottom: 18px; text-align: left; }
.guide-form-group label {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.guide-form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-download-guide {
    width: 100%;
    background: #073763;
    color: #fff;
    border: 2px solid #073763;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-download-guide:hover {
    background: #fff;
    color: #073763;
    transform: translateY(-2px);
}

.check-legal-guide {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}
.check-legal-guide label { font-size: 12px; color: #fff; line-height: 1.3; }

.site-footer {
  padding: 50px 0 30px;
  background-color: #000;
  color: #fff;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contenedor principal para repartir izquierda y derecha */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alinea arriba para que el contacto y el logo coincidan */
  margin-bottom: 40px;
}

/* Grupo de Logo + Redes */
.footer-left-group {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacio entre el logo y las redes */
}

.footer-social a {
  margin-right: 15px;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-social a:hover {
  opacity: 1;
}

/* Bloque de contacto a la derecha */
.footer-contact {
  text-align: right;
}

.footer-contact h3 {
  margin-bottom: 10px;
}

/* Bloque inferior centrado */
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: none; /* Aseguramos que no haya línea */
}

/* Ajuste para no romper el footer anterior en pantallas grandes */
.footer-bottom p {
  width: 100%;
}

.footer-legal a {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-contact {
    text-align: center;
  }
  
  .footer-social {
    margin-top: 10px;
  }
}