/* ============================================
   IKHIGAI Madrid - Design System & Styles
   ============================================ */

/* ---------- Custom Fonts ---------- */
@font-face {
  font-family: 'Great Vibes';
  src: url('font/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-gray-light: #F5F5F5;
  --color-gray-medium: #6B7280;
  --color-gray-border: #E5E7EB;
  --color-red: #E63946;
  --color-yellow: #F4A261;
  --gradient-accent: linear-gradient(135deg, #E63946, #F4A261);
  --font-main: 'Inter', sans-serif;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --navbar-height: 80px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--fullheight {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Split layout: image wallpaper left, content right */
.section--split {
  display: flex;
  min-height: 100vh;
}

.split__image {
  width: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split__content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
}

.section--split--compact {
  min-height: auto;
  overflow: hidden;
}

.section--split--compact .split__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--color-white);
}

.section--split--compact .split__image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.section--split--compact .split__image.split__image--contain {
  padding: 0;
}

.section--split--compact .split__image--contain img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.section--split--compact .split__content {
  padding: 48px 52px;
}

.section--gray {
  background-color: var(--color-gray-light);
}

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

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-gray-medium);
  line-height: 1.7;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn--outline {
  border: 2px solid var(--color-black);
  color: var(--color-black);
}

.btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  height: var(--navbar-height);
  background: var(--color-white);
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 28px;
}

.navbar__logo img {
  height: 60px;
  width: auto;
}

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

.navbar__link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition-base);
  position: relative;
  display: inline-block;
}

.navbar__link:not(.navbar__dropdown-toggle):hover {
  transform: scale(1.08);
}

.navbar__link.active {
  font-weight: 700;
}

/* Dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.navbar__dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.navbar__dropdown:hover .navbar__dropdown-toggle svg {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition-base);
  transform-origin: left center;
}

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

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero--small {
  min-height: 50vh;
}

/* Hero Video */
.hero--video {
  background: var(--color-black);
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero--video .hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero--video .hero__desc {
  color: rgba(255, 255, 255, 0.85);
}

.hero--video .hero__badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.hero--video .btn--outline {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}

.hero--video .btn--outline:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero--coffee {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Coffee page theme overrides */
.page-coffee .text-gradient {
  background: linear-gradient(135deg, #3C1A0A, #8B5E3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-coffee .section-subtitle {
  background: linear-gradient(135deg, #3C1A0A, #8B5E3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-coffee .hero__badge {
  background: linear-gradient(135deg, rgba(60, 26, 10, 0.1), rgba(139, 94, 60, 0.1));
  color: #6B4226;
}

.page-coffee .btn--primary {
  background: linear-gradient(135deg, #3C1A0A, #8B5E3C);
  box-shadow: 0 4px 15px rgba(60, 26, 10, 0.3);
}

.page-coffee .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(60, 26, 10, 0.4);
}


/* ---------- Page Water Theme ---------- */
.page-water .text-gradient {
  background: linear-gradient(135deg, #0A3D62, #3B8DBD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-water .section-subtitle {
  background: linear-gradient(135deg, #0A3D62, #3B8DBD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-water .hero__badge {
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.1), rgba(59, 141, 189, 0.1));
  color: #0A3D62;
}

.page-water .btn--primary {
  background: linear-gradient(135deg, #0A3D62, #3B8DBD);
  box-shadow: 0 4px 15px rgba(10, 61, 98, 0.3);
}

.page-water .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(10, 61, 98, 0.4);
}


.page-water .product-hero__feature span {
  background: rgba(10, 61, 98, 0.08);
  color: #0A3D62;
}

.page-water .advantage-item__icon {
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.1), rgba(59, 141, 189, 0.1));
  color: #0A3D62;
}

/* ---------- Borracce Banner (Apple-style scroll video) ---------- */
.borracce-banner {
  height: 500vh;
  position: relative;
}

.borracce-banner__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.borracce-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  transform: none;
}

.borracce-banner__text {
  position: absolute;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(60px);
}

.borracce-banner__title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.borracce-banner__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #0A3D62, #3B8DBD);
  margin: 20px 0;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
}

.borracce-banner__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--color-gray-medium);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 768px) {
  .borracce-banner {
    height: 200vh;
  }

  .borracce-banner__video {
    transform: scale(2);
  }
}

