/* ============================================
   DESPENSAS SAN JOSÉ — Design System
   Colors: Navy #000080 | White #FFFFFF | Gray #F2F2F2 | Black #1A1A1A
   Fonts: Barlow (headings) + Source Sans 3 (body)
   ============================================ */

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

:root {
  --navy: #000080;
  --navy-dark: #000060;
  --navy-light: #1a1a99;
  --white: #ffffff;
  --gray-bg: #f2f2f2;
  --gray-border: #d9d9d9;
  --gray-text: #6b6b6b;
  --black: #1a1a1a;
  --accent-gold: #c8a84e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 680px;
}

.section-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--gray-bg);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 60px;
  width: auto;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-cart::after { display: none !important; }

.nav-cart:hover {
  background: var(--navy-dark);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-gold);
  color: var(--black);
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.footer .container { max-width: 1200px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-logo {
  height: 70px;
  width: auto;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
  }

  .footer-col h4 {
    margin-bottom: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 1rem;
    font-size: 0.7rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width var(--transition);
}

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

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

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--navy-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--gray-text);
  line-height: 1.7;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

/* --- Galería armado --- */
.galeria-section {
  padding: 72px 0 0;
  overflow: hidden;
}

.galeria-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.galeria-header h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--black);
}

.galeria-header h2 span {
  color: var(--navy);
}

.galeria-cintilla {
  display: flex;
  gap: 6px;
  height: 340px;
  align-items: stretch;
}

.galeria-foto {
  flex: 1;
  background-color: #c8ccd8;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  transition: flex var(--transition);
}

.galeria-foto--tall {
  flex: 1.4;
}

.galeria-foto:hover {
  flex: 2;
}

