/* ========================================
   HERO SECTION (SPLIT LAYOUT)
   ======================================== */
.hero, .hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-8);
  background: var(--bg-t);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(circle at 10% 20%, var(--red-glow) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--blue-glow) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, var(--green-glow) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, var(--yellow-glow) 0%, transparent 40%);
  opacity: 0.8;
  animation: gradientPulse 10s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: var(--max-w);
  width: 100%;
}

@media (min-width: 992px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-text-side {
  flex: 1;
  text-align: left;
  max-width: 760px;
}

.hero-visual-side {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-style: italic;
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 0.78;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.55);
  color: #c9fbff;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-t);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted-t);
  margin-bottom: var(--space-8);
  max-width: 500px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
}

.catalog-button {
  margin-top: 12px;
}

.hero-phone-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--glow-blue);
  border: 2px solid rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform var(--t-slow);
}

.hero-visual-side:hover .hero-phone-img {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.05);
}

.hero-visual-label {
  position: absolute;
  bottom: 20px;
  right: 0;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--glow-green);
  border: 1px solid var(--green);
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-t);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   STEPS SECTION
   ======================================== */
.steps-section {
  padding: 4rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { 
  .steps-grid { grid-template-columns: repeat(4, 1fr); } 
}

.card-step {
  position: relative;
  background: var(--surface-t);
  border: 1px solid var(--border-t);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.card-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  opacity: 0;
  transition: opacity var(--t-normal);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}
.card-step:hover::before { opacity: 1; }
.card-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--surface-t);
  color: var(--text-t);
  border: 2px solid var(--step-color, var(--red));
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  font-family: var(--font-head);
  box-shadow: 0 0 15px var(--step-color, var(--red));
  margin-bottom: 0.5rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--yellow);
}

.card-step h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-t);
  margin: 0;
}
.card-step p {
  color: var(--muted-t);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   LOCATIONS SECTION
   ======================================== */
.locations-section {
  padding: 4rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .locations-grid { grid-template-columns: repeat(3, 1fr); } }

.card-sede {
  position: relative;
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  will-change: transform;
}
.card-sede:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.sede-content {
  background: var(--surface-t);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sede-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--border-t);
}
[data-theme="light"] .sede-info {
  background: rgba(255,255,255,0.5);
}
.sede-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.sede-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.sede-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sede-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.sede-desc {
  color: var(--muted-t);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}
.sede-map-link {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--surface-2t);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.sede-map-link:hover {
  background: var(--blue);
  color: #fff;
}
.badge-type {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bg-red { background: var(--red); color: white; box-shadow: var(--glow-red); }
.bg-blue { background: var(--blue); color: white; box-shadow: var(--glow-blue); }
.bg-green { background: var(--green); color: white; box-shadow: var(--glow-green); }

.map-container {
  flex-grow: 1;
  min-height: 250px;
  width: 100%;
  position: relative;
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(80%);
  transition: filter var(--t-normal);
}
.card-sede:hover .map-container iframe {
  filter: none; /* Show normal map on hover */
}

/* ========================================
   CATALOG PREVIEW SECTION
   ======================================== */
.catalog-preview-section {
  padding: 4rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 480px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }

.card-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface-2t);
  border: 2px solid var(--border-t);
  border-radius: var(--r-xl);
  padding: 40px 20px;
  text-decoration: none;
  color: var(--text-t);
  transition: all var(--t-normal);
  aspect-ratio: 1/1;
}
.catalog-preview-section-wrapper .card-category {
  min-height: 150px;
  padding: 20px 14px;
  aspect-ratio: auto;
  border-radius: var(--r-lg);
}
.catalog-preview-section-wrapper .card-category .cat-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
}
.catalog-preview-section-wrapper .card-category h3 {
  font-size: 1rem;
}
.card-category:hover {
  transform: translateY(-10px) scale(1.05);
  background: var(--surface-t);
}
.card-category:nth-child(1):hover { box-shadow: var(--glow-blue); }
.card-category:nth-child(2):hover { box-shadow: var(--glow-green); }
.card-category:nth-child(3):hover { box-shadow: var(--glow-red); }
.card-category:nth-child(4):hover { box-shadow: var(--glow-yellow); }

