/* ==========================================================================
   DESIGN TOKENS & VARIABLES (MODERN CAMP STYLES)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Brand Accent Colors (Brochure Color System) */
  --brand-teal:         #1E6875; /* Brochure blue-teal */
  --brand-teal-hover:   #154c56;
  --brand-teal-light:   #e9f1f2;
  --brand-orange:       #EF7922; /* Brochure orange */
  --brand-orange-hvr:   #d16616;
  --brand-orange-lt:    #fdf1e7;
  --brand-dark-green:   #053728; /* Brochure deep green background */
  --brand-light-green:  #0D8D5A; /* Brochure grass green */
  --brand-gold:         #CBA025; /* Brochure gold */
  
  /* Scheme Colors (Modern Light Gray/Teal Palette) */
  --surface-white:      #FFFFFF;
  --bg-primary:         #FFFFFF; /* Pure white */
  --bg-secondary:       #F7F8F7; /* Soft gray background */
  --bd-color:           #E5E7E5; /* Minimalist divider color */
  --text-title:         #0A231C; /* High contrast dark green-black from brochure */
  --text-body:          #5A6261; /* Muted slate gray */
  --text-muted:         #9EAEAC;
  
  /* Scheme Colors (Dark Portfolio Panel & Brochure Green Mode) */
  --alt-bg-primary:     #053728; /* Deep brochure green */
  --alt-bg-secondary:   #0A4333; /* Slightly lighter brochure green for card elevation */
  --alt-bd-color:       rgba(255, 255, 255, 0.08);
  --alt-text-title:     #FFFEFE;
  --alt-text-body:      #A9B5B3;
  --alt-text-muted:     #738481;
  
  /* Typography */
  --font-display:       'Inter Tight', sans-serif;
  --font-body:          'DM Sans', sans-serif;
  
  /* Corner Radius */
  --r-sm:               10px;
  --r-md:               20px;
  --r-lg:               28px;
  
  /* Transitions & Subtle Shadows */
  --shadow:             0 8px 30px rgba(0, 0, 0, 0.02);
  --shadow-lg:          0 16px 48px rgba(0, 0, 0, 0.06);
  --trans:              all 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Glassmorphism Styling System */
  --glass-bg:           rgba(255, 255, 255, 0.45);
  --glass-bg-hover:     rgba(255, 255, 255, 0.65);
  --glass-border:       rgba(255, 255, 255, 0.5);
  --glass-border-hover: rgba(255, 255, 255, 0.8);
  --glass-shadow:       0 8px 32px 0 rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow-hover: 0 20px 40px 0 rgba(3, 85, 83, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  
  --dark-glass-bg:      rgba(20, 28, 27, 0.75);
  --dark-glass-border:  rgba(255, 255, 255, 0.08);
  --dark-glass-shadow:  0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Unified Layout & Spacing */
  --gap-xs:             8px;
  --gap-sm:             16px;
  --gap-md:             24px;
  --gap-lg:             32px;
  --gap-xl:             64px;
  --section-pad-y:      120px;
  --section-pad-y-mob:  80px;

  /* Fluid Typography Scale */
  --h1-size:            clamp(56px, 6vw, 84px);
  --h2-size:            clamp(34px, 4.5vw, 56px);
  --h3-size:            clamp(24px, 3vw, 36px);
  --p-size:             17px;
  --p-size-large:       19px;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.global-surface-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 12% 28%, rgba(3, 85, 83, 0.03), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(243, 127, 32, 0.02), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f7faf9 60%, #ffffff 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800; /* Modern heavy headings */
  line-height: 1.1;
  color: var(--text-title);
  letter-spacing: -0.03em;
  text-transform: none;
}

/* Styled secondary italic word in titles (Modern Camp style) */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.section--dark h1 em,
.section--dark h2 em,
.section--dark h3 em {
  color: var(--alt-text-muted);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--trans);
}

/* ==========================================================================
   UTILITY & LAYOUT CLASSES
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2; /* Content sits above glow effects */
}

.section {
  padding: 120px 0;
  position: relative;
  background-color: transparent;
}

.section--tinted {
  background-color: var(--bg-primary);
}

.section--dark {
  background-color: var(--brand-teal);
  color: var(--alt-text-body);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--alt-text-title);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange-lt);
  color: var(--brand-orange);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--brand-orange);
  border-radius: 50%;
}

.section--dark .section-label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-orange);
}

.section-title {
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--gap-md);
}

.section-title__accent {
  color: var(--brand-teal);
}

.section-desc {
  font-size: var(--p-size);
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: var(--gap-xl);
  line-height: 1.75;
}

.section--dark .section-desc {
  color: var(--alt-text-body);
}

/* Divider line */
.divider-h {
  width: 100%;
  height: 1.5px;
  background-color: var(--bd-color);
  margin: 50px 0;
}

/* Glassmorphism Background Glow Spheres */
.glass-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  transition: var(--trans);
}

.section--dark .glass-glow {
  opacity: 0.1;
}

.glass-glow--teal {
  background: radial-gradient(circle, var(--brand-teal) 0%, transparent 70%);
}

.glass-glow--orange {
  background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
}

/* Positioning Variants */
.glow-top-left {
  top: -150px;
  left: -150px;
  width: 450px;
  height: 450px;
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
}

.glow-center-left {
  top: 30%;
  left: -200px;
  width: 500px;
  height: 500px;
}

.glow-center-right {
  top: 50%;
  right: -200px;
  width: 450px;
  height: 450px;
}

/* ==========================================================================
   PILL BUTTONS WITH CIRCULAR ARROWS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px 12px 28px; /* Slightly offset for arrow symmetry */
  border-radius: 100px; /* Pill shape */
  border: 1.5px solid transparent;
  transition: var(--trans);
  cursor: pointer;
}

.btn-arrow-circle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: var(--trans);
  flex-shrink: 0;
}

/* Primary Button */
.btn-primary {
  background: var(--brand-teal);
  color: var(--alt-text-title);
}

.btn-primary .btn-arrow-circle {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--brand-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 85, 83, 0.12);
}

.btn-primary:hover .btn-arrow-circle {
  transform: rotate(45deg);
  background: #FFFFFF;
  color: var(--brand-teal);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--text-title);
  border-color: var(--brand-orange);
}

.btn-secondary .btn-arrow-circle {
  background: var(--bg-primary);
  color: var(--text-title);
}

.btn-secondary:hover {
  background: var(--brand-teal-light);
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

.btn-secondary:hover .btn-arrow-circle {
  transform: rotate(45deg);
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* Accent Button (Orange) */
.btn-accent {
  background: var(--brand-orange);
  color: var(--alt-text-title);
}

.btn-accent:hover {
  background: var(--brand-orange-hvr);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(243, 127, 32, 0.18);
}

.btn-accent:hover .btn-arrow-circle {
  transform: rotate(45deg);
  background: #FFFFFF;
  color: var(--brand-orange);
}

/* Outlined White Button */
.btn-outline-white {
  background: transparent;
  color: var(--alt-text-title);
  border-color: var(--brand-orange);
}

.btn-outline-white:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline-white:hover .btn-arrow-circle {
  transform: rotate(45deg);
  background: #FFFFFF;
  color: var(--alt-bg-primary);
}

/* ==========================================================================
   NAVIGATION STICKY HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: none;
  display: flex;
  align-items: center;
  transition: var(--trans);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

.header--scrolled {
  height: 76px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(3, 85, 83, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Transparent State (Overlay on Hero) */
.header--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.header--transparent .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header--transparent .nav-link:hover,
.header--transparent .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* Adjust mobile toggle color on transparent header */
.header--transparent .menu-toggle {
  color: #FFFFFF;
}

/* White logo styling on transparent header */
.header--transparent .header__logo svg text[style*="#035553"] {
  fill: #FFFFFF !important;
}

.header--transparent .header__logo svg path[style*="#035553"] {
  fill: #FFFFFF !important;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
  margin-top: 12px;
}

.header__logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header__logo svg {
  height: 48px;
  width: auto;
  transition: var(--trans);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-teal);
  background: var(--brand-teal-light);
}

.nav-link--mobile-contact {
  display: none;
}

/* Dropdown Menu Style */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  padding: 12px;
  min-width: 240px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: var(--trans);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
}

.nav-dropdown-item:hover {
  background: var(--brand-teal-light);
  color: var(--brand-teal);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__cta .btn {
  padding-top: 7px;
  padding-bottom: 7px;
  margin-bottom: 14px;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-title);
  cursor: pointer;
}