@media (max-width: 768px) {
  .galeria-header h2 { font-size: 1.6rem; }
  .galeria-section { padding: 48px 0 0; }
  .galeria-cintilla {
    height: 230px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .galeria-cintilla::-webkit-scrollbar { display: none; }
  .galeria-foto,
  .galeria-foto--tall {
    flex: none;
    width: 72vw;
    height: 100%;
    aspect-ratio: unset;
    scroll-snap-align: start;
  }
  .galeria-foto:last-child {
    width: 72vw;
    aspect-ratio: unset;
  }
  .galeria-foto:hover { flex: none; }
}

/* --- Diferencial / Granos propios --- */
.diferencial-section {
  background: #f7f7fb;
  padding: 80px 0;
}

.diferencial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.diferencial-texto .section-label { display: block; margin-bottom: 0.75rem; }

.diferencial-texto h2 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.diferencial-texto > p {
  font-size: 1.05rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.diferencial-puntos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diferencial-punto {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diferencial-punto-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-top: 2px;
}

.diferencial-punto strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.diferencial-punto p {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0;
}

.diferencial-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.diferencial-foto {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background-color: #dde0e8;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.diferencial-foto:first-child {
  margin-top: 0;
}

.diferencial-foto-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,64,0.65);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .diferencial-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .diferencial-foto:first-child { margin-top: 0; }
  .diferencial-section { padding: 48px 0; }
  .diferencial-fotos {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  .diferencial-foto {
    aspect-ratio: 4/3;
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .diferencial-layout { gap: 1.5rem; }
  .diferencial-texto h2 { font-size: 1.55rem; }
  .diferencial-texto > p { font-size: 0.95rem; margin-bottom: 1.25rem; }
  .diferencial-fotos {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .diferencial-foto {
    aspect-ratio: 3/4;
    min-height: 160px;
  }
  .diferencial-punto-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .diferencial-punto strong { font-size: 0.92rem; }
  .diferencial-punto p { font-size: 0.85rem; }
}

/* --- Catalog Grid --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* --- Product / Despensa Card --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-text);
  font-family: 'Barlow', sans-serif;
  border-bottom: 1px solid var(--gray-border);
  overflow: hidden;
}

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

.card-body {
  padding: 0.85rem 1rem;
}

.card-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(0, 0, 128, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.card-body p {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--gray-border);
}

.card-price {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.card-action {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}

.card:hover .card-action {
  gap: 0.6rem;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-item {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.service-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 128, 0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Brands / Logos --- */
.brands-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.brand-logo {
  width: 110px;
  height: 110px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.brand-logo:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.brand-logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brands-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .brand-logo {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .brand-logo img {
    max-width: 62px;
    max-height: 62px;
  }
}

/* --- Modal / Detail Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-border);
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-bg);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-text);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--navy);
  color: var(--white);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.65rem; }


  section {
    padding: 3.5rem 0;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a:not(.nav-cart) {
    font-family: 'Barlow', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color var(--transition);
  }

  .nav-links a:not(.nav-cart):last-of-type {
    border-bottom: none;
  }

  .nav-links a:not(.nav-cart):hover {
    color: var(--white);
  }

  .nav-links .nav-cart {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-links .nav-cart:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .navbar:not(.scrolled) .nav-links.active a:not(.nav-cart) {
    color: rgba(255, 255, 255, 0.75);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 0;
  }

  .catalog-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    /* muestra borde de la siguiente card como señal de scroll */
    padding-right: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .catalog-grid::-webkit-scrollbar {
    display: none;
  }

  .catalog-grid > * {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.8rem; }

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

  .container {
    padding: 0 1rem;
  }
}


/* ============================================
   PÁGINA DE PRODUCTO (producto.html)
   ============================================ */

.producto-page {
  padding-top: 110px;  /* espacio para el navbar fijo */
  padding-bottom: 5rem;
  min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray-text);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb span:last-child {
  color: var(--navy);
  font-weight: 600;
}

/* Loading state */
.producto-loading {
  text-align: center;
  padding: 4rem 0;
  font-family: 'Barlow', sans-serif;
  color: var(--gray-text);
}

/* Error state */
.producto-error {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.producto-error h2 {
  margin-bottom: 1rem;
}

.producto-error p {
  margin: 0 auto 2rem;
}

/* Grid principal del producto */
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Galería */
.producto-galeria-principal {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.producto-galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.producto-img-placeholder {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* Info del producto */
.producto-info .card-tag {
  margin-bottom: 1rem;
}

.producto-titulo {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.producto-descripcion {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 1.75rem;
}

.producto-precio {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.producto-precio-cotizar {
  font-size: 1.4rem;
  color: var(--gray-text);
  font-weight: 600;
}

.producto-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 1.75rem;
}

.producto-meta-item {
  font-size: 0.92rem;
  color: var(--black);
}

.producto-meta-item span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-right: 0.5rem;
}

/* Selector de cantidad y botón */
.producto-acciones {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}

.cantidad-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cantidad-btn {
  width: 44px;
  height: 100%;
  background: var(--white);
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
}

.cantidad-btn:hover {
  background: var(--gray-bg);
}

.cantidad-selector input {
  width: 56px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border);
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}

.cantidad-selector input::-webkit-outer-spin-button,
.cantidad-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  flex: 1;
  justify-content: center;
}

/* Sección "¿Qué incluye?" */
.producto-contenido {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
}

.producto-contenido h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.producto-contenido-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.producto-contenido-lista li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--black);
  line-height: 1.5;
}

.producto-contenido-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .producto-page {
    padding-top: 90px;
    padding-bottom: 3rem;
  }

  .producto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .producto-titulo {
    font-size: 1.8rem;
  }

  .producto-precio {
    font-size: 1.7rem;
  }

  .producto-contenido {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {
  .producto-acciones {
    flex-direction: column;
  }

  .cantidad-selector {
    width: 100%;
    justify-content: space-between;
  }

  .cantidad-selector input {
    flex: 1;
  }
}
/* ============================================
   CHECKOUT Y ÉXITO — Entrega 3
   Agregar al final de styles.css
   ============================================ */

/* --- Página base de checkout --- */
.checkout-page {
  padding-top: 110px;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.checkout-vacio {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.checkout-vacio h2 {
  margin-bottom: 1rem;
}

.checkout-vacio p {
  margin: 0 auto 2rem;
}

/* --- Indicador de pasos --- */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--gray-border);
  z-index: 0;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.checkout-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-text);
  transition: all var(--transition);
}

.checkout-step span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
  transition: color var(--transition);
}

.checkout-step.active .checkout-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.checkout-step.active span {
  color: var(--navy);
}

.checkout-step.completed .checkout-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.checkout-step.completed .checkout-step-num::before {
  content: '✓';
}

.checkout-step.completed .checkout-step-num {
  font-size: 0;
}

.checkout-step.completed .checkout-step-num::before {
  font-size: 1rem;
}

/* --- Contenido del checkout --- */
.checkout-content {
  max-width: 760px;
  margin: 0 auto;
}

.checkout-section {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.checkout-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.checkout-section-desc {
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* --- Items del checkout (Paso 1) --- */
.checkout-items {
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-border);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-img {
  width: 60px;
  height: 60px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.checkout-item-precio {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.checkout-item-total {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

/* --- Totales --- */
.checkout-resumen-totales {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-family: 'Barlow', sans-serif;
}

.checkout-total-row span {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.checkout-total-row strong {
  font-size: 1rem;
  color: var(--black);
}

.checkout-total-row-comision strong {
  color: #c8a84e;
}

.checkout-total-row-final {
  border-top: 1px solid var(--gray-border);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
}

.checkout-total-row-final span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-total-row-final strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

/* --- Avisos --- */
.checkout-aviso {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.checkout-aviso strong {
  display: block;
  margin-bottom: 0.25rem;
}

.checkout-aviso-info {
  background: rgba(0, 0, 128, 0.06);
  border-left: 3px solid var(--navy);
  color: var(--black);
}

.checkout-aviso-warning {
  background: #fff8e6;
  border-left: 3px solid #c8a84e;
  color: #8b6a14;
}

.checkout-aviso-error {
  background: #fee;
  border-left: 3px solid #c00;
  color: #800;
}

.checkout-error {
  color: #c00;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 1.2rem;
}

/* --- Formularios --- */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

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

.form-group small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray-text);
  line-height: 1.4;
}

/* --- Radio groups --- */
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.radio-option:has(input:checked) {
  border-color: var(--navy);
  background: rgba(0, 0, 128, 0.04);
  color: var(--navy);
  font-weight: 600;
}

.radio-group-cards {
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-option-card:hover:not(.disabled) {
  border-color: var(--navy);
}

.radio-option-card:has(input:checked) {
  border-color: var(--navy);
  background: rgba(0, 0, 128, 0.03);
}

.radio-option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.radio-option-card input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.radio-card-content {
  flex: 1;
}

.radio-card-content strong {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.radio-card-content span {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.4;
}

.radio-card-info {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 600;
}

.radio-card-warning {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #c8a84e;
  font-weight: 600;
}

/* --- Acciones del checkout --- */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-border);
}

.checkout-actions .btn {
  flex: 1;
  justify-content: center;
}

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

/* --- Resumen final (Paso 5) --- */
.checkout-resumen-final {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.checkout-resumen-bloque {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.checkout-resumen-bloque h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.checkout-resumen-bloque p {
  font-size: 0.95rem;
  color: var(--black);
  margin: 0.2rem 0;
  max-width: none;
}

.checkout-resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--black);
  border-bottom: 1px dashed var(--gray-border);
}

.checkout-resumen-item:last-child {
  border-bottom: none;
}


/* ============================================
   PÁGINA DE ÉXITO
   ============================================ */

.exito-page {
  padding-top: 110px;
  padding-bottom: 5rem;
  min-height: 100vh;
}

.exito-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
}

.exito-icon {
  width: 96px;
  height: 96px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #16a34a;
}

.exito-card h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.exito-mensaje {
  font-size: 1.05rem;
  margin: 0 auto 2rem;
}

.exito-folio {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.exito-folio span {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
}

.exito-folio strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.exito-resumen {
  text-align: left;
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.exito-resumen h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.exito-items {
  margin-bottom: 1rem;
}

.exito-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--black);
  border-bottom: 1px dashed var(--gray-border);
}

.exito-item:last-child {
  border-bottom: none;
}

.exito-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 2px solid var(--gray-border);
  margin-top: 0.5rem;
}

.exito-total span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.exito-total strong {
  font-family: 'Barlow', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.exito-pasos {
  text-align: left;
  background: rgba(0, 0, 128, 0.04);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.exito-pasos h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.exito-pasos ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.exito-pasos ol li {
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.exito-pasos ol li strong {
  color: var(--navy);
}

.exito-acciones {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .checkout-page,
  .exito-page {
    padding-top: 90px;
  }

  .checkout-section {
    padding: 1.5rem;
  }

  .checkout-section h2 {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    margin-bottom: 2rem;
  }

  .checkout-step span {
    font-size: 0.6rem;
  }

  .checkout-step-num {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .checkout-actions {
    flex-direction: column-reverse;
  }

  .exito-card {
    padding: 2rem 1.5rem;
  }

  .exito-card h1 {
    font-size: 1.6rem;
  }

  .exito-pasos {
    padding: 1.25rem 1.5rem;
  }
}




/* ============================================
   HERO / BANNER — Fullscreen
   ============================================ */

.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: var(--navy);
  background-size: auto 100% !important;
  background-position: left bottom !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 128, 0.35) 0%,
    rgba(0, 0, 128, 0.65) 40%,
    rgba(0, 0, 128, 1)    55%,
    rgba(0, 0, 128, 1)    100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding-top: 70px;
  padding-bottom: 2rem;
}

.hero-content {
  max-width: 560px;
  color: var(--white);
}

.hero-badge-top {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--white);
}

.hero h1 span {
  color: var(--white);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 480px;
}

.hero-sub strong {
  color: var(--white);
}

.hero-features {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.hero-feature span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.hero-scroll-hint {
  margin-bottom: 1.25rem;
}

.hero-scroll-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(200, 168, 78, 0.35);
  padding-bottom: 0.15rem;
  transition: color var(--transition);
}

.hero-scroll-hint a:hover {
  color: #e8c96a;
}

.hero-scroll-hint svg {
  animation: bounce-down 1.5s ease-in-out infinite;
}

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

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
}

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

.hero-link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.hero-link:hover {
  color: var(--white);
}

.hero-clients {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.hero-clients span {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.hero-clients strong {
  color: var(--white);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.78rem;
}

.hero-memberships {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-family: 'Barlow', sans-serif;
}

.hero-memberships span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-memberships img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 5;
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh !important;
    background-size: 100% auto !important;
    background-position: center top !important;
  }

  .hero-overlay {
    background: rgba(0, 0, 128, 0.35);
  }

  .hero .container {
    justify-content: center;
    padding-top: 30vh;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
    background: var(--navy);
    padding: 2rem 1.5rem 3rem;
    border-radius: 0;
  }

  .hero-badge-top {
    background: rgba(0, 0, 128, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hero h1 { font-size: 2rem; }
  .hero-features { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-clients { justify-content: center; }
  .hero-memberships { justify-content: center; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 1.7rem; }

  .hero-features {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-features .hero-feature {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }

  .hero-features .hero-feature span {
    font-size: 0.72rem;
  }

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

  .hero-clients {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-clients-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-memberships {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-memberships img {
    height: 28px;
  }
}

/* --- Navbar transparent on hero --- */
.navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.navbar:not(.scrolled) .nav-links a:not(.nav-cart) {
  color: var(--white);
}

.navbar:not(.scrolled) .nav-links a:not(.nav-cart):hover {
  color: rgba(255,255,255,0.7);
}

.navbar:not(.scrolled) .nav-links a::after {
  background: var(--white);
}

.navbar:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

.navbar:not(.scrolled) .brand-logo-img {
  filter: brightness(0) invert(1);
}

/* ============================================
   PRODUCTO — Contenido inline mejorado
   ============================================ */

.producto-contenido-inline {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-border);
}

.producto-contenido-inline h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.producto-contenido-count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.producto-contenido-lista-inline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.producto-contenido-lista-inline li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.5;
}

.producto-contenido-lista-inline li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 500px) {
  .producto-contenido-lista-inline {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CARRITO — Mejoras de cantidad
   ============================================ */

.carrito-item-cant-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-right: 0.5rem;
}

.carrito-cant-input {
  -moz-appearance: textfield;
}

.carrito-cant-input::-webkit-outer-spin-button,
.carrito-cant-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ============================================
   CHECKOUT — Cantidad y datos bancarios
   ============================================ */

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-border);
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item-cantidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 80px;
}

.checkout-item-cantidad label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.checkout-cant-input {
  width: 70px;
  padding: 0.5rem;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  -moz-appearance: textfield;
  transition: border-color var(--transition);
}

.checkout-cant-input:focus {
  outline: none;
  border-color: var(--navy);
}

.checkout-cant-input::-webkit-outer-spin-button,
.checkout-cant-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.checkout-resumen-banco p {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.datos-bancarios {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1rem;
}

.dato-bancario {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-border);
  font-size: 0.9rem;
}

.dato-bancario:last-child { border-bottom: none; }

.dato-bancario span {
  color: var(--gray-text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dato-bancario strong {
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
}

.checkout-resumen-item-total {
  border-top: 2px solid var(--gray-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.checkout-resumen-item-total span strong { color: var(--navy); }

@media (max-width: 768px) {
  .checkout-item { flex-wrap: wrap; }
  .checkout-item-cantidad { min-width: auto; }
  .dato-bancario { flex-direction: column; gap: 0.2rem; }
}
/* --- Hero Nosotros --- */
.nosotros-hero {
  background: linear-gradient(rgba(0,0,128,.78), rgba(0,0,128,.78)),
              url('../img/proceso/bodega.png') center -100px/cover no-repeat;
  padding: 140px 0 4rem;
  color: var(--white);
}

.nosotros-hero .section-label {
  color: rgba(255,255,255,0.6);
  display: block;
  text-align: right;
}

.nosotros-hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: right;
}

.nosotros-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  text-align: right;
  margin-left: auto;
  line-height: 1.6;
}

/* --- Quiénes somos --- */
.nosotros-quienes {
  padding: 5rem 0;
  background: var(--white);
}

.quienes-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.quienes-encabezado h2 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-top: 0.75rem;
  line-height: 1.2;
}

.quienes-texto {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.quienes-texto p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 900px) {
  .quienes-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Identidad --- */
.nosotros-identidad {
  padding: 5rem 0;
  background: var(--white);
}

.identidad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.identidad-item {
  padding: 2.5rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
}

.identidad-item h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.identidad-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: none;
}

.identidad-highlight {
  background: var(--navy);
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.identidad-highlight span {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.identidad-highlight h3 {
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.2;
}

/* --- Valores --- */
.nosotros-valores {
  padding: 5rem 0;
  background: var(--gray-bg);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.valor-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.valor-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.valor-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 128, 0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.valor-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.valor-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-text);
  max-width: none;
}

/* --- Membresías --- */
.nosotros-memberships {
  padding: 4rem 0;
  background: var(--white);
}

.memberships-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.memberships-logos img {
  height: 60px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.memberships-logos img:hover {
  opacity: 1;
}

/* --- CTA --- */
.nosotros-cta {
  padding: 5rem 0;
  background: var(--navy);
  text-align: center;
}

.nosotros-cta h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.nosotros-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 2rem;
  max-width: 560px;
}

.nosotros-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.nosotros-cta .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nosotros-hero {
    padding: 120px 0 3rem;
    background: linear-gradient(rgba(0,0,128,.78), rgba(0,0,128,.78)),
                url('../img/proceso/bodega.png') center center/cover no-repeat !important;
  }
  .nosotros-hero .section-label { text-align: center; }
  .nosotros-hero h1 { font-size: 2.2rem; text-align: center; margin-left: 0; }
  .nosotros-hero p  { text-align: center; margin-left: auto; margin-right: auto; }
  .identidad-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .nosotros-hero { padding: 110px 0 3rem; }
  .nosotros-hero h1 { font-size: 1.8rem; }
  .memberships-logos { flex-direction: column; gap: 2rem; }

  .valores-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-right: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .valores-grid::-webkit-scrollbar {
    display: none;
  }

  .valores-grid > * {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }
}

/* Fix: evitar fondos alternados en nosotros */
.nosotros-hero,
.nosotros-identidad,
.nosotros-valores,
.nosotros-memberships,
.nosotros-cta {
  background-color: initial !important;
}

.nosotros-hero { background: linear-gradient(rgba(0,0,128,.78), rgba(0,0,128,.78)), url('../img/proceso/bodega.png') center -100px/cover no-repeat !important; }

@media (max-width: 900px) {
  .nosotros-hero { background: linear-gradient(rgba(0,0,128,.78), rgba(0,0,128,.78)), url('../img/proceso/bodega.png') center center/cover no-repeat !important; }
}
.nosotros-identidad { background: var(--white) !important; }
.nosotros-valores { background: var(--gray-bg) !important; }
.nosotros-memberships { background: var(--white) !important; }
.nosotros-cta { background: var(--navy) !important; }