.cat-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  transition: transform var(--t-normal);
}
  min-height: auto;

.card-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews-section {
  padding: 4rem 0;
  overflow: hidden;
}

.reviews-section .section-title {
  padding: 0 1.5rem;
}

.reviews-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-marquee {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.marquee-fast { animation: review-scroll 30s linear infinite; }
.marquee-medium { animation: review-scroll 40s linear infinite; }
.marquee-slow { animation: review-scroll 50s linear infinite; }
.reverse { animation-direction: reverse; }

.reviews-marquee:hover {
  animation-play-state: paused;
}

@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.card-review {
  width: 350px;
  min-width: 300px;
  max-width: 350px;
  background: var(--surface-t);
  border: 1px solid var(--border-t);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  will-change: transform, box-shadow;
}
.card-review:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glow-blue);
  border-color: var(--blue);
  z-index: 10;
}
.stars {
  font-size: 1.25rem;
  color: var(--yellow);
  letter-spacing: 2px;
}
.review-text {
  color: var(--muted-t);
  font-size: 1rem;
  line-height: 1.625;
  font-style: italic;
  flex-grow: 1;
  white-space: normal;
}
.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.author-name {
  font-weight: 700;
  color: var(--text-t);
}
.author-location {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: var(--surface-3);
  border-top: 1px solid var(--border-t);
  padding: 80px var(--space-6) 40px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--max-w);
  margin: 0 auto 60px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-col h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-t); }
.footer-col a { color: var(--muted-t); text-decoration: none; font-size: 1rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--yellow); }
.footer-col p { color: var(--muted-t); font-size: 1rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--border-t);
  padding-top: 40px;
  text-align: center;
  color: var(--muted-t);
  font-size: 0.9rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ========================================
   INTERNAL PAGES (Category, Cart, etc)
   ======================================== */
.category-hero {
  padding: 80px var(--space-6);
  border-radius: var(--r-xl);
  margin-bottom: 60px;
  text-align: center;
  background: var(--surface-t);
  border: 1px solid var(--border-t);
}
.category-hero h1 {
  font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  overflow-wrap: anywhere;
}
.category-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
.category-grid > * {
  min-width: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 480px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-t);
  border-left: 1px solid var(--border-t);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.drawer.open { transform: translateX(0); }

.badge-cart {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-red);
}

.toast-container {
  position: fixed;
  top: 100px; right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}
.toast {
  background: var(--surface-t);
  border: 1px solid var(--border-t);
  padding: 16px 24px;
  border-radius: var(--r-lg);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  color: var(--text-t);
  pointer-events: auto;
}
.toast-success { border-left: 4px solid var(--green); }
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

@media (max-width: 767px) {
  .hero,
  .hero-section {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: clamp(2.75rem, 15vw, 5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .hero-visual-side {
    min-height: 260px;
  }

  .hero-phone-img {
    width: 75%;
    max-width: 280px;
  }

  .hero-visual-label {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .steps-section,
  .locations-section,
  .catalog-preview-section {
    padding: 2.5rem 1rem;
  }

  .category-hero {
    padding: 2rem 1rem !important;
    margin-bottom: 2rem !important;
  }

  .category-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }

  .main-footer {
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
  }

  .section-title {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .drawer {
    width: calc(100vw - 16px);
    max-width: none;
  }

  /* Keep decorative character backgrounds inside their own sections on phones. */
  .hero-section > .parallax,
  .combined-info-section > .parallax,
  .catalog-preview-section-wrapper > .parallax,
  .reviews-section-wrapper > .parallax {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 0 !important;
  }

  .combined-info-section,
  .catalog-preview-section-wrapper,
  .reviews-section-wrapper {
    overflow: visible !important;
  }

  .reviews-section-wrapper .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .card-review {
    width: 82vw;
    min-width: 82vw;
    max-width: 320px;
    padding: 1rem;
  }
}