/* Page Rest (Descanso) Overrides */
.page-rest .text-gradient {
  background: linear-gradient(135deg, #1B5E3B, #3A9D5C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-rest .section-subtitle {
  background: linear-gradient(135deg, #1B5E3B, #3A9D5C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-rest .hero__badge {
  background: rgba(26, 26, 26, 0.08);
  color: #1A1A1A;
}

.page-rest .btn--primary {
  background: linear-gradient(135deg, #1B5E3B, #3A9D5C);
  box-shadow: 0 4px 15px rgba(27, 94, 59, 0.3);
}

.page-rest .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(27, 94, 59, 0.4);
}

.page-rest .product-hero__feature span {
  background: rgba(27, 94, 59, 0.08);
  color: #1B5E3B;
}

.page-rest .advantage-item__icon {
  background: linear-gradient(135deg, rgba(27, 94, 59, 0.1), rgba(58, 157, 92, 0.1));
  color: #1B5E3B;
}

.page-rest .reason-item__icon {
  background: linear-gradient(135deg, rgba(27, 94, 59, 0.1), rgba(58, 157, 92, 0.1));
  color: #1B5E3B;
}

/* Hero Rest */
.hero--rest {
  min-height: 100vh;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--rest::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.hero--rest .hero__title {
  color: #1A1A1A;
}

.hero--rest .hero__desc {
  color: #1A1A1A;
}

.hero--rest .hero__content {
  position: relative;
  z-index: 2;
}

.hero--rest .hero__scroll-down {
  color: #1A1A1A;
  z-index: 2;
}

.hero--rest .hero__scroll-down svg {
  stroke: #1A1A1A;
}

/* ---------- Page Air Theme ---------- */
.page-air .text-gradient {
  background: linear-gradient(135deg, #0B1D3A, #1A6FB5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-air .section-subtitle {
  background: linear-gradient(135deg, #0B1D3A, #1A6FB5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-air .hero__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-air .section--gray {
  background: url('../assets/space-wp.jpg') center/cover no-repeat;
  position: relative;
  height: 103vh;
  max-height: 103vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

.page-air .section--gray::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-air .section--gray .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-air .section--gray .section-title,
.page-air .section--gray .section-desc {
  color: #ffffff;
}

.page-air .section--gray .text-gradient {
  background: linear-gradient(135deg, #1A6FB5, #5BA3D9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-air .section--gray .section-subtitle {
  background: linear-gradient(135deg, #1A6FB5, #5BA3D9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-air .advantages-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin-top: 30px;
}

.page-air .advantage-item {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-air .advantage-item:nth-child(1) {
  width: 230px; height: 230px; padding: 30px;
  top: 0; left: 2%;
  animation: planetFloat 7s ease-in-out infinite;
}

.page-air .advantage-item:nth-child(2) {
  width: 200px; height: 200px; padding: 26px;
  top: 0; right: 30%;
  animation: planetFloat 5.5s ease-in-out -1.5s infinite;
}

.page-air .advantage-item:nth-child(3) {
  width: 220px; height: 220px; padding: 28px;
  bottom: 0; left: 28%;
  animation: planetFloat 6.5s ease-in-out -3s infinite;
}

.page-air .advantage-item:nth-child(4) {
  width: 195px; height: 195px; padding: 24px;
  bottom: 0; right: 12%;
  animation: planetFloat 5.8s ease-in-out -4.2s infinite;
}

.page-air .advantage-item:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.page-air .advantage-item__icon {
  background: rgba(26, 111, 181, 0.25);
  color: #5BA3D9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.page-air .advantage-item__title {
  color: #ffffff;
  font-size: 0.8rem;
}

.page-air .advantage-item__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  line-height: 1.3;
}

@keyframes planetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero--air .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
}

.page-air .btn--primary {
  background: linear-gradient(135deg, #0B1D3A, #1A6FB5);
  box-shadow: 0 4px 15px rgba(11, 29, 58, 0.4);
}

.page-air .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(26, 111, 181, 0.5);
}

.page-air .product-hero__feature span {
  background: rgba(11, 29, 58, 0.08);
  color: #0B1D3A;
}

.page-air .advantage-item__icon {
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.15), rgba(26, 111, 181, 0.15));
  color: #1A6FB5;
}

.page-air .cta-section {
  background: #ffffff;
}

.page-air .cta-section h2,
.page-air .cta-section p {
  color: var(--color-black);
}

/* Hero Air */
.hero--air {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--air::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero--air .hero__content {
  position: relative;
  z-index: 2;
}

.hero--air .hero__title,
.hero--air .hero__desc {
  color: #ffffff;
}

.hero--air .hero__scroll-down {
  color: #ffffff;
  z-index: 2;
}

.hero--air .hero__scroll-down svg {
  stroke: #ffffff;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.hero-logos img {
  max-width: 250px;
  opacity: 0.9;
}

.hero-logos__nasa {
  max-width: 150px !important;
}

/* Hero Trabaja */
.hero--trabaja {
  min-height: 100vh;
  max-height: 100vh;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.hero--trabaja::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero--trabaja .hero__content {
  position: relative;
  z-index: 2;
}

.hero--trabaja .hero__title,
.hero--trabaja .hero__desc {
  color: #ffffff;
}

.hero--trabaja .hero__scroll-down {
  color: #ffffff;
  z-index: 2;
}

.hero--trabaja .hero__scroll-down svg {
  stroke: #ffffff;
}

/* Hero Water */
.hero--water {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-black);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  animation: bounceDown 2s ease infinite;
}

.hero__scroll-down:hover {
  opacity: 1;
}

.hero__scroll-down svg {
  width: 24px;
  height: 24px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

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

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  z-index: 0;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: var(--color-red);
  top: -100px;
  right: -100px;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: var(--color-yellow);
  bottom: -50px;
  left: -100px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__image {
  width: 100%;
  height: 220px;
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.card__image--contain {
  padding: 20px;
  background: var(--color-white);
}

.card__image--contain img {
  object-fit: contain;
}

.card__image-placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.card__body {
  padding: 24px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 12px;
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-red);
  transition: gap var(--transition-base);
}

.card__link:hover {
  gap: 10px;
}

/* Category Cards */
/* ---------- Category Cards ---------- */
.category-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.category-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-black);
  transition: all var(--transition-base);
}

.category-card:hover .category-card__icon {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.category-card__text {
  flex: 1;
}

.category-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card__desc {
  font-size: 0.9rem;
  color: var(--color-gray-medium);
  line-height: 1.5;
}

.category-card__arrow {
  flex-shrink: 0;
  color: var(--color-gray-medium);
  transition: all var(--transition-base);
}

.category-card:hover .category-card__arrow {
  color: var(--color-red);
  transform: translateX(4px);
}

/* ---------- Reasons Grid ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.reason-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.reason-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.08);
  color: var(--color-red);
}

.reason-item__text {
  flex: 1;
}

.reason-item__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.reason-item__desc {
  font-size: 0.88rem;
  color: var(--color-gray-medium);
  line-height: 1.5;
}

/* ---------- Product Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ---------- Team Grid ---------- */
.team-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-medium);
  margin-top: 56px;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.team-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 10px auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 48px 36px;
  margin-top: 32px;
}

.team-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .team-grid--2,
  .team-grid--3,
  .team-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid--2,
  .team-grid--3,
  .team-grid--4 {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card__avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 4px solid var(--color-gray-light);
  transition: border-color 0.4s ease;
}

.team-card:hover .team-card__avatar {
  border-color: var(--color-red);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__avatar img {
  transform: scale(1.12);
}

.team-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.team-card__info {
  padding: 0 8px;
}

.team-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-black);
}

.team-card__role {
  font-size: 0.82rem;
  color: var(--color-gray-medium);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---------- Tech Bubbles Layout ---------- */
.tech-bubbles-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 40px;
  background: var(--color-gray-light);
}

.tech-bubbles__header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.tech-bubbles {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 600px;
  margin: 0 auto;
}

.tech-bubble {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  cursor: default;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: bubbleFloat 6s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tech-bubble:nth-child(1) { animation-duration: 7s; }
.tech-bubble:nth-child(2) { animation-delay: -1.2s; animation-duration: 5.5s; }
.tech-bubble:nth-child(3) { animation-delay: -2.5s; animation-duration: 6.5s; }
.tech-bubble:nth-child(4) { animation-delay: -3.8s; animation-duration: 7.5s; }
.tech-bubble:nth-child(5) { animation-delay: -4.5s; animation-duration: 5.8s; }
.tech-bubble:nth-child(6) { animation-delay: -5.2s; animation-duration: 6.8s; }
.tech-bubble:nth-child(7) { animation-delay: -0.8s; animation-duration: 5.2s; }

.tech-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(27, 94, 59, 0.15);
  border-color: rgba(27, 94, 59, 0.3);
  z-index: 10;
}

.tech-bubble--lg {
  width: 230px;
  height: 230px;
  background: linear-gradient(135deg, #1B5E3B, #3A9D5C);
  border: none;
  color: white;
  box-shadow: 0 8px 30px rgba(27, 94, 59, 0.2);
}

.tech-bubble--lg .tech-bubble__icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tech-bubble--lg .tech-bubble__icon svg {
  stroke: white;
}

.tech-bubble--lg .tech-bubble__title {
  color: white;
}

.tech-bubble--lg .tech-bubble__desc {
  color: rgba(255, 255, 255, 0.85);
}

.tech-bubble--lg:hover {
  box-shadow: 0 12px 40px rgba(27, 94, 59, 0.35);
  border: none;
}

.tech-bubble--sm {
  width: 155px;
  height: 155px;
  padding: 18px 12px;
}

.tech-bubble__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 94, 59, 0.1), rgba(58, 157, 92, 0.1));
  color: #1B5E3B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.tech-bubble__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
  line-height: 1.2;
}

.tech-bubble--lg .tech-bubble__title {
  font-size: 1.05rem;
}

.tech-bubble__desc {
  font-size: 0.72rem;
  color: var(--color-gray-medium);
  line-height: 1.3;
}

.tech-bubble--sm .tech-bubble__title {
  font-size: 0.78rem;
}

.tech-bubble--sm .tech-bubble__desc {
  font-size: 0.68rem;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.tech-bubble:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .tech-bubbles-section {
    min-height: auto;
    padding: 60px 16px;
  }

  .tech-bubbles {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
  }

  .tech-bubble,
  .tech-bubble--lg,
  .tech-bubble--sm {
    position: static;
    width: 150px;
    height: 150px;
    animation: none;
  }

  .tech-bubble--lg {
    width: 170px;
    height: 170px;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-gray-border);
}

.timeline__item {
  position: relative;
  margin-bottom: 48px;
  padding: 0 40px;
}

.timeline__item:nth-child(odd) {
  text-align: right;
  padding-right: calc(50% + 40px);
  padding-left: 0;
}

.timeline__item:nth-child(even) {
  text-align: left;
  padding-left: calc(50% + 40px);
  padding-right: 0;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-accent);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  top: 5px;
}

