/* =====================================================
   INLIGNO - Modern Premium Styles
   Fully Responsive Design for Mobile & Tablet
   ===================================================== */

/* CSS Variables - Green Nature Theme */
:root {
  --bg: #0000;
  --bg-alt: #0a1a0d;
  --surface: rgba(6, 14, 10, 0.65);
  --stroke: rgba(126, 214, 147, 0.1);
  --text: #e0ede8;
  --muted: rgba(224, 237, 232, 0.55);
  --accent: #4a9d5b;
  --accent-light: #7ed693;
  --accent-dark: #2d6b3a;
  --gradient-primary: linear-gradient(135deg, #2d6b3a 0%, #7ed693 50%, #4a9d5b 100%);
  --gradient-glow: radial-gradient(circle, rgba(74, 157, 91, 0.3) 0%, transparent 70%);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(74, 157, 91, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition-fast: 0.25s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;
}

[data-theme="light"] {
  --bg: #f5faf6;
  --bg-alt: #f2faf5;
  --surface: rgba(248, 255, 252, 0.85);
  --stroke: rgba(30, 50, 40, 0.08);
  --text: #141a17;
  --muted: rgba(20, 26, 23, 0.6);
  --accent: #2d6b3a;
  --accent-light: #4a9d5b;
  --accent-dark: #1e4d2a;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}

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

/* =====================================================
   Animated Background - Green Nature Atmosphere
   ===================================================== */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #030705;
}

/* Sin efectos verdes en el fondo */
.background::before {
  content: none;
}

/* Noise/texture overlay */
.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Light mode */
[data-theme="light"] .background {
  background: #f5faf6;
}

[data-theme="light"] .background::after {
  opacity: 0.02;
}

/* Efectos verdes solo en el resto de la web (debajo del hero, con margen) */
.bg-gradient,
.bg-blur {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 120vh; /* margen bajo el hero para no pisar la foto */
  pointer-events: none;
}

.bg-gradient {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: normal;
}

.bg-gradient-1 {
  position: absolute;
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(74, 157, 91, 0.4) 0%, transparent 70%);
}

.bg-gradient-2 {
  position: absolute;
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  top: 40%;
  right: -5%;
  background: radial-gradient(circle, rgba(45, 107, 58, 0.3) 0%, transparent 70%);
}

.bg-gradient-3 {
  position: absolute;
  width: min(60vw, 500px);
  height: min(60vw, 500px);
  bottom: 20%;
  left: 20%;
  background: radial-gradient(circle, rgba(126, 214, 147, 0.25) 0%, transparent 70%);
}

.bg-blur {
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.bg-blur-1 {
  position: absolute;
  width: min(80vw, 700px);
  height: min(80vw, 700px);
  top: 30%;
  right: 10%;
  background: radial-gradient(circle, rgba(74, 157, 91, 0.5) 0%, transparent 60%);
}

.bg-blur-2 {
  position: absolute;
  width: min(60vw, 500px);
  height: min(60vw, 500px);
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(45, 107, 58, 0.4) 0%, transparent 65%);
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 8px 0;
  transition: all var(--transition-base);
}

.navbar.is-scrolled {
  background: rgba(4, 8, 6, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .navbar.is-scrolled {
  background: rgba(245, 250, 246, 0.92);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  position: relative;
  z-index: 10;
}

.nav-brand img {
  height: 190px;
  width: auto;
  transition: transform var(--transition-fast);
  /* El logo sobresale de la navbar sin aumentar su altura */
  margin: -65px 0;
}

.nav-brand:hover img {
  transform: scale(1.02);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Orden de los elementos en nav-right para móvil/tablet */
@media (max-width: 1024px) {
  .nav-right {
    gap: 12px;
  }

  .nav-right .mobile-menu-toggle {
    order: 1;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(16px, 2vw, 28px);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-links a:hover::after {
  width: 60%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #040806;
  z-index: 150;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .mobile-menu {
  background: #f5faf6;
}

.mobile-menu-links {
  list-style: none;
  padding: 24px;
}

.mobile-menu-links li {
  border-bottom: 1px solid var(--stroke);
}

.mobile-menu-links a {
  display: block;
  padding: 20px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-menu-links a:hover {
  color: var(--accent);
  padding-left: 24px;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 15vh, 180px) clamp(20px, 5vw, 60px) clamp(60px, 10vh, 100px);
  position: relative;
  overflow: hidden;
}

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(4, 8, 6, 0.92) 85%, var(--bg) 100%);
}

[data-theme="light"] .hero-bg-overlay {
  background:
    linear-gradient(to bottom, rgba(245, 250, 246, 0.6) 0%, rgba(245, 250, 246, 0.4) 35%, rgba(245, 250, 246, 0.75) 60%, var(--bg) 75%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(245, 250, 246, 0.5) 100%);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Overline with animated accent bar */
.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-fade-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  justify-content: center;
}

.hero-overline-bar {
  display: inline-block;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  animation: hero-bar-grow 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-overline-bar--end {
  animation-delay: 0.6s;
  min-width: 0;
}

/* Title with masked reveal */
.hero-title {
  font-size: clamp(3.4rem, 6.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.hero-title-mask {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  min-height: 1.1em;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-mask:nth-child(1) {
  animation: typewriter-l1 0.9s steps(19) 0.4s forwards;
}

.hero-title-mask:nth-child(2) {
  animation: typewriter-l2 1.15s steps(30) 0.75s forwards;
}

.hero-title-mask:nth-child(3) {
  animation: typewriter-l3 0.45s steps(9) 1.2s forwards;
}

.hero-title-line {
  display: inline-block;
  padding-bottom: 3px;
}

@keyframes typewriter-l1 {
  to { width: 19ch; }
}

@keyframes typewriter-l2 {
  to { width: 30ch; }
}

@keyframes typewriter-l3 {
  to { width: 9ch; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.eyebrow-icon {
  font-size: 0.6rem;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.text-gradient {
  color: var(--accent);
}

/* Verde más visible en el título del hero sobre fondo oscuro */
.hero-title .text-gradient {
  color: #5a9e66;
  text-shadow: 0 0 12px rgba(58, 115, 70, 0.25);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-description {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
  align-self: flex-start;
  opacity: 0;
  animation: hero-content-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.material-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(74, 157, 91, 0.08);
  border: 1px solid rgba(74, 157, 91, 0.15);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(74, 157, 91, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
  animation: hero-content-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% auto;
  color: #0a1a0d;
  box-shadow: 0 4px 24px rgba(74, 157, 91, 0.35);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 157, 91, 0.5);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(74, 157, 91, 0.1);
  border-color: var(--accent);
}




/* Luces verdes del hero desactivadas */
.hero-lights {
  display: none;
}

/* Hero Keyframes */
@keyframes hero-title-reveal {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes hero-content-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-bar-grow {
  to { width: 40px; }
}

@keyframes hero-fade-in {
  to { opacity: 1; }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform var(--transition-fast);
  z-index: 10;
  text-decoration: none;
  color: inherit;
}

.hero-scroll-indicator:hover {
  transform: translateX(-50%) scale(1.1);
}

.hero-scroll-indicator:hover span {
  border-color: var(--accent);
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--stroke);
  border-radius: 12px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* =====================================================
   Main Content & Sections
   ===================================================== */
main {
  padding: 0 clamp(16px, 4vw, 40px);
}

section {
  scroll-margin-top: 100px;
}

.section-glass {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background: linear-gradient(
    145deg,
    rgba(6, 14, 10, 0.88) 0%,
    rgba(8, 18, 12, 0.72) 100%
  );
  backdrop-filter: blur(40px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-glass.show {
  opacity: 1;
  transform: translateY(0);
}

.section-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 157, 91, 0.4), transparent);
}

[data-theme="light"] .section-glass {
  background: linear-gradient(
    145deg,
    rgba(248, 255, 250, 0.92) 0%,
    rgba(242, 250, 245, 0.82) 100%
  );
}

/* Nosotros: más espacio entre el hero y el frame de la sección */
#nosotros.section-glass {
  margin-top: 100px;
}

.section-inner {
  position: relative;
  z-index: 1;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(74, 157, 91, 0.1);
  border: 1px solid rgba(74, 157, 91, 0.2);
  border-radius: 6px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 25%,
    var(--accent-light) 40%,
    var(--accent) 50%,
    var(--accent-light) 60%,
    var(--text) 75%,
    var(--text) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: section-title-wave 3.5s ease-in-out infinite;
}

@keyframes section-title-wave {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-header h2 {
    animation: none;
    background-position: 50% 50%;
    color: var(--text);
    background: none;
  }
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Content Grids */
.content-grid {
  display: grid;
  gap: 24px;
}

.content-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.content-card:hover {
  background: rgba(74, 157, 91, 0.08);
  border-color: rgba(74, 157, 91, 0.3);
  transform: translateY(-4px);
}

.content-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 157, 91, 0.2), rgba(126, 214, 147, 0.1));
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent);
}

.content-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* Wide Content Card - Horizontal layout */
.content-card-wide {
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.content-card-wide p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.content-card-wide p:last-child {
  margin-bottom: 0;
}

/* Split Layout */
.split {
  display: grid;
  gap: 40px;
}

.split-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.copy-block p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.copy-block strong {
  color: var(--text);
}

.que-hacemos-intro {
  color: var(--muted);
  line-height: 1.8;
  max-width: none;
  margin-bottom: 32px;
}

.que-hacemos-intro strong {
  color: var(--text);
}

.que-hacemos-row {
  align-items: start;
}

.que-hacemos-row .que-hacemos-photo {
  margin: 0;
}

.que-hacemos-photo {
  margin: 24px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.que-hacemos-photo img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Carrusel Qué hacemos */
.que-hacemos-carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  margin: 0;
}

.que-hacemos-carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.que-hacemos-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.que-hacemos-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.que-hacemos-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.que-hacemos-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(74, 157, 91, 0.18);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.que-hacemos-carousel-arrow:hover {
  background: rgba(74, 157, 91, 0.28);
}

.que-hacemos-carousel-arrow:focus {
  outline: none;
}

.que-hacemos-carousel-arrow:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.que-hacemos-carousel-arrow.carousel-prev {
  left: 10px;
}

.que-hacemos-carousel-arrow.carousel-next {
  right: 10px;
}

.copy-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--muted);
  line-height: 1.8;
}

.copy-centered strong {
  color: var(--text);
}

/* Modern List */
.collab-list h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.list-modern {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-modern li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.list-modern li:hover {
  background: rgba(74, 157, 91, 0.1);
  border-color: rgba(74, 157, 91, 0.3);
  padding-left: 28px;
}

.list-icon {
  color: var(--accent);
  font-weight: bold;
}

/* Feature Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  background: rgba(74, 157, 91, 0.08);
  border-color: rgba(74, 157, 91, 0.3);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 157, 91, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: rgba(74, 157, 91, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 6, 0.7) 0%, transparent 50%);
}

.service-card-content {
  padding: 24px;
}

.service-card-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-tags {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  transition: color var(--transition-fast);
}

.service-gallery-cta svg {
  transition: transform var(--transition-fast);
}

.service-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(74, 157, 91, 0.15);
  transform: translateY(-4px);
}

.service-card.active .service-gallery-cta {
  color: var(--accent);
}

.service-card.active .service-gallery-cta svg {
  transform: rotate(180deg);
}


/* =====================================================
   Sectors Section
   ===================================================== */
.services-grid-second {
  margin-top: 32px;
}

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

.sector-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.sector-card:hover {
  background: rgba(74, 157, 91, 0.1);
  border-color: rgba(74, 157, 91, 0.4);
  transform: translateY(-6px);
}

.sector-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 157, 91, 0.2), rgba(126, 214, 147, 0.1));
  border-radius: 50%;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.sector-card:hover .sector-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(74, 157, 91, 0.3), rgba(126, 214, 147, 0.2));
}

.sector-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =====================================================
   Gallery Section
   ===================================================== */
.section-gallery {
  max-width: 1400px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(74, 157, 91, 0.15);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #0a1a0d;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--stroke);
  transition: all var(--transition-base);
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.9);
}

.gallery-item.show {
  opacity: 1;
  transform: scale(1);
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 6, 0.95) 0%, rgba(4, 8, 6, 0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a1a0d;
  margin-bottom: 10px;
  width: fit-content;
}

.gallery-overlay p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

/* Asegurar texto blanco en overlay en modo claro */
[data-theme="light"] .gallery-overlay p {
  color: #ffffff;
}

/* =====================================================
   Success Cases Section
   ===================================================== */
.section-cases {
  max-width: 1200px;
}

.case-study {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--transition-base);
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study:hover {
  border-color: rgba(74, 157, 91, 0.3);
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(74, 157, 91, 0.1) 0%, transparent 50%);
  border-bottom: 1px solid var(--stroke);
  flex-wrap: wrap;
}

.case-study-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 56px;
}

.case-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

/* Logo Waldo: máscara con SVG oficial (forma del logo en blanco) */
.case-logo-waldo {
  background-color: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  mask: url("https://assets.hiltonstatic.com/hilton-asset-cache/image/upload/c_fill,w_1920,q_90,f_auto/Graphic%20Design/Logos/NoBrand/K/KWIWAWA/kwiwawa-horizontal-logo.svg");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center center;
  -webkit-mask: url("https://assets.hiltonstatic.com/hilton-asset-cache/image/upload/c_fill,w_1920,q_90,f_auto/Graphic%20Design/Logos/NoBrand/K/KWIWAWA/kwiwawa-horizontal-logo.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center center;
}

/* Logos en blanco (Torre Barcelona SVG con letras negras) */
.case-logo-white {
  filter: brightness(0) invert(1);
}

.case-study-info {
  flex: 1;
  min-width: 250px;
}

.case-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(74, 157, 91, 0.2);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.case-study-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-location svg {
  color: var(--accent);
}

.case-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.case-stat {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  min-width: 100px;
}

.case-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.case-stat span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.case-description h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
  margin-top: 20px;
}

.case-description h4:first-child {
  margin-top: 0;
}

.case-description p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.case-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.case-study-content--gallery-only {
  display: block;
}

.case-highlights--standalone {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 0 32px;
}

.highlight {
  padding: 8px 14px;
  background: rgba(74, 157, 91, 0.1);
  border: 1px solid rgba(74, 157, 91, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.case-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--stroke);
  transition: all var(--transition-fast);
}

.case-image:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.case-image:hover img {
  transform: scale(1.08);
}

.case-gallery-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: fit-content;
  margin: 0 auto;
}

.case-gallery-toggle:hover {
  background: rgba(74, 157, 91, 0.15);
  border-color: var(--accent);
}

.case-gallery-toggle svg {
  transition: transform var(--transition-fast);
}

.case-gallery-expanded {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.case-gallery-expanded.show {
  display: grid;
}

/* Responsive Cases */
@media (max-width: 900px) {
  .case-study-content {
    grid-template-columns: 1fr;
  }

  .case-gallery-grid,
  .case-gallery-expanded {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .case-study-header {
    padding: 24px;
  }

  .case-study-content {
    padding: 24px;
  }

  .case-stats {
    width: 100%;
    justify-content: space-between;
  }

  .case-stat {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
  }

  .case-stat strong {
    font-size: 1.2rem;
  }

  .case-gallery-grid,
  .case-gallery-expanded {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-nav:hover {
  background: rgba(74, 157, 91, 0.3);
  border-color: var(--accent);
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(4, 8, 6, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 157, 91, 0.3);
  border-radius: 100px;
  padding: 8px 22px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-caption.active {
  opacity: 1;
}

.lightbox-caption-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox-caption-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact-section {
  max-width: 1000px;
}

form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.required {
  color: var(--accent);
}

input,
textarea,
select {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(74, 157, 91, 0.08);
  box-shadow: 0 0 0 3px rgba(74, 157, 91, 0.15);
}

input.error,
textarea.error,
select.error {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.error-message {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 6px;
  min-height: 20px;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge svg {
  color: var(--accent);
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  grid-column: 1 / -1;
  padding: 20px 24px;
  background: rgba(107, 176, 119, 0.15);
  border: 1px solid rgba(107, 176, 119, 0.3);
  border-radius: var(--radius-md);
  color: #6bb077;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.form-success.show {
  opacity: 1;
  max-height: 100px;
  margin-top: 16px;
}

.form-success.error {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* =====================================================
   Footer
   ===================================================== */
footer {
  padding: 60px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 260px;
  width: auto;
  opacity: 0.9;
}

footer p {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-year {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.6;
}

.footer-designed {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* =====================================================
   Animations & Utilities
   ===================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"].show {
  transform: translateY(0);
}

[data-animate="fade-left"].show {
  transform: translateX(0);
}

[data-animate="pop"].show {
  animation: pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

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

/* Selection */
::selection {
  background: rgba(74, 157, 91, 0.3);
  color: var(--text);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   Responsive Design - Tablet (max-width: 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  /* Tablet también usa menú burger */
  .nav-links {
    display: none;
  }

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

  .mobile-menu {
    display: block;
  }

  .hero-title {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
  }

  .hero-description {
    margin: 0 auto;
  }

  .material-chips {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }


  /* Qué hacemos (iPad): foto arriba, lista abajo en 2 columnas, más simétrico */
  .que-hacemos-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .que-hacemos-row .que-hacemos-carousel {
    max-width: 100%;
    order: 1;
  }

  .que-hacemos-row .que-hacemos-carousel-inner {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .que-hacemos-row .collab-list {
    order: 2;
  }

  .que-hacemos-row .list-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Servicios: 2 por fila en tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nuestra fórmula: 2x2 en tablet */
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   Responsive Design - Mobile (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-brand img {
    height: 70px;
    margin: -15px 0;
  }

  .hero {
    padding-top: 120px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Título hero: en móvil sin typewriter para que no se salga del margen */
  .hero-title-mask {
    width: auto !important;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    animation: none;
    min-height: 0;
  }

  .hero-title-line {
    display: inline;
  }

  .section-glass {
    margin: 0 8px 40px;
    border-radius: var(--radius-lg);
  }

  /* Servicios: 1 por fila en móvil */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Nuestra fórmula: 1 por fila en móvil */
  .card-grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Clientes: 1 por fila en móvil, padding ajustado para textos largos */
  .que-hacemos-row .list-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .list-modern li {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Highlights de casos de éxito: centrados en móvil */
  .case-highlights,
  .case-highlights--standalone {
    justify-content: center;
    padding: 0 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .badge {
    justify-content: center;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

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

/* =====================================================
   Responsive Design - Small Mobile (max-width: 480px)
   ===================================================== */

/* =====================================================
   Responsive Design - Small Mobile (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-title-mask {
    width: auto !important;
    max-width: 100%;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .chip {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }


  .section-glass {
    padding: 32px 20px;
  }

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

  .gallery-item {
    aspect-ratio: 16/12;
  }

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

  .sector-card {
    padding: 24px 20px;
  }

  form {
    gap: 16px;
  }

  input,
  textarea,
  select {
    padding: 14px 16px;
  }
}

/* =====================================================
   Landscape Mobile
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
  .background,
  .navbar,
  .hero-scroll-indicator,
  .lightbox,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section-glass {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
