/* ============================================
   CorchoPaymo — Complete Stylesheet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #6eb245;
  --color-primary-light: #8ccf64;
  --color-primary-lighter: #aae08a;
  --color-primary-lightest: #d4f2c2;
  --color-primary-pale: #eefae6;
  --color-accent: #316039;
  --color-accent-warm: #316039;
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #f6fcf3;
  --color-bg-dark: #316039;
  --color-text-primary: #1A2E1C;
  --color-text-secondary: #316039;
  --color-text-light: #6eb245;
  --color-text-on-dark: #FFFFFF;
  --color-border: #E2E8F0;
  --color-shadow: rgba(110, 178, 69, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Defaults ---------- */
section {
  padding: 100px 0;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader__logo .logo-accent {
  color: var(--color-primary-lighter);
}

.preloader__bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-lighter));
  border-radius: 4px;
  animation: preloaderProgress 1.8s ease-in-out forwards;
}

@keyframes preloaderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: 80px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
}

.navbar.scrolled {
  height: 80px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

/* Subpage Navbar (Green Solid) */
.navbar--subpage {
  background: var(--color-bg-dark) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}
.navbar--subpage .nav-link,
.navbar--subpage .navbar__contact,
.navbar--subpage .navbar__contact a {
  color: white !important;
}
.navbar--subpage .hamburger span {
  background: white !important;
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 40px;
}

.navbar__logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar__logo .logo-accent {
  color: var(--color-primary-lighter);
}

.navbar.scrolled .navbar__logo {
  color: white;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-lighter);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar.scrolled .nav-link {
  color: white;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #6eb245, #316039);
  color: white;
  box-shadow: 0 4px 14px rgba(110, 178, 69, 0.3);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110, 178, 69, 0.4);
  background: linear-gradient(135deg, #316039, #6eb245);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

.navbar.scrolled .hamburger span {
  background: white;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(49, 96, 57, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 40px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-link {
  color: white;
  display: block;
  font-size: 1.2rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__crossfade {
  animation: heroCrossfade 8s ease-in-out infinite;
  will-change: opacity;
}

@keyframes heroCrossfade {
  0% { opacity: 1; }
  35% { opacity: 1; }
  50% { opacity: 0; }
  85% { opacity: 0; }
  100% { opacity: 1; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  padding: 0 24px;
  will-change: transform;
}

.hero__badge {
  display: inline-block;
  background: rgba(110, 178, 69, 0.15);
  border: 1px solid rgba(110, 178, 69, 0.3);
  border-radius: 50px;
  padding: 8px 24px;
  color: var(--color-primary-lightest);
  font-size: 0.9rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  text-wrap: balance;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title .gradient-text {
  background: linear-gradient(135deg, #d4f2c2, #aae08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.65);
  padding: 16px 28px;
  border-radius: 16px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn--primary {
  background: linear-gradient(135deg, #6eb245, #316039);
  color: white;
  box-shadow: 0 4px 14px rgba(110, 178, 69, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110, 178, 69, 0.4);
  background: linear-gradient(135deg, #316039, #6eb245);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 10px;
}

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

.btn--outline.btn--sm {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Hero Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

.hero__scroll-indicator svg {
  width: 30px;
  stroke: rgba(255, 255, 255, 0.6);
}

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

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  margin-bottom: 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 32px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
}

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

.stat-item__number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* Section Dark */
.section--dark {
  background: var(--color-bg-dark);
}

.section--dark .section-subtitle {
  color: var(--color-primary-lighter);
}

.section--dark .section-title {
  color: var(--color-text-on-dark);
}

.section--dark .section-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Section Alt */
.section--alt {
  background: var(--color-bg-secondary);
}

/* ============================================
   WAVE SEPARATOR
   ============================================ */
.wave-separator {
  position: relative;
  overflow: hidden;
  line-height: 0;
  height: 60px;
}

.wave-separator svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-separator__fill {
  fill: var(--color-bg-secondary);
}

.wave-separator--dark .wave-separator__fill {
  fill: var(--color-bg-dark);
}

.wave-separator--light .wave-separator__fill {
  fill: var(--color-bg-primary);
}

/* ============================================
   EL CORCHO (#el-corcho)
   ============================================ */
.corcho-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.corcho-image-wrapper {
  position: relative;
}

.corcho-image-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 3px solid var(--color-primary-lighter);
  border-radius: 24px;
  z-index: 0;
}

.corcho-image-wrapper img,
.corcho-image-wrapper iframe {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 600 / 500;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: none;
  object-fit: cover;
}

.corcho-properties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.property-card {
  background: white;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  text-align: center;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--color-shadow);
  border-color: var(--color-primary-lightest);
}

.property-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.property-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.property-card__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ============================================
   PAYMO (#paymo) — section--alt
   ============================================ */
.paymo-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.feature-tab {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-tab.active {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px var(--color-shadow);
}

.feature-tab__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  position: relative;
}

.feature-tab__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-tab__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.feature-tab__toggle {
  margin-left: auto;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-tab.active .feature-tab__toggle {
  transform: rotate(180deg);
}

.feature-tab__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 28px;
}

.feature-tab.active .feature-tab__content {
  max-height: 200px;
  padding: 0 28px 20px;
}

.feature-tab__content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Substitutes */
.substitutes {
  margin-top: 50px;
}

.substitutes__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.substitutes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.substitute-tag {
  background: #FEE2E2;
  color: #991B1B;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: line-through;
  position: relative;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.advantage-item__check {
  color: var(--color-primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   APLICACIONES (#aplicaciones)
   ============================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.app-card {
  grid-column: span 2;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--color-shadow);
}

.app-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.app-card:hover .app-card__image img {
  transform: scale(1.08);
}

.app-card__body {
  padding: 24px;
}

.app-card__icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.app-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.app-card__text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.app-card--warning {
  border: 2px solid #F59E0B;
}

.app-card--warning:hover {
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

/* ============================================
   GALERÍA (#galeria) — section--dark
   ============================================ */
.comparison-gallery {
  max-width: 900px;
  margin: 40px auto 0;
}

.comparison-slide {
  display: none;
}

.comparison-slide.active {
  display: block;
}

.comparison-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.comparison-wrapper .before-image,
.comparison-wrapper .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-wrapper .before-image img,
.comparison-wrapper .after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-wrapper .before-image {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.comparison-wrapper .after-image {
  z-index: 0;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  z-index: 3;
  cursor: col-resize;
  transform: translateX(-50%);
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-handle__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 1.2rem;
  color: var(--color-primary);
  pointer-events: none;
}

.comparison-label {
  position: absolute;
  top: 16px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
}

.comparison-label--before {
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.comparison-label--after {
  right: 16px;
  background: rgba(110, 178, 69, 0.8);
  color: white;
}

.comparison-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.comparison-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.comparison-dot.active {
  background: var(--color-primary-lighter);
  transform: scale(1.2);
}

.comparison-caption {
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-on-dark);
}

.comparison-caption h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.comparison-caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PRODUCTOS (#productos)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: var(--color-primary-light);
}

.product-card__image {
  height: 260px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-tag {
  background: #f8f9fa;
  color: var(--color-text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
}

.product-card__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.product-card__actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

/* ============================================
   CARTA DE COLORES (#carta-colores) — section--alt
   ============================================ */
.color-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  justify-content: center;
}

.color-filter {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.color-filter.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.color-filter:hover:not(.active) {
  border-color: var(--color-primary-lightest);
  background: var(--color-primary-pale);
}

.color-disclaimer {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #92400E;
  margin-bottom: 30px;
  text-align: center;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.color-swatch {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.color-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.color-swatch__color {
  height: 90px;
}

.color-swatch__info {
  padding: 10px;
  background: white;
}

.color-swatch__code {
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-weight: 600;
}

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

/* Color Modal */
.color-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.color-modal.active {
  opacity: 1;
  visibility: visible;
}

.color-modal__content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.color-modal.active .color-modal__content {
  transform: scale(1);
}

.color-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.color-modal__close:hover {
  color: var(--color-text-primary);
}

.color-modal__preview {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.color-modal__name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.color-modal__code {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.color-modal__hex {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-family: monospace;
}

/* ============================================
   CERTIFICACIONES (#certificaciones)
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--color-primary-lightest);
  box-shadow: 0 8px 25px var(--color-shadow);
}

.cert-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.cert-card__text {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.cert-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.cert-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary-dark);
}

/* ============================================
   FORMACIÓN (#formacion) — section--dark
   ============================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.course-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary-lighter);
  transform: translateY(-4px);
}

.course-card--featured {
  border-color: var(--color-primary);
  background: rgba(110, 178, 69, 0.2);
}

.course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.course-card__level {
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.course-card__duration {
  color: rgba(255, 255, 255, 0.7);
}

.course-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: white;
  margin-bottom: 12px;
}

.course-card__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.course-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.course-card__features li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.course-card__features li::before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ============================================
   FAQ (#faq) — section--alt
   ============================================ */
.faq-list {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-shadow);
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-item__question {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  margin: 0;
}

.faq-item__toggle {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-pale);
}

.faq-item.active .faq-item__toggle {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   CONTACTO (#contacto)
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 40px;
}

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

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-pale);
  border-radius: 12px;
}

.contact-info__item div strong {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info__item div p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.contact-info__item div a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info__item div a:hover {
  text-decoration: underline;
}

.contact-schedule {
  background: var(--color-primary-pale);
  border-radius: 16px;
  padding: 24px;
  margin-top: 8px;
  color: var(--color-primary-dark);
}

.contact-schedule__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.contact-map {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--color-border);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 16px;
}

/* Contact Form */
.contact-form {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-bg-secondary);
  outline: none;
  color: var(--color-text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(110, 178, 69, 0.1);
}

.form-input.valid {
  border-color: var(--color-primary);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #EF4444;
}

.form-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}

.form-input.error + .form-error,
.form-textarea.error + .form-error,
.form-select.error + .form-error {
  display: block;
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox__text {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Form Success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  animation: fadeInUp 0.5s ease;
}

.form-success.show {
  display: block;
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.form-success__text {
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  padding: 80px 0 0;
  color: var(--color-text-on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer__logo .logo-accent {
  color: var(--color-primary-lighter);
}

.footer__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

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

.footer__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary-lighter);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--color-primary-lighter);
}

/* ============================================
   WHATSAPP FAQ WIDGET
   ============================================ */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: absolute;
  bottom: 75px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: white;
  padding: 6px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.wa-widget.open .lang-switcher {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(110, 178, 69, 0.4);
}

/* Hide Google Translate top bar & tooltips */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
iframe.skiptranslate,
.VIpgJd-Zvi9od-ORHb-OEVmcd,
.VIpgJd-Zvi9od-aZ2wEe-wOHMyf,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0px !important;
  position: static !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* ============================================
   WARRANTY BADGE
   ============================================ */
.warranty-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 100px;
  height: auto;
  z-index: 999;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatBadge 5s ease-in-out infinite;
}

.warranty-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.warranty-badge:hover {
  transform: scale(1.12) rotate(-4deg);
  animation-play-state: paused;
}

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

@media (max-width: 768px) {
  .warranty-badge {
    bottom: 20px;
    left: 16px;
    width: 80px;
  }
}

/* --- Floating Action Button --- */
.wa-widget__fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.wa-widget__fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.wa-fab__icon,
.wa-fab__close {
  position: absolute;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.wa-fab__close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.wa-widget.open .wa-fab__icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.wa-widget.open .wa-fab__close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* --- Chat Popup --- */
.wa-widget__chat {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s ease;
}

.wa-widget.open .wa-widget__chat {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- Chat Header --- */
.wa-widget__header {
  background: #075E54;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.wa-widget__header > svg {
  flex-shrink: 0;
}

.wa-widget__header > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wa-widget__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.wa-widget__status {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 300;
}

.wa-widget__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-widget__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- Chat Body --- */
.wa-widget__body {
  padding: 20px 18px;
  background: #ECE5DD;
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
}

.wa-widget__greeting {
  background: white;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
}

.wa-widget__greeting::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

.wa-widget__greeting p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #303030;
  margin: 0;
}

/* --- FAQ Questions --- */
.wa-widget__questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-widget__question {
  background: #DCF8C6;
  border: none;
  border-radius: 12px 0 12px 12px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Poppins', sans-serif;
  color: #303030;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  line-height: 1.4;
}

.wa-widget__question:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.wa-widget__question svg {
  flex-shrink: 0;
  color: #075E54;
}

/* --- FAQ Answer --- */
.wa-widget__answer-wrap {
  animation: waFadeIn 0.35s ease;
}

.wa-widget__selected-q {
  background: #DCF8C6;
  padding: 10px 14px;
  border-radius: 12px 0 12px 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #303030;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  line-height: 1.4;
  align-self: flex-end;
}

.wa-widget__answer {
  background: white;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
}

.wa-widget__answer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
}

.wa-widget__answer p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #303030;
  margin: 0;
}

.wa-widget__cta-wrap {
  margin-top: 8px;
}

.wa-widget__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.wa-widget__cta:hover {
  background: #1EB954;
  transform: translateY(-1px);
}

.wa-widget__cta svg {
  flex-shrink: 0;
}

@keyframes waFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-left.animated {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-right.animated {
  transform: translateX(0);
}

.animate-on-scroll.scale {
  transform: scale(0.9);
}

.animate-on-scroll.scale.animated {
  transform: scale(1);
}

/* Transition delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE — max-width: 1024px (Tablet)
   ============================================ */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }

  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Hero */
  .hero__content {
    max-width: 600px;
  }

  /* Stats Bar */
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 28px 32px;
  }

  /* El Corcho */
  .corcho-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* Apps Grid */
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cursos Grid */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Certs Grid */
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Products Grid — auto-fill handles columns */

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer Grid */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE — max-width: 768px (Mobile Large)
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .container {
    padding: 0 24px;
  }

  /* Hero */
  #hero {
    min-height: 100vh;
  }
  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
  }
  .hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 36px;
    padding: 0 10px;
  }
  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
  }
  .btn {
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  .hero__scroll-indicator {
    bottom: 40px;
  }

  /* Stats Bar */
  .stats-bar {
    margin-top: -60px;
    padding: 0 20px;
  }
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    padding: 36px 24px;
    border-radius: 20px;
  }
  .stat-item__number {
    font-size: 2.4rem;
  }
  .stat-item__label {
    font-size: 0.9rem;
    font-weight: 500;
  }

  /* El Corcho */
  .corcho-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .corcho-text {
    text-align: center;
  }
  .corcho-image-wrapper {
    margin: 12px 12px 0 12px;
  }
  .corcho-image-wrapper::before {
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
  }
  .corcho-properties {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
  }
  .property-card {
    padding: 24px 20px;
  }

  /* Apps Grid */
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .app-card {
    min-height: auto;
  }
  .app-card__image {
    aspect-ratio: 16/9;
    height: auto;
  }
  .app-card__body {
    padding: 28px 24px;
  }

  /* Gallery */
  .comparison-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .comparison-caption {
    padding: 20px 0 0;
    text-align: center;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  .product-card__image {
    height: 220px;
  }

  /* Colors */
  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }

  /* Certs & Courses */
  .certs-grid, .courses-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cert-badges {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* FAQ */
  .faq-list {
    grid-template-columns: 1fr;
  }
  .faq-item__header {
    padding: 20px 24px;
  }
  .faq-item__question {
    font-size: 1.05rem;
  }

  /* Advantages */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .advantage-item {
    font-size: 0.85rem;
    gap: 8px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info {
    text-align: center;
  }
  .contact-info__item {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .contact-schedule {
    margin: 32px auto;
    text-align: center;
  }
  .contact-form {
    padding: 36px 24px;
    border-radius: 20px;
  }

  /* Global Inputs for Mobile */
  .form-input, .form-select, .form-textarea {
    padding: 16px 18px;
    font-size: 1rem;
    min-height: 52px; /* Minimum tap target size */
  }

  /* Footer */
  .footer {
    padding: 70px 0 20px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .footer__logo {
    justify-content: center;
  }
  .footer__socials {
    justify-content: center;
  }
  .footer__social {
    justify-content: center;
  }
  .footer__contact-list li {
    justify-content: center;
  }
  .footer__bottom {
    margin-top: 50px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
  }
  .section-subtitle {
    text-align: center;
    display: block;
  }
  .section-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   RESPONSIVE — max-width: 480px (Mobile Small)
   ============================================ */
@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Navbar */
  .navbar__logo {
    font-size: 1.4rem;
  }
  .mobile-menu {
    width: 280px;
    padding: 80px 24px;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    margin-bottom: 20px;
  }
  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }
  .hero__scroll-indicator {
    bottom: 20px;
  }
  .hero__badge {
    font-size: 0.85rem;
    padding: 8px 20px;
    margin-bottom: 20px;
  }

  /* Stats Bar */
  .stats-bar__inner {
    padding: 24px 16px;
    gap: 24px 16px;
    border-radius: 16px;
  }
  .stat-item__number {
    font-size: 2rem;
  }
  .stat-item__label {
    font-size: 0.8rem;
  }

  /* Corcho */
  .corcho-properties {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .property-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .property-card__icon {
    font-size: 2.5rem;
  }

  /* Feature Tabs */
  .feature-tab__header {
    padding: 16px;
  }
  .feature-tab__title {
    font-size: 1rem;
  }
  .feature-tab__content {
    padding: 0 16px;
  }
  .feature-tab.active .feature-tab__content {
    padding: 0 16px 20px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .product-card__image {
    height: 200px;
    padding: 16px;
  }

  /* Color Grid */
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .color-swatch__color {
    height: 80px;
  }
  .color-filter {
    padding: 10px 16px;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
    border-radius: 10px;
  }

  /* Color Modal */
  .color-modal__content {
    padding: 24px;
    width: 90%;
  }
  .color-modal__preview {
    height: 140px;
  }

  /* FAQ */
  .faq-item__header {
    padding: 16px 20px;
  }
  .faq-item__question {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .faq-item__answer p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 24px 16px;
  }
  .contact-map iframe {
    height: 200px;
  }

  /* Footer */
  .footer__bottom {
    padding: 24px 0;
    font-size: 0.8rem;
  }

  /* WhatsApp Widget */
  .wa-widget {
    bottom: 16px;
    right: 16px;
  }
  .wa-widget__fab {
    width: 56px;
    height: 56px;
  }
  .wa-fab__icon {
    width: 32px;
    height: 32px;
  }
  .wa-widget__chat {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 72px;
  }

  /* Comparison slider */
  .comparison-handle::before {
    width: 44px;
    height: 44px;
  }
  .comparison-handle__icon {
    font-size: 1.3rem;
  }

  /* Buttons global */
  .btn {
    width: calc(100% - 40px);
    margin-left: 20px !important;
    margin-right: 20px !important;
    border-radius: 12px;
  }

  /* Promo product centered on mobile */
  .product-zoom-wrap {
    flex: 0 0 220px !important;
    margin: 0 auto;
  }
  .product-zoom-wrap img {
    transform: none !important;
  }
}

/* ============================================
   UTILITY: Selection highlight
   ============================================ */
::selection {
  background: var(--color-primary-lightest);
  color: var(--color-accent);
}

::-moz-selection {
  background: var(--color-primary-lightest);
  color: var(--color-accent);
}

/* ============================================
   UTILITY: Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-lightest);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ============================================
   COOKIES BANNER
   ============================================ */
.cookies-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 24px;
}

.cookies-banner.show {
  bottom: 0;
}

.cookies-banner__content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookies-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.cookies-banner a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookies-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookies-banner__content {
    flex-direction: column;
    text-align: center;
  }
  .cookies-banner__actions {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   DARK MODE AUTOMÁTICO
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
  --color-primary: #6eb245;
  --color-primary-light: #8ccf64;
  --color-primary-lighter: #aae08a;
  --color-primary-lightest: #d4f2c2;
  --color-primary-pale: #eefae6;
  --color-accent: #316039;
  --color-accent-warm: #316039;
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #f6fcf3;
  --color-bg-dark: #316039;
  --color-text-primary: #1A2E1C;
  --color-text-secondary: #316039;
  --color-text-light: #6eb245;
  --color-text-on-dark: #FFFFFF;
  --color-border: #E2E8F0;
  --color-shadow: rgba(110, 178, 69, 0.08);
}

  .navbar.scrolled {
    background: rgba(18, 18, 18, 0.85);
  }

  .navbar.scrolled .nav-link,
  .navbar.scrolled .hamburger span {
    color: rgba(255, 255, 255, 0.9);
  }

  .navbar.scrolled .navbar__logo {
    color: white;
  }

  .stats-bar__inner {
    background: rgba(26, 26, 26, 0.85);
  }

  .property-card, .feature-tab, .wa-widget__answer, .app-card__body, .product-card__body, .contact-form, .cert-card, .curso-card, .faq-item {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
  }

  .wave-separator__fill {
    fill: var(--color-bg-secondary);
  }

  /* Si alguna sección tiene un wave hacia sección primaria o dark */
  .wave-separator--dark .wave-separator__fill {
    fill: var(--color-bg-dark);
  }
  
  .wave-separator--light .wave-separator__fill {
    fill: var(--color-bg-primary);
  }

  .color-swatch {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
  }
  
  .color-modal__content {
    background: var(--color-bg-secondary);
  }
  
  .form-input, .form-select, .form-textarea {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-color: var(--color-border);
  }

  /* Prevenir conflicto en el texto de las tarjetas y preguntas de WhatsApp */
  .wa-widget__question {
    background: var(--color-primary-dark);
    color: var(--color-text-primary);
  }
}

/* ============================================
   MODAL POP-UP
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-bg-primary);
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
  }
}

/* ============================================
   MODERN ADVANTAGES
   ============================================ */
.modern-advantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.modern-advantage-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-bg-primary);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--color-shadow);
  border-color: var(--color-primary-lightest);
}

.modern-advantage-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-advantage-icon svg {
  width: 24px;
  height: 24px;
}

.modern-advantage-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modern-advantage-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .modern-advantage-card {
    background: var(--color-bg-secondary);
  }
}

/* ============================================
   INFO COLUMNS GRID
   ============================================ */
.info-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.info-column {
  background: var(--color-bg-primary);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.info-column:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.info-column__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--color-border);
}

.info-column__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.info-column__icon svg {
  width: 28px;
  height: 28px;
}

.info-column__header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: var(--color-text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.info-column__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-column__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.list-icon {
  font-weight: bold;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-column__list--red .list-icon {
  color: #e53e3e; /* Red color for substitutions to match screenshot arrows */
}

.info-column__list--green .list-icon {
  color: #38a169; /* Green checkmarks */
  background: rgba(56, 161, 105, 0.1);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-top: 0;
}

@media (prefers-color-scheme: dark) {
  .info-column {
    background: var(--color-bg-secondary);
  }
}

/* ============================================
   LOGO IMAGES STYLES
   ============================================ */
.navbar__logo img {
  max-height: 55px;
  width: auto;
  vertical-align: middle;
  transition: max-height 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 1px white) drop-shadow(0 0 2px white);
}

.navbar.scrolled .navbar__logo img {
  max-height: 45px; /* Shrink slightly when scrolled */
}

.footer__logo img {
  max-height: 45px;
  width: auto;
  vertical-align: middle;
}

.preloader__logo img {
  max-height: 60px;
  width: auto;
  animation: pulse 1.5s infinite;
}

/* ============================================
   NAVBAR CONTACT
   ============================================ */
.navbar__contact {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto; /* Pushes logo left and nav right */
}


.navbar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 992px) {
  .navbar__contact {
    display: none;
  }
}

@media (min-width: 993px) {
  .app-card:nth-child(7):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  .app-card:nth-child(8):nth-last-child(1) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 992px) {
  .app-card {
    grid-column: span 1 !important;
  }
}

/* Fix for subpages: push the first section down so it's not covered by the fixed navbar */
body > section.section:first-of-type {
  padding-top: 140px;
}
/* ============================================
   MODAL STATUS OVERLAYS (Forms)
   ============================================ */
.modal-status-overlay {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-radius: 12px;
}
.modal-status-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.btn-close-modal-success-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.btn-close-modal-success-top:hover {
  color: var(--color-primary);
  transform: scale(1.1) rotate(90deg);
}

/* --- Optimization Classes --- */
.mb-24 {
  margin-bottom: 24px !important;
}

.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

.custom-video-player::-internal-media-controls-download-button {
    display: none !important;
}
.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, background 0.3s ease;
}
.custom-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}
.custom-play-btn svg {
    width: 36px;
    height: 36px;
    fill: white;
    margin-left: 6px;
}

.vsl-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.vsl-wrapper::before {
  display: none;
}
.vsl-video-style {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  background-color: #000;
}
.video-aplicadores-style {
  width: 100%; height: auto; border-radius: 20px; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vsl-video-style:fullscreen,
.vsl-video-style:-webkit-full-screen {
  object-fit: contain;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-color: #000;
}