.timeline__year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--color-white);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  padding: 80px 0;
  text-align: center;
  border-radius: var(--radius-lg);
}

.cta-section h2,
.cta-section p {
  color: var(--color-black);
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.benefit-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.benefit-card__title {
  margin-bottom: 8px;
}

.benefit-card__desc {
  font-size: 0.9rem;
}

/* ---------- Job Card ---------- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.job-card {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-border);
  transition: all var(--transition-base);
}

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

.job-card__type {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 16px;
}

.job-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.job-card__location {
  font-size: 0.85rem;
  color: var(--color-gray-medium);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-card__desc {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Form ---------- */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  background: var(--color-white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

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

.form__alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form__alert--ok {
  background: rgba(27, 94, 59, 0.1);
  color: #1B5E3B;
  border: 1px solid rgba(27, 94, 59, 0.2);
}

.form__alert--error {
  background: rgba(230, 57, 70, 0.1);
  color: var(--color-red);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: 0.85rem;
  color: var(--color-gray-medium);
  margin-bottom: 4px;
}

.contact-info-item__value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-black);
}

/* ---------- Trabaja con Nosotros ---------- */
.trabaja-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.trabaja-intro p {
  color: var(--color-gray-medium);
  line-height: 1.7;
}

.trabaja-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.trabaja-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.trabaja-highlight svg {
  flex-shrink: 0;
  color: var(--color-red);
}