/* ==========================================================================
   HERO TITLE FIXED STRUCTURE
   ========================================================================== */
.hero-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title__line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  white-space: nowrap;
}

.hero-title__line--mixed {
  white-space: nowrap;
}

.hero-title__word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-title__word--em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-orange);
}


/* ==========================================================================
   SPA ROUTING PAGES
   ========================================================================== */
.page {
  display: none;
  padding-top: var(--nav-h);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   INTERNAL PAGE HERO (Reusable Full-Screen Hero System)
   ========================================================================== */
.page-hero {
  min-height: calc(100vh - var(--nav-h));
  background-color: transparent;
  color: var(--text-body);
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0;
}

.page-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Desktop subpage hero sizing, excluding the home hero */
.page:not(#page-home) .page-hero__container,
.page:not(#page-home) .sport-hero,
.page:not(#page-home) > .hero > .container {
  margin-top: 100px;
  height: 543.81px;
}

@media (max-width: 1024px) {
  .page:not(#page-home) .page-hero__container,
  .page:not(#page-home) .sport-hero,
  .page:not(#page-home) > .hero > .container {
    margin-top: 0;
    height: auto;
  }
}


.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange-lt);
  color: var(--brand-orange);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
}

.page-hero__badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-orange);
  border-radius: 50%;
}

.page-hero__title {
  color: var(--text-title);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0;
}

.page-hero__title em {
  font-style: normal;
  color: var(--brand-orange);
}

.page-hero__sub {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 0;
}

.page-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md); /* keeps shadow rounded */
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
}

/* Modifier for Centered Hero */
.page-hero--centered .page-hero__container {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.page-hero--centered .page-hero__content {
  align-items: center;
}

.page-hero--centered .page-hero__sub {
  max-width: 80%;
}

.page-hero--centered .page-hero__visual {
  aspect-ratio: 16 / 9;
}

@media (max-width: 991px) {
  .page-hero {
    min-height: auto;
    padding: 80px 0 60px;
  }
  .page:not(#page-home) .page-hero__container,
  .page:not(#page-home) .sport-hero,
  .page:not(#page-home) > .hero > .container {
    margin-top: 0;
    height: auto;
  }
  .page-hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-hero__visual {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   PAGE: HOME / INICIO
   ========================================================================== */
/* Hero Section */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background-color: transparent;
  color: var(--text-body);
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__decor-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange-lt);
  border: 1px solid rgba(243, 127, 32, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.hero__badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.hero__title {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  color: var(--text-title);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 48px;
  max-width: 600px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Rounded Visual Cover Image */
.hero__visual {
  position: relative;
  height: 520px;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--alt-bg-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero__visual-icon {
  font-size: 120px;
  animation: float 6s ease-in-out infinite;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Stats Bar */
.stats-bar {
  background-color: transparent;
  border-bottom: none;
  position: relative;
  z-index: 10;
  margin-top: -60px; /* Float overlapping Hero */
  transition: var(--trans);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.stat-item {
  padding: 44px 30px;
  text-align: center;
  border-right: 1.5px solid rgba(3, 85, 83, 0.08);
  transition: var(--trans);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.stat-num span {
  color: var(--brand-orange);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-body);
  text-transform: uppercase;
}

/* ==========================================================================
   4-COLUMN SERVICES GRID ("Catch the wave regardless of skills")
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md);
  border: 1.5px solid var(--glass-border);
  padding: 32px;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--glass-bg-hover);
  border-color: var(--brand-orange);
  box-shadow: var(--glass-shadow-hover);
}

.skill-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 85, 83, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--trans);
}

.skill-card:hover .skill-icon-circle {
  background: var(--brand-teal-light);
  transform: scale(1.08);
}

.skill-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-teal);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(3, 85, 83, 0.15);
  background: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.skill-card-bottom {
  margin-top: auto;
}

.skill-title {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 800;
}

.skill-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   2-COLUMN ACCORDION GRID ("Live in a luxury villa")
   ========================================================================== */
.villa-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.villa-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--bd-color);
}

.villa-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.villa-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(18, 36, 34, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Accordion Component */
.accordion-list {
  margin-top: 36px;
}

.accordion-item {
  border-bottom: 1.5px solid var(--bd-color);
  padding: 20px 0;
}

.accordion-item:first-child {
  border-top: 1.5px solid var(--bd-color);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-title);
  text-transform: uppercase;
  transition: var(--trans);
}

.accordion-toggle {
  width: 32px;
  height: 32px;
  background: var(--bg-primary);
  color: var(--text-title);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 700;
  transition: var(--trans);
}

.accordion-toggle::before {
  content: "+";
  font-size: 22px;
}

.accordion-item:hover .accordion-title {
  color: var(--brand-teal);
}

.accordion-item:hover .accordion-toggle {
  background: var(--brand-teal-light);
  color: var(--brand-teal);
}

/* Expandable content area */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: var(--trans);
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  margin-top: 0;
}

.accordion-item.active .accordion-body {
  margin-top: 16px;
  max-height: 200px; /* arbitrary height to slide down */
}

.accordion-item.active .accordion-toggle {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.accordion-item.active .accordion-toggle::before {
  content: "−";
}

/* ==========================================================================
   HORIZONTAL CARD LIST STACK ("Body, soul, mind")
   ========================================================================== */
.stack-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md);
  border: 1.5px solid var(--glass-border);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--trans);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.stack-card:hover {
  transform: translateX(10px) translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--brand-orange);
  box-shadow: var(--glass-shadow-hover);
}

.stack-card-content {
  max-width: 80%;
}

.stack-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.stack-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stack-card-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.stack-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  transition: var(--trans);
}

.stack-card:hover .stack-card-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ==========================================================================
   DARK PORTFOLIO GRID ("Timeless Photography" image 2 style)
   ========================================================================== */
.dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--alt-bd-color);
  cursor: pointer;
}

.portfolio-card__bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, var(--alt-bg-secondary) 0%, var(--alt-bg-primary) 100%);
  transition: var(--trans);
}

.portfolio-card:hover .portfolio-card__bg {
  transform: scale(1.06);
}

/* Tags on top */
.portfolio-card__tags {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.portfolio-card__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Card bottom overlay content */
.portfolio-card__content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 19, 18, 0.95) 0%, rgba(12, 19, 18, 0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
}

.portfolio-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--alt-text-title);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.portfolio-card__desc {
  font-size: 13px;
  color: var(--alt-text-body);
  margin-bottom: 16px;
}

/* Pill bottom button inside card */
.portfolio-card__btn {
  background: #FFFFFF;
  color: #111615;
  border-radius: 100px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--trans);
}

.portfolio-card__btn-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--trans);
}

.portfolio-card:hover .portfolio-card__btn {
  background: var(--brand-orange);
  color: #FFFFFF;
}

.portfolio-card:hover .portfolio-card__btn-arrow {
  transform: rotate(45deg);
  background: #FFFFFF;
  color: var(--brand-orange);
}

/* ==========================================================================
   CONTACT FORM & STICKY CARD
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: start;
}

.form-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-title);
  margin-bottom: 10px;
  display: block;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--bd-color);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-title);
  background: var(--bg-primary);
  transition: var(--trans);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-teal);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(3, 85, 83, 0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--brand-teal);
  color: var(--alt-text-title);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  margin-top: 12px;
}

.form-submit:hover {
  background: var(--brand-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 85, 83, 0.15);
}

.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.contact-card {
  background: var(--brand-teal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--brand-teal-hover);
  border-radius: var(--r-md);
  padding: 40px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.contact-card__title {
  font-size: 22px;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #fff;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--trans);
}

.contact-info-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alt-text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--alt-text-title);
  font-weight: 500;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--trans);
  cursor: pointer;
  border: none;
}

.whatsapp-btn:hover {
  background: #1eaf53;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   PARTNERS GRID
   ========================================================================== */
.partners-container {
  margin-top: 40px;
  width: 100%;
}

.partners-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.partner-logo-box {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  text-align: center;
  transition: var(--trans);
  cursor: pointer;
  box-shadow: none;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-logo-box img {
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  transition: var(--trans);
}

.partner-logo-box:hover img {
  transform: scale(1.05);
}

.partner-logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-logo-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

/* ==========================================================================
   CTA BAND (Modern Rounded Banner)
   ========================================================================== */
.cta-band {
  background: var(--brand-teal);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--alt-text-body);
  border-radius: var(--r-lg);
  margin: 0 40px 100px;
}