.trabaja-form .form {
  background: var(--color-gray-light);
  padding: 36px;
  border-radius: var(--radius-lg);
}

.trabaja-form .form__group {
  margin-bottom: 16px;
}

.form__file {
  width: 100%;
  padding: 12px 18px;
  border: 2px dashed var(--color-gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.form__file:hover {
  border-color: var(--color-red);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-gray-medium);
}

.map-container {
  width: 100%;
  margin-top: 32px;
}

/* ---------- Product Hero Split ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.product-hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero__image img {
  max-height: 450px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.product-hero__content .section-subtitle {
  display: inline-block;
}

.product-hero__content h2 {
  margin-bottom: 16px;
}

.product-hero__content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.product-hero__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.product-hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-black);
  text-align: left;
}

.product-hero__feature span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(60, 26, 10, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: #3C1A0A;
}

/* ---------- Capsules Grid ---------- */
.capsules-section__title {
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #5C3A21;
  margin-top: 64px;
  margin-bottom: 36px;
  position: relative;
  display: inline-block;
}

.capsules-section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #5C3A21, #A0704E);
  border-radius: 2px;
  margin: 12px auto 0;
}

.capsules-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

/* Flip Card Container */
.capsule-card {
  perspective: 1000px;
  flex: 0 1 calc(33.333% - 19px);
  min-width: 280px;
  min-height: 500px;
}