.cta-band__content {
  position: relative;
  z-index: 2;
}

.cta-band__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--alt-text-title);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-band__sub {
  font-size: 18px;
  color: var(--alt-text-body);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER (Sleek Shared Footer Block)
   ========================================================================== */
.footer {
  background: var(--brand-teal);
  color: #d9d9d9;
  padding: 100px 0 0;
  border-top: 1.5px solid var(--alt-bd-color);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1.5px solid var(--alt-bd-color);
  color: #d9d9d9;
}

.footer__col-brand svg {
  height: 52px;
  width: auto;
  margin-bottom: 24px;
}

.footer__desc {
  font-size: 14px;
  color: #e6e6e6;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 320px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alt-text-title);
  font-size: 15px;
  font-weight: 700;
}

.footer__social-btn:hover {
  background: var(--brand-orange);
  color: var(--alt-text-title);
  transform: translateY(-3px);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alt-text-title);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: 14px;
  color: #e6e6e6;
  cursor: pointer;
  transition: var(--trans);
}

.footer__link:hover {
  color: var(--brand-orange);
  padding-left: 6px;
}

.footer__bottom {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #e6e6e6;
}

.footer__domain {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--alt-text-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   MEDIA QUERIES (Responsive Design)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__visual {
    display: none;
  }
  
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .villa-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stack-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .dark-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
  
  .footer__col-brand {
    grid-column: span 3;
    max-width: 500px;
  }
  
  .cta-band {
    margin: 0 20px 80px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  
  /* --- MOBILE MENU OPEN STYLES --- */
  .header__nav.header__nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 20px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 999;
  }

  .header__nav.header__nav--open .nav-link,
  .header__nav.header__nav--open .nav-dropdown-item {
    color: var(--text-title, #1a1a1a) !important;
    width: 100%;
    text-align: left;
    background-color: transparent !important;
    justify-content: flex-start;
  }

  .header__nav.header__nav--open .nav-link:hover,
  .header__nav.header__nav--open .nav-link.active,
  .header__nav.header__nav--open .nav-dropdown-item:hover,
  .header__nav.header__nav--open .nav-dropdown-item.active {
    color: var(--brand-teal, #035553) !important;
    background-color: var(--brand-teal-light, #e6efef) !important;
  }

  .header__nav.header__nav--open .nav-dropdown {
    width: 100%;
  }

  .header__nav.header__nav--open .nav-dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 5px 0 10px 15px;
    margin-top: 0;
    width: 100%;
    min-width: unset;
    display: none;
  }

  .header__nav.header__nav--open .nav-dropdown:hover .nav-dropdown-menu,
  .header__nav.header__nav--open .nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
  }
  /* --- FIN MOBILE MENU OPEN STYLES --- */
  
  .menu-toggle {
    display: block;
  }
  
  .header__cta .btn {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 0;
  }
  
  .stats-bar {
    margin-top: -30px;
  }

  .stats-bar__inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1.5px solid rgba(3, 85, 83, 0.08);
  }
  
  .stat-item:nth-child(even) {
    border-left: 1.5px solid rgba(3, 85, 83, 0.08);
  }
  
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .skills-grid, .dark-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__col-brand {
    grid-column: span 1;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .section {
    padding: 80px 0;
  }
}

/* ==========================================================================
   SUBPAGE & COMPONENT ADDITIONS
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 60px;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-teal) 0%, var(--brand-orange) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--bg-secondary);
  border: 3px solid var(--brand-teal);
  border-radius: 50%;
  z-index: 2;
  transition: var(--trans);
}

.timeline-item:hover::before {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: scale(1.2);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-teal);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.timeline-item:hover .timeline-year {
  color: var(--brand-orange);
}

.timeline-title {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 800;
}

.timeline-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

.sport-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.sport-visual-card {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--alt-bg-primary) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--bd-color);
}

.sport-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sport-visual-card::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  z-index: 2;
  pointer-events: none;
}

.option-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 36px 30px;
  box-shadow: var(--glass-shadow);
  transition: var(--trans);
}

.option-box:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-bg-hover);
  transform: translateY(-4px) scale(1.01);
}

.option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.option-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.option-name {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.option-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--bd-color);
  color: var(--text-body);
  background: var(--bg-secondary);
  transition: var(--trans);
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-item {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1.5px solid var(--bd-color);
  background: var(--bg-secondary);
}

.portfolio-item__bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  transition: var(--trans);
}

.portfolio-item:hover .portfolio-item__bg {
  transform: scale(1.08);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 19, 18, 0.95) 0%, rgba(12, 19, 18, 0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  opacity: 0;
  transition: var(--trans);
}

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

.portfolio-item__title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.portfolio-item__type {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--brand-orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .sport-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CENTERED HERO SECTION
   ========================================================================== */
.hero--centered {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--alt-bg-primary) 0%, var(--brand-teal) 100%);
  color: var(--alt-text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 0 100px;
}

.hero--centered .hero__video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero--centered .desktop-only-video {
    display: none !important;
  }
}

.hero--centered .hero__decor-bg {
  background: linear-gradient(135deg, rgba(0, 56, 50, 0.25), rgba(0, 83, 96, 0.25));
  z-index: 1;
}

.hero--centered .hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  gap: 3px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero--centered .hero__title {
  color: var(--alt-text-title);
  font-size: clamp(48px, 6.5vw, 78px);
  margin-bottom: 24px;
}

.hero--centered .hero__sub {
  color: #ffffff;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.hero--centered .hero__actions {
  justify-content: center;
}

.hero-centered-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-centered-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.hero-centered-badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* Bottom centered stats/tag list */
.hero-centered-tagline {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-centered-tagline span {
  color: var(--brand-orange);
}

/* ==========================================================================
   3-COLUMN OVERVIEW SECTION (Waveyu Style 2)
   ========================================================================== */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.38fr);
  gap: 36px;
  align-items: center;
  margin-left: 101px;
}

.overview-section {
  padding: 104px 0 110px;
}

.overview-section__container {
  max-width: 1440px;
}

.overview-copy {
  position: relative;
  z-index: 2;
  padding-left: 4px;
}

.overview-copy .section-title {
  max-width: 570px;
  font-size: 60px;
  line-height: 0.98;
  margin-bottom: 30px;
  color: var(--brand-teal);
}

.overview-copy .section-desc {
  max-width: 490px;
  font-size: 17px;
  line-height: 1.7;
}

.overview-visual {
  position: relative;
  min-height: 650px;
  margin-right: -184px;
}

.overview-visual__image {
  position: absolute;
  right: calc(154px - max(0px, (100vw - 1440px) / 2));
  top: 50%;
  width: 100.33%;
  max-width: none;
  padding-top: 25px;
  padding-bottom: 25px;
  margin-top: -280px;
  margin-right: -90px;
  transform: translateY(-50%);
  filter: drop-shadow(0 24px 18px rgba(5, 55, 40, 0.12));
}
@media (min-width:1301px) and (max-width: 1520px) {
  .overview-visual__image {
    right: calc(-10px - max(0px, (100vw - 1440px) / 2)) !important;
  }
}
@media (min-width:1024px) and (max-width: 1300px) {
  .overview-visual__image {
    right: calc(35px - max(0px, (100vw - 1440px) / 2)) !important;
  }
}
@media (min-width:767px) and (max-width: 1023px) {
  .overview-visual__image {
    right: calc(35px - max(0px, (100vw - 1440px) / 2)) !important;
  }
}

.overview-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 40px;
}

.overview-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
}

.overview-check-item span {
  color: var(--brand-orange);
  font-size: 18px;
}

/* Center Column Card */
.overview-highlight-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1.5px solid var(--bd-color);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(3, 85, 83, 0.85) 0%, rgba(12, 19, 18, 0.9) 100%), url('./assets/images/highlight_sports.png') no-repeat center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  cursor: pointer;
  transition: var(--trans);
}

.overview-highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-orange);
  box-shadow: 0 20px 48px rgba(3, 85, 83, 0.1);
}

.overview-card-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
}

.overview-card-content {
  margin-top: auto;
}

.overview-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.overview-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

/* Right Column Sidebar Metadata List */
.overview-meta-list {
  margin-bottom: 30px;
  border-top: 1.5px solid var(--bd-color);
}

.overview-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--bd-color);
}

.overview-meta-label {
  font-size: 14px;
  color: var(--text-body);
}

.overview-meta-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
}

/* Testimonial Widget */
.overview-testimonial-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--trans);
}

.overview-testimonial-box:hover {
  border-color: var(--brand-orange);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-5px) scale(1.01);
}

.overview-testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bd-color);
  background: var(--brand-teal-light);
}

.overview-testimonial-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-title);
}

.overview-testimonial-company {
  font-size: 11px;
  color: var(--text-muted);
}

.overview-testimonial-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-body);
  font-style: italic;
}

.overview-testimonial-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-title);
  padding-top: 10px;
  border-top: 1px solid var(--bd-color);
  cursor: pointer;
  transition: var(--trans);
}

.overview-testimonial-link:hover {
  color: var(--brand-teal);
}

.overview-testimonial-link-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--trans);
}

.overview-testimonial-link:hover .overview-testimonial-link-arrow {
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* ==========================================================================
   FLEX HEADER & RESPONSIVE LAYOUTS
   ========================================================================== */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.section-header-flex .section-title,
.villa-layout .section-title,
.stack-layout .section-title {
  color: var(--brand-teal);
}

.section-header-flex .section-desc {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .overview-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: 0;
  }

  .overview-section {
    padding-bottom: 76px;
  }

  .overview-copy .section-title {
    max-width: 650px;
  }

  .overview-visual {
    min-height: 520px;
    margin: 0 -76px 0 -30px;
  }

  .overview-visual__image {
    right: auto;
    left: 0;
    width: 112%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .overview-section {
    padding: 74px 0 58px;
  }

  .overview-copy .section-title {
    font-size: clamp(42px, 13.2vw, 56px);
    line-height: 1;
  }

  .overview-copy .section-desc {
    font-size: 16px;
  }

  .overview-checklist {
    margin-bottom: 30px;
  }

  .overview-visual {
    min-height: 260px;
    margin: 28px -30px 0;
  }

  .overview-visual__image {
    right: auto;
    left: -7%;
    width: 118%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   PAGE: NOSOTROS (REDISEÑO EDITORIAL & MINIMALISTA)
   ========================================================================== */

.ns-hero {
  background-color: var(--bg-secondary);
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--bd-color);
}

.ns-hero-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(3, 85, 83, 0.04) 0%, transparent 60%);
  z-index: 1;
}

.ns-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ns-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ns-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange-lt);
  border: 1px solid rgba(243, 127, 32, 0.15);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.ns-hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.ns-hero__badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.ns-hero__title {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-title);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.ns-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.ns-hero__sub {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 580px;
}

.ns-hero__visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  background: var(--brand-teal-light);
}

.ns-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-hero__visual:hover img {
  transform: scale(1.04);
}

/* Sections & Grid Layouts */
.ns-section {
  padding: 120px 0;
  position: relative;
}

.ns-section--white {
  background-color: var(--bg-secondary);
}

.ns-section--tinted {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--bd-color);
  border-bottom: 1px solid var(--bd-color);
}

.ns-section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.ns-section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.ns-section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

/* Editorial 2-Column Intro */
.ns-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.ns-intro__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-title);
  letter-spacing: -0.03em;
}

.ns-intro__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.ns-intro-visual {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  aspect-ratio: 16 / 10;
  background: var(--bg-primary);
}

.ns-intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-intro-visual:hover img {
  transform: scale(1.03);
}


.ns-quote-card {
  background: var(--brand-teal-light);
  border-radius: var(--r-md);
  padding: 40px;
  position: relative;
  border-left: 4px solid var(--brand-teal);
  box-shadow: 0 4px 20px rgba(3, 85, 83, 0.02);
}

.ns-quote-icon {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.1;
  color: rgba(3, 85, 83, 0.1);
  position: absolute;
  top: 40px;
  left: 20px;
  user-select: none;
}

.ns-quote-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
  color: var(--brand-teal);
  position: relative;
  z-index: 2;
}

/* Metrics row */
.ns-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--bd-color);
}

.ns-metric-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ns-metric-val {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-teal);
  letter-spacing: -0.04em;
}

.ns-metric-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Timeline Cards */
.ns-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.ns-timeline-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--r-md);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--trans);
}

.ns-timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(3, 85, 83, 0.04);
  border-color: var(--brand-orange);
}

.ns-timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.ns-timeline-card__badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-teal);
  background: var(--brand-teal-light);
  padding: 5px 12px;
  border-radius: 100px;
}

.ns-timeline-card__step {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.ns-timeline-card__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 14px;
  line-height: 1.35;
}

.ns-timeline-card__text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
}

/* Values Grid */
.ns-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ns-value-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--r-md);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}

.ns-value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(3, 85, 83, 0.04);
  border-color: var(--brand-orange);
}

.ns-value-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.ns-value-card__badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
  background: var(--brand-orange-lt);
  padding: 5px 12px;
  border-radius: 100px;
}

.ns-value-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  background: var(--brand-teal-light);
  border-radius: 50%;
  padding: 10px;
  transition: var(--trans);
}

.ns-value-card:hover .ns-value-card__icon {
  color: #FFFFFF;
  background: var(--brand-teal);
}

.ns-value-card__title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 14px;
}

.ns-value-card__desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 1200px) {
  .ns-hero-grid {
    gap: 40px;
  }
  .ns-intro-grid {
    gap: 40px;
  }
  .ns-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .ns-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .ns-hero__content {
    align-items: flex-start;
  }
  .ns-hero__visual {
    max-width: 600px;
    margin: 0 auto;
  }
  .ns-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ns-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ns-section {
    padding: 80px 0;
  }
  .ns-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
  }
  .ns-timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ns-hero {
    padding: 60px 0 80px 0;
  }
  .ns-values-grid {
    grid-template-columns: 1fr;
  }
  .ns-timeline-card, .ns-value-card {
    padding: 28px;
  }
  .ns-quote-card {
    padding: 30px;
  }
}

/* ==========================================================================
   GLOBAL SUBPAGE DESIGN LANGUAGE OVERRIDES (EXCEPT HOME PAGE)
   ========================================================================== */