.capsule-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.capsule-card:hover .capsule-card__inner {
  transform: rotateY(180deg);
}

.capsule-card--no-flip:hover .capsule-card__inner {
  transform: none;
}

/* Compact capsule cards (compatibles) */
.capsule-card--compact {
  min-height: auto;
  height: auto;
}

.capsule-card--compact .capsule-card__front {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.capsule-card--compact .capsule-card__name {
  font-size: 1.6rem;
  margin: 0;
}

.capsule-card--compact .capsule-card__subtitle {
  font-size: 0.75rem;
  margin: 0;
}

.capsule-card__front {
  position: relative;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
}

.capsule-card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
  overflow: hidden;
}

/* Front Face */
.capsule-card__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  text-align: center;
}

.capsule-card__image {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

.section--grano .capsule-card__image {
  border-radius: 0;
  width: auto;
  height: auto;
  max-width: 200px;
  overflow: visible;
}

.section--grano .capsule-card__image img {
  width: 100%;
  height: auto;
  transform: none;
  object-fit: contain;
}

.capsule-card__image img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  transform: translateX(6%);
}

.capsule-card__name {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.capsule-card__subtitle {
  font-size: 0.8rem;
  color: var(--color-black);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.capsule-card__desc {
  font-size: 0.75rem;
  color: var(--color-gray-medium);
  line-height: 1.5;
  flex-grow: 1;
}

.capsule-card__composition {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-black);
  padding-top: 12px;
  border-top: 1px solid var(--color-gray-border);
  width: 100%;
}

/* Back Face */
.capsule-card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  background: var(--color-white);
}

.capsule-card__back-title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: 8px;
}

.capsule-card__back-subtitle {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 36px;
}

.capsule-card__ratings {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 220px;
}

.capsule-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.capsule-rating__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gray-medium);
}

.capsule-rating__beans {
  display: flex;
  gap: 6px;
}

/* Coffee Bean Shape */
.bean {
  width: 20px;
  height: 26px;
  position: relative;
  display: inline-block;
  opacity: 0.2;
  transition: opacity var(--transition-base);
}

.bean.active {
  opacity: 1;
}

.bean svg {
  width: 100%;
  height: 100%;
}

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

  .product-hero__image {
    order: -1;
  }

  .product-hero__image img {
    max-height: 300px;
  }

  .product-hero__features {
    align-items: flex-start;
  }

  .capsule-card {
    flex: 0 1 100%;
    min-height: 400px;
  }

  .capsule-card__image {
    width: 150px;
    height: 150px;
  }
}