/* Subpage Hero Blocks (Unified Architecture) */
.page:not(#page-home) .page-hero,
.page:not(#page-home) .sport-hero,
.page:not(#page-home) .hero {
  padding: var(--section-pad-y) 0 !important;
  min-height: auto !important;
  background-color: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.page:not(#page-home) .page-hero__container,
.page:not(#page-home) .hero__container,
.page:not(#page-home) .sport-hero > .container {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1.2fr) !important;
  gap: var(--gap-xl) !important;
  align-items: center !important;
}

.page:not(#page-home) .page-hero__content,
.page:not(#page-home) .sport-hero > :first-child,
.page:not(#page-home) .subpage-hero__copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  max-width: 620px;
}

/* Portfolio Override - Keep Centered */
.page#page-portafolio .page-hero__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.page#page-portafolio .page-hero__content {
  align-items: center !important;
  text-align: center !important;
  max-width: 900px !important;
}

/* Typography Unified */
.page:not(#page-home) .page-hero__title,
.page:not(#page-home) .sport-hero .section-title,
.page:not(#page-home) .hero .hero__title {
  font-size: calc(var(--h1-size) * 0.9) !important;
  line-height: 1.05 !important;
  margin-bottom: var(--gap-md) !important;
}

.page:not(#page-home) .page-hero__title em,
.page:not(#page-home) .sport-hero .section-title em,
.page:not(#page-home) .hero .hero__title em {
  color: var(--text-muted) !important;
}

.page:not(#page-home) .page-hero__sub,
.page:not(#page-home) .sport-hero .section-desc,
.page:not(#page-home) .hero .hero__sub {
  font-size: var(--p-size-large) !important;
  line-height: 1.6 !important;
  max-width: 580px !important;
  margin-bottom: var(--gap-lg) !important;
}

/* Hero Images Unified */
.page:not(#page-home) .page-hero__visual,
.page:not(#page-home) .sport-visual-card,
.page:not(#page-home) .subpage-hero__visual {
  position: relative !important;
  width: calc(100% + max(30px, calc((100vw - 1240px) / 2 + 30px))) !important;
  margin-right: calc(max(30px, calc((100vw - 1240px) / 2 + 30px)) * -1) !important;
  min-height: 540px !important;
  border-radius: 68px 0 0 68px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  background-color: rgba(3, 85, 83, 0.05) !important; /* Placeholder background for missing images */
}

.page:not(#page-home) .page-hero__visual img,
.page:not(#page-home) .sport-visual-card img,
.page:not(#page-home) .subpage-hero__visual img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Hide original decors to keep it clean */
.page:not(#page-home) .sport-visual-card::before,
.page:not(#page-home) .sport-hero::after,
.page:not(#page-home) .page-hero__decor,
.page:not(#page-home) > .hero .hero__decor-bg {
  display: none !important;
}


/* ==========================================================================
   SPORTS HERO LAYERED COMPOSITION
   ========================================================================== */
.sport-hero-composition {
  position: relative;
  width: calc(100% + max(30px, calc((100vw - 1240px) / 2 + 30px)));
  margin-right: calc(max(30px, calc((100vw - 1240px) / 2 + 30px)) * -1);
  padding-left: 80px; /* Fixed distance from the left edge of the grid cell! */
  min-height: 540px;
  display: flex;
  align-items: stretch; /* Stretches the child to fill the height */
  z-index: 1;
}

.sport-comp-bg {
  position: relative; /* Not absolute! */
  width: 100%;
  border-radius: 68px 0 0 68px;
  overflow: hidden;
  box-shadow: none;
  background-color: var(--glass-bg);
  z-index: 1;
}

.sport-comp-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sport-comp-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
}

.sport-comp-circle--orange {
  width: 320px;
  height: 320px;
  background-color: var(--brand-orange);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sport-comp-circle--green {
  width: 220px;
  height: 220px;
  background-color: var(--brand-teal);
  left: 100px;
  bottom: -40px;
}

.sport-comp-player {
  position: absolute;
  left: -80px; /* Overlaps outside */
  bottom: 0;
  height: 110%; /* Taller than container to break out */
  z-index: 3;
  filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.15));
  display: flex;
  align-items: flex-end;
}

.sport-comp-player img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .sport-hero-composition {
    width: 100%;
    margin-right: 0;
    padding-left: 0;
    justify-content: center;
    min-height: 400px;
    margin-top: 40px;
  }
  .sport-comp-bg {
    width: 100%;
    border-radius: var(--r-lg);
  }
  .sport-comp-circle--orange {
    left: -20px;
  }
  .sport-comp-circle--green {
    left: 40px;
  }
  .sport-comp-player {
    left: -40px;
    height: 115%;
  }
}

@media (max-width: 576px) {
  .sport-hero-composition {
    min-height: 350px;
  }
  .sport-comp-circle--orange {
    width: 220px;
    height: 220px;
    left: -10px;
  }
  .sport-comp-circle--green {
    width: 150px;
    height: 150px;
    left: 20px;
    bottom: -20px;
  }
  .sport-comp-player {
    left: -20px;
    height: 110%;
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .page:not(#page-home) .page-hero__container,
  .page:not(#page-home) .hero__container,
  .page:not(#page-home) .sport-hero > .container {
    grid-template-columns: 1fr !important;
    gap: var(--gap-lg) !important;
  }
  
  .page:not(#page-home) .page-hero,
  .page:not(#page-home) .sport-hero,
  .page:not(#page-home) .hero {
    padding: var(--section-pad-y-mob) 0 !important;
  }
}

@media (max-width: 576px) {
  .page:not(#page-home) .page-hero__visual,
  .page:not(#page-home) .sport-visual-card,
  .page:not(#page-home) .subpage-hero__visual {
    width: 100% !important;
    margin-right: 0 !important;
    min-height: 300px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--r-lg) !important;
  }
}

/* Option Box Brochure Column Style */
.page:not(#page-home) .option-box {
  border-top-width: 3px !important;
  border-top-style: solid !important;
  border-top-color: var(--accent-color, var(--brand-teal)) !important;
}

.page:not(#page-home) .option-box:nth-child(4n+1) {
  --accent-color: var(--brand-orange);
}
.page:not(#page-home) .option-box:nth-child(4n+2) {
  --accent-color: var(--brand-teal);
}
.page:not(#page-home) .option-box:nth-child(4n+3) {
  --accent-color: var(--brand-gold);
}
.page:not(#page-home) .option-box:nth-child(4n+4) {
  --accent-color: var(--brand-light-green);
}

/* Auto-align SVG icons and key badges to the card's accent color */
.page:not(#page-home) .option-box svg {
  color: var(--accent-color, var(--brand-teal)) !important;
}

#page-servicios .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 38px !important;
}

#page-servicios .services-grid .option-box {
  display: flex !important;
  flex-direction: column !important;
  padding: 26px 26px 30px !important;
  min-height: 620px;
}

#page-servicios .services-grid .service-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--brand-teal-light);
  box-shadow: 0 22px 50px rgba(5, 55, 40, 0.1);
  margin: 0 0 26px;
}

#page-servicios .services-grid .service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#page-servicios .services-grid .option-header {
  margin-bottom: 18px;
}

#page-servicios .services-grid .option-name {
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.05 !important;
  margin-bottom: 0 !important;
}

#page-servicios .services-grid .option-desc {
  max-width: 95%;
  font-size: 16px !important;
  line-height: 1.72 !important;
  color: var(--text-body) !important;
  margin-bottom: 22px !important;
}

#page-servicios .services-grid ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin: auto 0 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
}

#page-servicios .services-grid li {
  position: relative;
  padding: 14px 16px 14px 34px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(3, 85, 83, 0.06);
  color: var(--text-title);
  font-weight: 600;
}

#page-servicios .services-grid li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--accent-color, var(--brand-teal));
  font-weight: 900;
}

@media (max-width: 1024px) {
  #page-servicios .services-grid .option-box {
    min-height: auto;
  }

  #page-servicios .services-grid .service-card__media {
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  #page-servicios .services-grid {
    grid-template-columns: 1fr !important;
  }

  #page-servicios .services-grid ul {
    grid-template-columns: 1fr;
  }
}

/* Section Dark Green Override - Mirroring Brochure Accessories Layout */
.section--dark-green {
  background-color: var(--brand-dark-green) !important;
  color: var(--alt-text-body) !important;
  position: relative;
  overflow: hidden;
}

.section--dark-green h1,
.section--dark-green h2,
.section--dark-green h3,
.section--dark-green h4,
.section--dark-green h5,
.section--dark-green h6,
.section--dark-green .section-title,
.section--dark-green .card__title {
  color: var(--alt-text-title) !important;
}

.section--dark-green .section-desc {
  color: var(--alt-text-body) !important;
}

.section--dark-green .option-box {
  background: var(--alt-bg-secondary) !important;
  border-color: var(--alt-bd-color) !important;
  box-shadow: none !important;
  color: var(--alt-text-body) !important;
}

.section--dark-green .option-box:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.section--dark-green .option-box .btn-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--alt-text-title) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   CINEMATIC HERO MOTION SYSTEM (GSAP + SCROLLTRIGGER)
   ========================================================================== */

/* FOUT Prevention (Flash of Unstyled Content) */
.motion-ready:not(.motion-initialized) .motion-hero-media {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.04);
}
.motion-ready:not(.motion-initialized) .motion-hero-badge {
  opacity: 0;
  filter: blur(8px);
}
.motion-ready:not(.motion-initialized) .motion-hero-title,
.motion-ready:not(.motion-initialized) .motion-page-hero-title {
  opacity: 0;
}
.motion-ready:not(.motion-initialized) .motion-page-hero-badge {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(15px);
}
.motion-ready:not(.motion-initialized) .motion-page-hero-sub {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(15px);
}
.motion-ready:not(.motion-initialized) .motion-page-hero-visual {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(40px) scale(1.04);
}
.motion-ready:not(.motion-initialized) h1:not(.motion-hero-title):not(.motion-page-hero-title),
.motion-ready:not(.motion-initialized) h2,
.motion-ready:not(.motion-initialized) .section-title,
.motion-ready:not(.motion-initialized) .ns-section-title {
  opacity: 0;
}
.motion-ready:not(.motion-initialized) .motion-text-reveal {
  opacity: 0;
}
.motion-ready:not(.motion-initialized) .motion-image-left img {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(40px) scale(1.03);
}
.motion-ready:not(.motion-initialized) .motion-image-right img {
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-40px) scale(1.03);
}
.motion-ready:not(.motion-initialized) .motion-card-reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(16px);
}
.motion-ready:not(.motion-initialized) .motion-icon-response {
  opacity: 0;
}
.motion-ready:not(.motion-initialized) .motion-hero-sub {
  opacity: 0;
  filter: blur(8px);
}
.motion-ready:not(.motion-initialized) .motion-hero-actions {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
}
.motion-ready:not(.motion-initialized) .motion-hero-tagline {
  opacity: 0;
}


/* Line and Word splitting masks */
.motion-line-wrapper {
  overflow: hidden;
  position: relative;
  display: block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.motion-line-reveal {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.word-reveal {
  display: inline-block;
  overflow: visible;
  padding: 0.04em 0;
  margin: -0.04em 0;
  white-space: pre-wrap;
  will-change: transform, opacity, filter;
}

.char-reveal {
  display: inline-block;
  white-space: pre-wrap;
  will-change: transform, opacity, filter;
}

/* FOUT Prevention (Flash of Unstyled Content) navigation header */
.motion-ready:not(.motion-initialized) #main-header {
  opacity: 0;
}

/* Reduced Motion overrides */
@media (prefers-reduced-motion: reduce) {
  .motion-ready:not(.motion-initialized) .motion-hero-bg,
  .motion-ready:not(.motion-initialized) .motion-hero-badge,
  .motion-ready:not(.motion-initialized) .motion-hero-title,
  .motion-ready:not(.motion-initialized) h1:not(.motion-hero-title),
  .motion-ready:not(.motion-initialized) h2,
  .motion-ready:not(.motion-initialized) .section-title,
  .motion-ready:not(.motion-initialized) .ns-section-title,
  .motion-ready:not(.motion-initialized) .motion-text-reveal,
  .motion-ready:not(.motion-initialized) .motion-image-left,
  .motion-ready:not(.motion-initialized) .motion-image-right,
  .motion-ready:not(.motion-initialized) .motion-card-reveal,
  .motion-ready:not(.motion-initialized) .motion-icon-response,
  .motion-ready:not(.motion-initialized) .motion-hero-sub,
  .motion-ready:not(.motion-initialized) .motion-hero-actions,
  .motion-ready:not(.motion-initialized) .motion-hero-tagline,
  .motion-ready:not(.motion-initialized) .stats-bar,
  .motion-ready:not(.motion-initialized) #main-header {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   PURE WHITE SURFACE PAGES BACKGROUND
   ========================================================================== */
#page-padel,
#page-tenis,
#page-futbol,
#page-putting,
#page-basket,
#page-skate,
#page-hockey,
#page-padel .section,
#page-tenis .section,
#page-futbol .section,
#page-putting .section,
#page-basket .section,
#page-skate .section,
#page-hockey .section,
#page-padel .section--tinted,
#page-tenis .section--tinted,
#page-futbol .section--tinted,
#page-putting .section--tinted,
#page-basket .section--tinted,
#page-skate .section--tinted,
#page-hockey .section--tinted {
  background: var(--surface-white) !important;
  background-color: var(--surface-white) !important;
  background-image: none !important;
}

#page-padel .glass-glow,
#page-tenis .glass-glow,
#page-futbol .glass-glow,
#page-putting .glass-glow,
#page-basket .glass-glow,
#page-skate .glass-glow,
#page-hockey .glass-glow {
  display: none !important;
}

/* ==========================================================================
   SURFACE HERO ABSOLUTE IMAGES
   ========================================================================== */
#page-padel .page-hero__container,
#page-tenis .page-hero__container,
#page-futbol .page-hero__container,
#page-putting .page-hero__container,
#page-basket .page-hero__container,
#page-skate .page-hero__container,
#page-hockey .page-hero__container {
  max-width: 1440px !important;
  min-height: 650px !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.42fr) !important;
  gap: 28px !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#page-padel .page-hero,
#page-tenis .page-hero,
#page-futbol .page-hero,
#page-putting .page-hero,
#page-basket .page-hero,
#page-skate .page-hero,
#page-hockey .page-hero,
#page-padel .page-hero__container,
#page-tenis .page-hero__container,
#page-futbol .page-hero__container,
#page-putting .page-hero__container,
#page-basket .page-hero__container,
#page-skate .page-hero__container,
#page-hockey .page-hero__container {
  overflow: visible !important;
}

.surface-hero-image {
  position: absolute !important;
  right: calc(-378px - max(0px, (100vw - 1540px) / 2)) !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  width: min(1280px, 78vw) !important;
  height: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin-top: 50px !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: translateY(-50%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
@media (min-width:1024px) and (max-width: 1300px) {
  .surface-hero-image {
    right: calc(-318px - max(0px, (100vw - 1540px) / 2)) !important;
  }
}
@media (min-width:767px) and (max-width: 1023px) {
  .surface-hero-image {
    right: calc(-280px - max(0px, (100vw - 1540px) / 2)) !important;
  }
}

#page-padel .page-hero__content,
#page-tenis .page-hero__content,
#page-futbol .page-hero__content,
#page-putting .page-hero__content,
#page-basket .page-hero__content,
#page-skate .page-hero__content,
#page-hockey .page-hero__content {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 1024px) {
  #page-padel .page-hero__container,
  #page-tenis .page-hero__container,
  #page-futbol .page-hero__container,
  #page-putting .page-hero__container,
  #page-basket .page-hero__container,
  #page-skate .page-hero__container,
  #page-hockey .page-hero__container {
    min-height: auto !important;
  }

  .surface-hero-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 1117px !important;
    transform: none !important;
  }
}

/* ==========================================================================
   MOBILE MASSIVE OVERHAUL (Requested via Audit)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --h1-size: clamp(2.6rem, 12vw, 4.8rem) !important;
    --h2-size: clamp(2rem, 9vw, 3.4rem) !important;
    --h3-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    --p-size: clamp(0.95rem, 3.8vw, 1.08rem) !important;
    --p-size-large: clamp(1.05rem, 4vw, 1.2rem) !important;
    --section-pad-y: 80px !important;
  }

  html, body {
    overflow-x: clip !important;
    width: 100vw !important;
    max-width: 100% !important;
  }

  .page-hero__visual,
  .sport-visual-card,
  .subpage-hero__visual,
  .surface-hero-image,
  .ns-hero__visual {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: var(--r-md) !important;
    min-height: 300px !important;
    height: auto !important;
  }
  
  .page-hero__visual img,
  .sport-visual-card img,
  .subpage-hero__visual img,
  .ns-hero__visual img {
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
  }

  .page-hero__container,
  .sport-hero__container,
  .ns-hero__container,
  .hero__container {
    grid-template-columns: 1fr !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
  
  .page-hero__content,
  .ns-hero__content {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    max-width: 100% !important;
  }

  .ns-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .contact-info {
    padding: 30px !important;
  }

  h1, h2, h3, .section-title, .page-hero__title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .page:not(#page-home) .page-hero__title,
  .page:not(#page-home) .sport-hero .section-title,
  .page:not(#page-home) .hero .hero__title {
    font-size: var(--h1-size) !important;
    line-height: 1.05 !important;
  }
  
  .page-hero__sub {
    font-size: var(--p-size) !important;
  }
  
  .hero--centered {
    padding-top: 100px !important;
    min-height: 100svh !important;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .header__cta .btn {
    width: auto !important;
  }
  .stats-bar__inner {
    grid-template-columns: 1fr !important;
  }
  .stat-item {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1.5px solid rgba(3, 85, 83, 0.08) !important;
  }
  .stat-item:last-child {
    border-bottom: none !important;
  }
}

/* ==========================================================================
   MOBILE QA PATCH - scoped to mobile only
   ========================================================================== */
@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  body {
    background: var(--bg-primary);
  }

  .page,
  .section,
  .hero,
  .page-hero,
  .ns-section,
  .overview-section,
  .section--dark,
  .section--dark-green {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .glass-glow,
  .global-surface-glow,
  .page-hero__decor,
  .ns-hero-decor {
    max-width: 100vw !important;
    overflow: hidden !important;
    pointer-events: none;
  }

  .glass-glow {
    opacity: 0.55;
    filter: blur(90px);
    -webkit-filter: blur(90px);
  }

  .header {
    height: 76px;
  }

  .header__inner {
    margin-top: 0;
  }

  .header__logo img {
    height: 30px !important;
    max-width: 138px;
  }

  .header__cta .btn {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(5, 55, 40, 0.12);
    color: var(--text-title);
    line-height: 1;
  }

  .header--transparent .menu-toggle {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .header__nav--open {
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 18px 20px 24px !important;
    gap: 8px !important;
    z-index: 1001;
  }

  .header__nav--open .nav-link,
  .header--transparent .header__nav--open .nav-link {
    color: var(--text-title) !important;
    background: transparent;
    width: 100%;
    padding: 13px 16px;
  }

  .header__nav--open .nav-link--mobile-contact {
    display: block;
  }

  .header__nav--open .nav-link:hover,
  .header__nav--open .nav-link.active,
  .header--transparent .header__nav--open .nav-link:hover,
  .header--transparent .header__nav--open .nav-link.active {
    color: var(--brand-teal) !important;
    background: var(--brand-teal-light);
  }

  .header__nav--open .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .header__nav--open .nav-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 6px;
    padding: 8px !important;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(3, 85, 83, 0.07) !important;
  }

  .header__nav--open .nav-dropdown-item,
  .header--transparent .header__nav--open .nav-dropdown-item {
    display: flex !important;
    color: var(--text-title) !important;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .hero--centered {
    min-height: 100svh !important;
    padding: 112px 0 72px !important;
  }

  .hero--centered .hero__container {
    max-width: 100% !important;
    gap: 0 !important;
    padding-top: 0 !important;
  }

  .hero-centered-badge {
    max-width: 100%;
    margin-bottom: 26px;
    padding: 7px 12px;
  }

  .hero-centered-badge-text {
    font-size: clamp(10px, 2.8vw, 11px);
    letter-spacing: 0.045em;
    white-space: normal;
  }

  .hero--centered .hero__title,
  .hero-title {
    font-size: clamp(42px, 12vw, 58px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em;
    margin-bottom: 28px !important;
    max-width: 100%;
  }

  .hero-title__line {
    flex-wrap: wrap;
    column-gap: 0.14em;
    row-gap: 0;
  }

  .hero-title__line--mixed {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .hero-title__word {
    line-height: 0.98;
  }

  .hero-title__word--em {
    line-height: 1.08;
    padding-bottom: 0.03em;
  }

  .hero--centered .hero__sub {
    max-width: 100% !important;
    font-size: clamp(15.5px, 4vw, 17px) !important;
    line-height: 1.58 !important;
    margin-bottom: 34px !important;
  }

  .hero__actions {
    width: 100%;
    gap: 12px !important;
  }

  .hero__actions .btn,
  .motion-hero-actions .btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .btn .word-reveal,
  .filter-btn .word-reveal,
  .form-submit .word-reveal {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-centered-tagline {
    margin-top: 32px !important;
    font-size: 12px;
    line-height: 1.45;
  }

  .stats-bar {
    margin-top: -22px !important;
  }

  .stats-bar__inner {
    grid-template-columns: 1fr 1fr !important;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78) !important;
  }

  .stat-item {
    min-width: 0;
    padding: 26px 14px !important;
  }

  .stat-num {
    font-size: clamp(34px, 11vw, 46px) !important;
  }

  .stat-label {
    font-size: 10px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .page:not(#page-home) .page-hero,
  .page:not(#page-home) .hero,
  .page:not(#page-home) .sport-hero,
  .ns-hero {
    min-height: auto !important;
    padding: 56px 0 58px !important;
  }

  .page:not(#page-home) .page-hero__container,
  .page:not(#page-home) .hero__container,
  .page:not(#page-home) .sport-hero > .container,
  .ns-hero-grid,
  #page-padel .page-hero__container,
  #page-tenis .page-hero__container,
  #page-futbol .page-hero__container,
  #page-putting .page-hero__container,
  #page-basket .page-hero__container,
  #page-skate .page-hero__container,
  #page-hockey .page-hero__container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page:not(#page-home) .page-hero__content,
  .page:not(#page-home) .subpage-hero__copy,
  .ns-hero__content {
    align-items: flex-start !important;
    text-align: left !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #page-portafolio .page-hero__content,
  #page-contacto .page-hero__content {
    align-items: center !important;
    text-align: center !important;
  }

  .page:not(#page-home) .page-hero__title,
  .page:not(#page-home) .sport-hero .section-title,
  .page:not(#page-home) .hero .hero__title,
  .ns-hero__title {
    font-size: clamp(38px, 10.6vw, 52px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.028em;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .page-hero__title em,
  .ns-hero__title em,
  .section-title em {
    line-height: 1.1;
  }

  .page-hero__sub,
  .ns-hero__sub,
  .section-desc,
  .option-desc,
  .card__desc,
  .stack-card-desc,
  .ns-timeline-card__text,
  .ns-value-card__desc {
    font-size: clamp(15px, 3.9vw, 17px) !important;
    line-height: 1.58 !important;
    max-width: 100% !important;
  }

  .section {
    padding: 72px 0 !important;
  }

  .section-title,
  .ns-section-title,
  .ns-intro__title {
    font-size: clamp(32px, 9.4vw, 46px) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.026em;
  }

  .section-label,
  .page-hero__badge,
  .ns-hero__badge {
    max-width: 100%;
    line-height: 1.25;
    margin-bottom: 18px !important;
  }

  .page:not(#page-home) .page-hero__visual,
  .page:not(#page-home) .sport-visual-card,
  .page:not(#page-home) .subpage-hero__visual,
  .ns-hero__visual {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
    margin: 4px 0 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .surface-hero-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    margin: 4px 0 0 !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 42px rgba(5, 55, 40, 0.1) !important;
  }

  .page:not(#page-home) .page-hero__visual img,
  .page:not(#page-home) .sport-visual-card img,
  .page:not(#page-home) .subpage-hero__visual img,
  .ns-hero__visual img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }

  .overview-layout,
  .villa-layout,
  .stack-layout,
  .contact-layout,
  .ns-intro-grid,
  .ns-metrics-grid,
  .ns-timeline-grid,
  .ns-values-grid,
  .partners-grid,
  .skills-grid,
  .dark-grid,
  .portfolio-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    margin-left: 0 !important;
  }

  .overview-visual {
    min-height: 280px !important;
    margin: 20px 0 0 !important;
    overflow: hidden;
    border-radius: 24px;
  }

  .overview-visual__image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    object-fit: contain;
  }

  .skill-card,
  .stack-card,
  .option-box,
  .ns-timeline-card,
  .ns-value-card,
  .partner-logo-box,
  .contact-card,
  .form-box {
    min-width: 0 !important;
    padding: 24px !important;
    border-radius: 20px !important;
  }

  .skill-card {
    aspect-ratio: auto !important;
    min-height: 250px;
  }

  .stack-card {
    align-items: flex-start;
    gap: 18px;
  }

  .portfolio-filters {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 10px;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .portfolio-item {
    aspect-ratio: 4 / 3;
  }

  .portfolio-item__overlay {
    opacity: 1;
    padding: 28px 22px;
  }

  .contact-layout,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .form-box {
    padding: 28px 20px !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    min-width: 0 !important;
  }

  .form-submit {
    width: 100%;
    min-height: 58px;
    text-align: center;
  }

  .desktop-only {
    display: none !important;
  }

  .motion-ready:not(.motion-initialized) .motion-page-hero-visual,
  .motion-ready:not(.motion-initialized) .motion-image-left img,
  .motion-ready:not(.motion-initialized) .motion-image-right img {
    transform: translateY(12px) scale(1.01);
    filter: blur(4px);
  }
}

@media (max-width: 480px) {
  .hero--centered .hero__title,
  .hero-title {
    font-size: clamp(40px, 12.4vw, 50px) !important;
  }

  .page:not(#page-home) .page-hero__title,
  .ns-hero__title {
    font-size: clamp(35px, 10.8vw, 46px) !important;
  }

  .stats-bar__inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .stat-item {
    padding: 24px 12px !important;
  }

  .section {
    padding: 64px 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready:not(.motion-initialized) .motion-hero-media,
  .motion-ready:not(.motion-initialized) .motion-hero-badge,
  .motion-ready:not(.motion-initialized) .motion-hero-title,
  .motion-ready:not(.motion-initialized) .motion-page-hero-title,
  .motion-ready:not(.motion-initialized) .motion-page-hero-badge,
  .motion-ready:not(.motion-initialized) .motion-page-hero-sub,
  .motion-ready:not(.motion-initialized) .motion-page-hero-visual,
  .motion-ready:not(.motion-initialized) .motion-text-reveal,
  .motion-ready:not(.motion-initialized) .motion-card-reveal,
  .motion-ready:not(.motion-initialized) .motion-hero-sub,
  .motion-ready:not(.motion-initialized) .motion-hero-actions,
  .motion-ready:not(.motion-initialized) .motion-hero-tagline {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Mobile-only requested spacing adjustments */
@media (max-width: 768px) {
  .page:not(#page-home) {
    padding-top: 109px !important; /* 76px mobile header + 33px requested top */
  }

  #page-home .overview-section {
    padding-bottom: 36px !important;
  }

  #page-home .overview-section + .section {
    padding-top: 36px !important;
  }

  #page-home .section-header-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    margin-bottom: 34px !important;
  }

  #page-home .section-header-flex > div {
    width: 100%;
  }

  #page-home .section-header-flex .section-title {
    margin-bottom: 0 !important;
  }

  #page-home .section-header-flex .btn {
    width: auto !important;
    min-width: 190px;
    align-self: flex-start;
  }

  #page-padel .surface-hero-image,
  #page-tenis .surface-hero-image,
  #page-futbol .surface-hero-image,
  #page-putting .surface-hero-image,
  #page-basket .surface-hero-image,
  #page-skate .surface-hero-image,
  #page-hockey .surface-hero-image {
    object-position: left center !important;
  }

  .btn .btn-arrow-circle,
  .portfolio-card__btn-arrow,
  .overview-testimonial-link-arrow,
  .btn [class*="arrow"],
  .button [class*="arrow"] {
    display: none !important;
  }

  .btn,
  .button,
  .form-submit,
  .portfolio-card__btn,
  .overview-testimonial-link {
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
  }

  .btn::after,
  .button::after,
  .form-submit::after,
  .portfolio-card__btn::after,
  .overview-testimonial-link::after {
    content: none !important;
  }
}

/* ==========================================================================
   DYNAMIC PORTFOLIO GALLERY (ADDED)
   ========================================================================== */

/* Toolbar */
.portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#portfolio-results-text {
  font-size: 14px;
  color: var(--text-muted);
}
.portfolio-toolbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Sort Dropdown */
.portfolio-select {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-title);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none; /* simple styling */
}
.portfolio-select option {
  background: var(--bg-dark);
  color: var(--text-title);
}

/* View Mode Toggles */
.portfolio-view-toggles {
  display: flex;
  gap: 8px;
}
.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-mode-btn:hover {
  color: var(--text-title);
  background: var(--bg-card);
}
.view-mode-btn.active {
  color: var(--text-title);
  background: var(--bg-card);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Pill Counts */
.filter-count {
  font-size: 11px;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  opacity: 0.8;
}
.filter-btn.active .filter-count {
  background: rgba(0,0,0,0.2);
}

/* Mobile Scrollable Filters */
@media (max-width: 768px) {
  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .portfolio-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .portfolio-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Dynamic Grid */
.portfolio-grid-dynamic {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

/* Grid Layouts */
.view-gallery {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media(min-width: 992px) {
  .view-gallery { grid-template-columns: repeat(3, 1fr); }
  .view-masonry { grid-template-columns: repeat(2, 1fr); }
}

.view-masonry .portfolio-item {
  height: 400px; /* larger for masonry feel */
}
.view-masonry .portfolio-item__title {
  font-size: 24px;
}

/* List Layout */
.view-list {
  grid-template-columns: 1fr;
}
@media(min-width: 768px) {
  .view-list .portfolio-item {
    height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .view-list .portfolio-item__bg {
    position: relative;
    width: 300px;
    height: 100%;
    flex-shrink: 0;
  }
  .view-list .portfolio-item__overlay {
    position: relative;
    background: transparent;
    padding: 24px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .view-list .portfolio-item__overlay::before {
    display: none; /* remove gradient */
  }
}

/* Dynamic Card Additions */
.portfolio-item.dynamic-card {
  cursor: pointer;
  transition: transform 0.4s ease;
}
.portfolio-item.dynamic-card:hover {
  transform: translateY(-4px);
}


/* Lightbox Modal */
.ds-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ds-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.ds-lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  padding: 8px;
}
.ds-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.ds-lightbox__nav:hover { opacity: 1; }
.ds-lightbox__nav--prev { left: 16px; }
.ds-lightbox__nav--next { right: 16px; }

.ds-lightbox__content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ds-lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  object-fit: contain;
  border-radius: 8px;
}
.ds-lightbox__info {
  margin-top: 20px;
  text-align: center;
  color: #fff;
}
.ds-lightbox__title {
  font-size: 20px;
  margin-bottom: 4px;
  color: #ffffff !important;
}
.ds-lightbox__counter {
  font-size: 14px;
  color: rgba(255,255,255,0.8) !important;
}

@media(max-width: 768px) {
  .ds-lightbox__nav { padding: 4px; }
  .ds-lightbox__nav svg { width: 32px; height: 32px; }
  .ds-lightbox__img { max-height: calc(100% - 80px); }
}

/* ==========================================================================
   PROJECT FILTERS LAYOUT FIX (ADDED)
   ========================================================================== */

.project-filters {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Space between the two rows */
  width: 100%;
}

.project-filters-row {
  display: flex;
  align-items: center;
  justify-content: center; /* Centered in desktop */
  flex-wrap: nowrap;       /* STRICTLY no wrapping */
  gap: 8px;                /* Reduced gap to fit */
  width: 100%;
}

.project-filters-row .filter-btn {
  /* Slightly smaller padding and font size to ensure they fit in one row */
  padding: 8px 16px;
  font-size: 13px;
  flex-shrink: 0; /* Important: don't squish buttons too much, rather trigger scroll if forced */
}

/* Mobile Scrollable Filters Override */
@media (max-width: 992px) {
  .project-filters-row {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
  }
  .project-filters-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
}

/* ==========================================================================
   LOGO MARQUEE
   ========================================================================== */
.logo-marquee-section {
  background: transparent;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 55px; /* Separación vertical entre filas de 55px a 80px */
}

.logo-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

/* Row tracks */
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 80px; /* Mucho aire entre logos */
  padding-right: 80px; /* Margen final para loop infinito */
  width: max-content;
}

/* Las dos filas van en distintas direcciones o la misma pero la idea es loop continuo */
.logo-marquee--left .logo-marquee__track {
  animation: marqueeLeft 35s linear infinite;
}
.logo-marquee--right .logo-marquee__track {
  animation: marqueeRight 35s linear infinite;
}

/* Logos */
.marquee-logo {
  max-height: 90px;
  max-width: 329px;
  object-fit: contain;
  filter: brightness(1);
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .logo-marquee-section {
    padding: 60px 0;
    gap: 40px;
  }
  .logo-marquee__track {
    gap: 50px;
    padding-right: 50px;
  }
  .logo-marquee--left .logo-marquee__track {
    animation-duration: 35s;
  }
  .logo-marquee--right .logo-marquee__track {
    animation-duration: 35s;
  }
  .marquee-logo {
    height: 70px;
    width: auto;
    max-width: 240px;
  }
}

/* Animaciones */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation-play-state: paused;
  }
}

/* ==========================================================================
   GLOBAL TITLE SYSTEM
   Centralized typography rules for all main titles
   ========================================================================== */

/* Main Bold Part (#1e6875) */
.title-bold,
.section-title,
.hero__title,
.page-hero__title,
.ns-hero__title,
.ns-section-title,
.ns-intro__title {
  color: var(--brand-teal) !important;
  font-weight: 800;
}

/* Light / Italic Highlighted Part (#9eaeac) */
.title-light,
.section-title em,
.hero__title em,
.page-hero__title em,
.ns-hero__title em,
.ns-section-title em,
.ns-intro__title em {
  color: var(--text-muted) !important;
  font-weight: 300;
  font-style: italic;
}

/* Exemptions for Dark Sections (White/Light) */
.section--dark .section-title,
.section--dark .ns-section-title,
.section--dark-green .section-title,
.section--dark-green .ns-section-title {
  color: var(--text-light) !important;
}

.section--dark .section-title em,
.section--dark .ns-section-title em,
.section--dark-green .section-title em,
.section--dark-green .ns-section-title em {
  color: var(--alt-text-muted) !important;
}

/* Home hero title stays white over media, with only the emphasized word in orange. */
#page-home .hero--centered .hero__title,
#page-home .hero--centered .hero-title__word {
  color: #ffffff !important;
}

/* Ensure home page hero special orange word is protected */
#page-home .hero--centered .hero-title__word--em,
.hero-title__word--em {
  color: var(--brand-orange) !important;
}