/* ---------- Advantages Section ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.advantage-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.advantage-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
}

.advantage-item__text {
  flex: 1;
}

.advantage-item__title {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.advantage-item__desc {
  font-size: 0.88rem;
  color: var(--color-gray-medium);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-white);
  color: var(--color-black);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand p {
  color: var(--color-gray-medium);
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__logo img {
  height: 56px;
  width: auto;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.35);
}

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

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-gray-medium);
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--color-black);
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: var(--color-gray-medium);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-medium);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

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

.value-card {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  text-align: center;
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.value-card__title {
  margin-bottom: 10px;
}

.value-card__desc {
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .section--split {
    flex-direction: column-reverse;
  }

  .page-rest .section--split {
    flex-direction: column;
  }

  .split__image {
    width: 100%;
    min-height: 50vh;
  }

  .machine-gallery__label {
    display: none;
  }

  .hero.hero--trabaja {
    min-height: 70vh;
    max-height: 70vh;
  }

  .hero-logos {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-logos img {
    max-width: 160px;
  }

  .hero-logos__nasa {
    max-width: 100px !important;
  }

  .hero--air .hero__title {
    font-size: 2rem;
  }

  .hero--air .hero__desc {
    font-size: 0.9rem;
  }

  .page-air .section--gray {
    height: auto;
    max-height: none;
    padding: 60px 0;
  }

  .page-air .advantages-grid {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
  }

  .page-air .advantage-item,
  .page-air .advantage-item:nth-child(1),
  .page-air .advantage-item:nth-child(2),
  .page-air .advantage-item:nth-child(3),
  .page-air .advantage-item:nth-child(4) {
    position: static;
    width: 220px;
    height: 220px;
    padding: 30px;
  }

  .split__content {
    width: 100%;
    padding: 40px 24px;
  }

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

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

  .category-card {
    padding: 24px;
    gap: 16px;
  }

  .category-card__arrow {
    display: none;
  }

  .section--split--compact {
    margin: 0 16px;
  }

  .section--split--compact .split__image {
    min-height: auto;
    padding: 24px;
  }

  .section--split--compact .split__image img {
    max-height: 280px;
  }

  .section--split--compact .split__content {
    padding: 32px 24px;
  }

  .section {
    padding: 70px 0;
  }

  .trabaja-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trabaja-form .form {
    padding: 24px;
  }

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

  .navbar__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    transform: translateX(-50%) translateY(-8px);
  }

  .navbar__menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .navbar__link:hover {
    background: rgba(255,255,255,0.3);
  }

  .navbar__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .navbar__dropdown.open .navbar__dropdown-menu {
    max-height: 300px;
  }

  .hero {
    min-height: 80vh;
    padding-top: calc(var(--navbar-height) + 20px);
  }

  .hero--small {
    min-height: 40vh;
  }

  .hero--coffee {
    min-height: 100vh;
    background-size: 100% auto;
    background-position: center bottom;
    background-color: #f0eded;
  }

  .hero--water {
    min-height: 100vh;
    background-size: 100% auto;
    background-position: center bottom;
    background-color: #efefef;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    text-align: left;
    padding-left: 56px;
    padding-right: 0;
  }

  .timeline__dot {
    left: 20px;
  }

  .cta-section {
    border-radius: var(--radius-md);
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Overlay for mobile menu ---------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

/* ---------- Machine Color Gallery ---------- */
.machine-gallery {
  background-size: 115% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #1a1008;
  transition: background-image 0.4s ease;
}

.machine-gallery__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.machine-gallery__label {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.machine-gallery__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.machine-gallery__dot:hover {
  transform: scale(1.15);
}

.machine-gallery__dot--active {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.3);
}

/* ---------- Soletta Tech Pills ---------- */
.soletta-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.6));
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(50% - 12px);
  min-width: 200px;
}

.soletta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.soletta-pill svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.soletta-pill strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark);
}

.soletta-pill span {
  display: block;
  font-size: 0.72rem;
  color: #666;
  margin-top: 2px;
}

/* ---------- Stories Video Section ---------- */
.stories-featured {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.stories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.story-card {
  flex: 0 1 480px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.story-card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  border-radius: 16px 16px 0 0;
}

.story-card__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.story-card__video {
  cursor: pointer;
}

.story-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.story-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.story-card__video:hover .story-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.7), rgba(244, 162, 97, 0.7));
}

.story-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.story-card__info {
  padding: 14px 20px;
  text-align: center;
}

.story-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
}

.story-card__role {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  margin-top: 2px;
}

.story-card--sm {
  flex: 0 1 340px;
}

@media (max-width: 768px) {
  .stories-featured {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .story-card {
    flex: 0 1 100%;
  }

  .story-card--sm {
    flex: 0 1 100%;
  }
}

@media (max-width: 768px) {
  .soletta-pill {
    flex: 1 1 100%;
  }
}
