/* ========================================= */
/* === ESTILOS BASE Y DE LA TIENDA === */
/* ========================================= */
:root {
  --site-topbar-h: 60px; /* 52px contenido + 4px padding vertical arriba y abajo */
  --tienda-nav-h: 44px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  height: 100%;
  /* Evita salto de layout cuando aparece la barra de desplazamiento */
  scrollbar-gutter: stable;
}

body {
  background-color: #f5f7fa; /* Fondo de la Landing */
  color: #1a1a1a;
  padding-top: var(--site-topbar-h);
  min-height: 100%;
}

/* Páginas con solo topbar + main + footer: el pie queda abajo del viewport */
body.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.site-page > main.page-shell {
  flex: 1 0 auto;
  min-height: 0;
}

/* Landing: el footer interior baja al fondo cuando hay poco contenido */
#credismas-landing {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--site-topbar-h));
}

#main-footer {
  margin-top: auto;
}

/* Barra superior global (todas las páginas) */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--site-topbar-h);
  background-color: #0a1f44;
  color: #fff;
  z-index: 2400;
  display: flex;
  align-items: center;
  padding: 4px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 64px;
}

.site-topbar-brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
  margin-left: 48px;
}

.site-topbar-title {
  font-size: 1.5rem;
  line-height: 1.1;
}

.site-topbar-logo-img {
  height: 28px;
  width: auto;
  display: block;
  padding: 4px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 10px;
  box-sizing: content-box;
}

.site-topbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-topbar-nav a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  padding: 6px 2px 10px;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  margin: 0 auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.1, 0.64, 1);
  pointer-events: none;
}

.site-topbar-nav a:hover {
  color: rgba(255, 255, 255, 1);
}

.site-topbar-nav a:hover::after {
  transform: scaleX(1);
}

.site-topbar-nav a:focus {
  outline: none;
}

.site-topbar-nav a:focus-visible {
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-topbar-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-topbar-nav a:active {
  color: rgba(255, 255, 255, 0.95);
}

.site-topbar-nav a[aria-current="page"] {
  color: #fff;
}

.site-topbar-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .site-topbar-nav a,
  .site-topbar-nav a::after {
    transition-duration: 0.01ms;
  }
}

.site-topbar-brand:hover,
.site-topbar-brand:focus,
.site-topbar-brand:focus-visible,
.site-topbar-brand:active {
  background: transparent;
  background-color: transparent;
}

/* Páginas legales / vacías */
.page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Nosotros y Política de privacidad (body.site-page) */
body.site-page .page-shell {
  max-width: 1080px;
  padding: 32px 48px 48px;
}

body:not(.site-page) .page-shell {
  min-height: 50vh;
}

/* Página Nosotros */

.about-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #dde3ea;
}

.about-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0a1f44;
  margin-bottom: 0.35rem;
}

.about-title {
  font-size: 2.15rem;
  font-weight: 700;
  color: #0a1f44;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.about-title-rest {
  font-size: 1.35rem;
  font-weight: 600;
  color: #3d4f6f;
  letter-spacing: -0.02em;
}

.about-hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  max-width: 40em;
  margin: 0;
}

.about-brand {
  color: #dc3545;
}

.about-summary {
  margin-bottom: 2.5rem;
}

.about-summary-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 1rem;
}

.about-summary-card {
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 30px rgba(10, 31, 68, 0.06);
}

.about-summary-card p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.about-summary-card p:last-child {
  margin-bottom: 0;
}

.about-pillars {
  margin-bottom: 2.5rem;
}

.about-pillars-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.about-pillar {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 12px rgba(10, 31, 68, 0.05);
}

.about-pillar-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.about-pillar-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 0 0 0.5rem;
}

.about-pillar p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0;
}

.about-section {
  margin-bottom: 1.75rem;
}

.about-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a1f44;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 0.85rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-mvv {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid #dde3ea;
}

.about-mvv-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #dc3545;
  margin-bottom: 1.25rem;
}

.about-mvv-block {
  margin-bottom: 1.75rem;
}

.about-mvv-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a1f44;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.about-mvv-block p {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  margin: 0;
}

.about-mvv-values {
  margin-top: 1.75rem;
}

.about-mvv-values .about-mvv-title {
  margin-bottom: 1rem;
}

.about-values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.about-value-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.06);
}

.about-value-card h3,
.about-value-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.about-value-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0;
}

.about-offices {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #dde3ea;
}

/* Oficinas en landing y en página Crédito (mismo contenido que Nosotros) */
#credismas-landing .landing-offices.about-offices,
.credito-page .landing-offices.about-offices {
  margin-top: 0;
  padding: 48px 10% 56px;
  border-top: 1px solid #e0e6ef;
  border-bottom: 1px solid #e8ecf0;
  background: #fafbfd;
  max-width: none;
}

/* Misma presencia que en la landing: ancho completo del viewport */
.credito-page .landing-offices.about-offices {
  margin-top: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

#credismas-landing .landing-offices.about-offices > h2,
#credismas-landing .landing-offices.about-offices > h3,
#credismas-landing .landing-offices.about-offices > .about-address,
#credismas-landing .landing-offices.about-offices > .about-contact,
.credito-page .landing-offices.about-offices > h2,
.credito-page .landing-offices.about-offices > h3,
.credito-page .landing-offices.about-offices > .about-address,
.credito-page .landing-offices.about-offices > .about-contact {
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.about-offices h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a1f44;
  margin-bottom: 1rem;
}

.about-offices h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0a1f44;
  margin-bottom: 0.5rem;
}

.about-address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.about-contact {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

.about-contact a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
}

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

/* Política de privacidad */
.legal-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0a1f44;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.legal-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.75rem;
}

.legal-page section {
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a1f44;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.legal-page p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.85rem;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding-left: 0.5rem;
  line-height: 1.65;
  color: #333;
}

.legal-list li {
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

.legal-contact-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  background: #f0f3f8;
  border-radius: 10px;
  border-left: 4px solid #0a1f44;
}

.legal-contact-block dt {
  font-weight: 600;
  font-size: 0.88rem;
  color: #0a1f44;
  margin-top: 0.65rem;
}

.legal-contact-block dt:first-child {
  margin-top: 0;
}

.legal-contact-block dd {
  margin: 0.2rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.legal-contact-block a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
}

.legal-contact-block a:hover {
  text-decoration: underline;
}

.legal-url {
  word-break: break-word;
}

.legal-url a {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
}

.legal-url a:hover {
  text-decoration: underline;
}

.legal-updated {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dde3ea;
  font-size: 0.95rem;
  color: #444;
}

.site-footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.85rem;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: transparent;
  background-color: transparent;
}

.site-footer-links a:hover,
.site-footer-links a:focus,
.site-footer-links a:focus-visible,
.site-footer-links a:active {
  color: #fff;
  text-decoration: underline;
  background: transparent;
  background-color: transparent;
}

.site-footer-sep {
  opacity: 0.45;
  user-select: none;
}

@media (max-width: 520px) {
  .site-topbar-title {
    display: none;
  }

  .site-topbar-nav {
    gap: 12px;
  }
}

/* Estilos específicos de la Tienda */
.tienda-body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif !important;
  background: #f5f5f7; /* Fondo de la tienda */
}

/* Contenedor principal de la tienda, inicialmente oculto */
#tienda-container {
  display: none;
  min-height: 100vh;
}

/* Navegación de la Tienda */
nav {
  background: transparent;
  padding: 0;
  position: sticky;
  top: var(--site-topbar-h);
  z-index: 1000;
}

#tienda-container nav {
  color: #1d1d1f;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 44px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links li {
  position: relative;
}

#tienda-container .nav-links a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.85;
  transition: opacity 0.3s;
  cursor: pointer;
}

#tienda-container .nav-links a:hover {
  opacity: 1;
}

#tienda-container .apple-logo {
  font-size: 20px;
  position: absolute;
  left: 20px;
  color: #1d1d1f;
  text-decoration: none;
  cursor: pointer;
}

/* Menú desplegable */
.dropdown-menu {
  position: fixed;
  top: calc(var(--site-topbar-h) + var(--tienda-nav-h));
  left: 0;
  width: 100%;
  background: #f5f5f7;
  opacity: 0;
  visibility: hidden;
  padding: 60px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 998;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
}

.dropdown-content {
  max-width: 1200px;
  margin: 0 auto;
}

.dropdown-title {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 30px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.product-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.product-image-placeholder {
  width: 200px;
  height: 280px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #e0e7ee 0%, #c8d5e3 100%);
  border-radius: 30px;
  position: relative;
}

.product-card.orange .product-image-placeholder {
  background: linear-gradient(135deg, #d97757 0%, #c86d4f 100%);
}
.product-card.blue .product-image-placeholder {
  background: linear-gradient(135deg, #a3b8d9 0%, #8fa3c4 100%);
}
.product-card.purple .product-image-placeholder {
  background: linear-gradient(135deg, #c4b5d9 0%, #b0a1c4 100%);
}
.product-card.darkblue .product-image-placeholder {
  background: linear-gradient(135deg, #3a4d7f 0%, #2d3e6b 100%);
}
.product-card.white .product-image-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-badge {
  color: #d35f3f;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-name {
  font-size: 21px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 8px;
}

.product-price {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 15px;
}

.product-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.product-link {
  color: #0071e3;
  text-decoration: none;
  font-size: 14px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: calc(var(--site-topbar-h) + var(--tienda-nav-h));
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 997;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

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

/* Secciones de productos */
.product-section {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  margin-bottom: 12px;
}

.product-section h1 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.product-section .subtitle {
  font-size: 28px;
  margin-bottom: 5px;
  color: #1d1d1f;
}

.product-images {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.phone-view {
  width: 120px;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.phone-view:nth-child(1) {
  background: linear-gradient(135deg, #2d3e50 0%, #4a5f7f 100%);
}
.phone-view:nth-child(2) {
  background: linear-gradient(135deg, #e0e7ee 0%, #c8d5e3 100%);
  transform: rotateY(15deg);
}
.phone-view:nth-child(3) {
  background: linear-gradient(135deg, #3a4a5c 0%, #5a6e82 100%);
}

/* Sección iPhone 17 */
.iphone17-section {
  background: #f5f5f7;
}

.fan-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(
    45deg,
    #1d1d1f 20%,
    #e8e5ff 25%,
    #d4f1f9 30%,
    #fffacd 35%,
    #1d1d1f 40%
  );
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mapa */
#mapa-tiendas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
}

#cerrar-mapa {
  position: absolute;
  top: 15px;
  right: 20px;
  background-color: #1d1d1f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  z-index: 3000;
}

/* Modal de Detalles del Producto */
#product-detail-modal {
  display: none;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1100;
  overflow-y: scroll;
}

#close-product-modal-btn {
  position: absolute; /* Cambiado de sticky a absolute para mejor compatibilidad */
  top: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1101;
}

#product-detail-modal .modal-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ========================================= */
/* === ESTILOS DE LA LANDING (CrediMás) === */
/* ========================================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  padding: 60px 0 72px;
  background-color: #ffffff;
  min-height: 90vh;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.text-section {
  flex: 1;
  max-width: 600px;
}
.logo {
  width: 200px;
  margin-bottom: 20px;
}
.logo img {
  max-width: 100%;
  height: auto;
}

.text-section h1 {
  font-size: 2.4rem;
  color: #0a1f44;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.text-section p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 400;
}

.text-section p.hero-subline {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36em;
  margin-bottom: 28px;
}

/* Contenedor de botones ajustado para centrar un único elemento */
.buttons {
  display: flex;
  justify-content: center; /* Centra el botón restante */
  flex-wrap: wrap;
  gap: 15px;
}

.btn-landing {
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-landing.tienda {
  background-color: #0a1f44;
  color: white;
}
.btn-landing.vender {
  background-color: #ffffff;
  color: #0a1f44;
  border: 2px solid #0a1f44;
}

.btn-landing.vender:hover {
  background-color: #dc3545;
  color: white;
  border: 2px solid #dc3545;
}

.image-section {
  flex: 0 1 auto;
  margin: 1rem 0 1rem clamp(1.5rem, 4vw, 3rem);
}

.image-section img {
  width: 420px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* — Carrusel del hero — */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
}

.hero-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.hero-carousel-track {
  display: flex;
  width: 300%;
  will-change: transform;
  margin-top: 24px;
}

.hero-slide {
  flex: 0 0 33.333333%;
  box-sizing: border-box;
  min-width: 0;
  /* Espacio inferior para que el contenido no quede bajo los indicadores */
  padding: 0 clamp(2rem, 9vw, 6.5rem) clamp(2.75rem, 7vw, 4.5rem);
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 50%;
  background: rgba(130, 168, 218, 0.42);
  color: #0a1f44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.1);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.hero-carousel-btn:hover {
  background: rgba(100, 145, 205, 0.55);
  border-color: rgba(10, 31, 68, 0.2);
}

.hero-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-carousel-prev {
  left: clamp(8px, 2.5vw, 28px);
}

.hero-carousel-next {
  right: clamp(8px, 2.5vw, 28px);
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 6px 10px;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #0a1f44;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-carousel-dot:hover {
  background: rgba(10, 31, 68, 0.25);
}

.hero-carousel-dot.is-active {
  background: #0a1f44;
  transform: scale(1.15);
}

/* Panel tienda — misma tarjeta que slide 3 (fondo blanco) */
.hero-slide-store .hero-credi-card-body {
  position: relative;
  padding-bottom: clamp(44px, 5.5vw, 58px);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-store-card-foot {
  position: absolute;
  bottom: clamp(18px, 2.5vw, 26px);
  right: clamp(28px, 5vw, 48px);
  left: auto;
  z-index: 3;
  text-align: right;
}

.hero-store-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, min(38vw, 380px));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  flex: 1;
  min-height: 0;
}

.hero-slide-store .hero-store-points {
  margin: 0 0 22px;
  padding-left: 1.15em;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-slide-store .hero-store-points li {
  margin-bottom: 8px;
}

.hero-slide-store .hero-store-points li::marker {
  color: #0a1f44;
}

.hero-slide-store .hero-store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hero-slide-store .hero-store-card-foot .hero-store-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a1f44;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.hero-slide-store .hero-store-card-foot .hero-store-secondary:hover {
  border-bottom-color: #dc3545;
  color: #dc3545;
}

.hero-store-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-store .hero-store-phone-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: 0 12px 36px rgba(10, 31, 68, 0.12);
}

/* CTA principal slide tienda */
.hero-slide-store .credito-cta-btn.hero-store-cta {
  gap: 8px;
  font-size: 0.9rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.22);
  background-color: #0a1f44;
}

.hero-slide-store .credito-cta-btn.hero-store-cta:hover {
  background-color: #122a52;
  box-shadow: 0 12px 28px rgba(10, 31, 68, 0.28);
}

/* Panel Estrena con Credi+ — tarjeta (referencia adaptada a marca) */
.hero-credi-card-wrap {
  width: 100%;
  max-width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Slides 1–3: misma altura de tarjeta */
.hero-slide-main,
.hero-slide-store,
.hero-slide-credi {
  display: flex;
  flex-direction: column;
}

.hero-slide-main > .hero-credi-card-wrap,
.hero-slide-store > .hero-credi-card-wrap,
.hero-slide-credi > .hero-credi-card-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
  min-height: 0;
}

.hero-slide-main .hero-credi-card,
.hero-slide-store .hero-credi-card,
.hero-slide-credi .hero-credi-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(34rem, 56vh, 44rem);
}

.hero-slide-main .hero-credi-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero-slide-credi .hero-credi-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

/* Slide 1: rejilla copia + imagen dentro de la tarjeta */
.hero-main-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, min(38vw, 380px));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.hero-main-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-main .hero-main-hero-img {
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: 0 12px 36px rgba(10, 31, 68, 0.12);
}

.hero-credi-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow:
    0 16px 48px rgba(10, 31, 68, 0.08),
    0 2px 8px rgba(10, 31, 68, 0.04);
}

.hero-credi-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-credi-geo-1 {
  top: -56px;
  right: -56px;
  width: 240px;
  height: 240px;
  background: rgba(90, 143, 212, 0.12);
  opacity: 1;
}

.hero-credi-geo-2 {
  bottom: -72px;
  left: -48px;
  width: 200px;
  height: 200px;
  background: rgba(220, 53, 69, 0.06);
  opacity: 1;
}

.hero-credi-geo-3 {
  top: 36px;
  right: 36px;
  width: 96px;
  height: 96px;
  background: rgba(10, 31, 68, 0.04);
}

.hero-credi-card-body {
  position: relative;
  z-index: 2;
  padding: 34px clamp(28px, 5vw, 48px) 28px;
  text-align: left;
}

.hero-credi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f4fa;
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero-credi-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.hero-credi-badge span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0a1f44;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-credi-card-title {
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(1.95rem, 4.8vw, 2.45rem);
  font-weight: 800;
  color: #0a1f44;
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero-credi-plus {
  color: #dc3545;
}

.hero-credi-card-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  margin: 0 0 12px;
  line-height: 1.55;
  max-width: 42rem;
}

.hero-credi-sfp-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #666;
  margin: 0 0 24px;
  max-width: 48rem;
}

.hero-credi-steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
}

.hero-credi-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
}

.hero-credi-step span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
  max-width: 140px;
}

.hero-credi-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 31, 68, 0.06);
  border: 1.5px solid rgba(10, 31, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0a1f44;
}

.hero-credi-step-line {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: rgba(10, 31, 68, 0.12);
  margin-top: 25px;
  position: relative;
}

.hero-credi-step-line-dot {
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: #dc3545;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

@media (max-width: 520px) {
  .hero-credi-card-body {
    padding: 26px 22px 22px;
  }

  .hero-credi-step span {
    font-size: 0.72rem;
    max-width: 88px;
  }
}

@media (max-width: 900px) {
  .hero-store-card-grid,
  .hero-main-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide-main .hero-main-card-grid {
    text-align: center;
  }

  .hero-slide-main .logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide-main .hero-main-visual {
    order: -1;
    justify-content: center;
  }

  .hero-slide-main .hero-main-hero-img {
    max-width: 360px;
  }

  .hero-slide-store .hero-store-visual {
    order: -1;
    justify-content: center;
  }

  .hero-slide-store .hero-store-phone-img {
    max-width: 360px;
  }

  .hero-slide-store .hero-credi-card-body {
    padding-bottom: clamp(30px, 4vw, 42px);
  }

  .hero-store-card-foot {
    position: static;
    margin-top: 0.75rem;
    text-align: right;
    width: 100%;
  }
}

/* Bloque “Comprar en CrediMás” (landing) */
.landing-highlights {
  background: linear-gradient(180deg, #f0f4fa 0%, #f5f7fa 100%);
  padding: 56px 10% 64px;
  text-align: center;
}

.landing-section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.landing-section-lead {
  font-size: 1.1rem;
  color: #444;
  max-width: 38em;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Grid y tarjetas: mismo estilo que “Paga cuando quieras” en Crédito */
.credito-pay-grid,
.landing-highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-highlight-cards {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.credito-pay-card,
.landing-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: #f0f4fa;
  border: 1px solid #e0e6ef;
  border-radius: 14px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.credito-pay-card:hover,
.landing-highlight-card:hover {
  background: #fff;
  border-color: rgba(10, 31, 68, 0.2);
}

.credito-pay-emoji,
.landing-highlight-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.landing-highlight-icon {
  display: block;
}

.credito-pay-card strong,
.landing-highlight-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.credito-pay-desc,
.landing-highlight-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #777;
  margin: 0;
}

/* FAQ acordeón (landing) */
.faq-section {
  background-color: #fff;
  padding: 56px 10% 72px;
}

.faq-section .landing-section-title {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-intro {
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  margin: 0 auto 2rem;
  line-height: 1.55;
  max-width: 36em;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fafbfd;
  overflow: hidden;
  transition:
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open {
  border-color: #c5d4e8;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.08);
  background: #fff;
}

.faq-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem 1rem 2.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #0a1f44;
  text-align: left;
  position: relative;
  user-select: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-trigger:hover {
  color: #122a52;
}

.faq-trigger:focus {
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid rgba(10, 31, 68, 0.35);
  outline-offset: -2px;
}

.faq-trigger::before {
  content: "+";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc3545;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.15, 0.64, 1),
    color 0.3s ease;
}

.faq-item.is-open .faq-trigger::before {
  content: "−";
  transform: translateY(-50%) scale(1.05);
}

/* Animación de altura: grid 0fr → 1fr */
.faq-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  min-height: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.faq-item.is-open .faq-panel-wrap {
  grid-template-rows: 1fr;
}

.faq-panel {
  min-height: 0;
  overflow: hidden;
  padding: 0 1.15rem 1.1rem 2.75rem;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-panel {
  opacity: 1;
  pointer-events: auto;
  user-select: text;
}

.faq-panel p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-panel-wrap,
  .faq-trigger::before {
    transition-duration: 0.01ms !important;
  }
}

/* Seccion Vender con CrediMás (visible) */
#how-it-works {
  background-color: #f5f7fa;
  padding: 80px 10%;
  text-align: center;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#how-it-works.visible {
  display: block;
  opacity: 1;
}

#how-it-works .section-title {
  font-size: 2.2rem;
  color: #dc3545; /* Rojo de CrediMás */
  margin-bottom: 10px;
  font-weight: 700;
}
.section-subtitle {
  font-size: 1.3rem;
  color: #0a1f44; /* Azul Oscuro de CrediMás */
  margin-bottom: 40px;
  font-weight: 400;
}

.contact-btn {
  background-color: #0a1f44; /* Azul Oscuro de CrediMás */
  color: white;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 50px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #dc3545; /* Rojo de CrediMás en hover */
}

.steps-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-card .icon {
  width: 40px;
  height: 40px;
  background-color: #2d85d7; /* Iconos Azules */
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

footer {
  background-color: #0a1f44;
  color: white;
  text-align: center;
  padding: 19px 15px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  .image-section {
    margin: 24px;
    width: 100%;
  }
  .image-section img {
    margin-top: 8px;
    width: 300px;
  }
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================= */
/* === ESTILOS DEL CHATBOT ZUKI === */
/* ========================================= */

/* Contenedor Flotante del Botón */
#chatbot-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #0a1f44;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1500;
  transition: transform 0.3s ease;
}

#chatbot-button:hover {
  transform: scale(1.05);
}

/* Ventana del Chat */
#chat-modal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1500;
  overflow: hidden;
}

/* Encabezado del Chat */
.chat-header {
  background-color: #0a1f44;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chat-header .close-btn {
  cursor: pointer;
  font-size: 20px;
}

/* Cuerpo del Chat */
.chat-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
}

/* Estilo del Mensaje del Bot */
.bot-message {
  background-color: #e6e6e6;
  padding: 10px 15px;
  border-radius: 15px 15px 15px 0;
  margin-bottom: 10px;
  max-width: 80%;
  align-self: flex-start;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Estilo del Mensaje del Usuario */
.user-message {
  background-color: #0a1f44;
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 0 15px;
  margin-bottom: 10px;
  max-width: 80%;
  align-self: flex-end;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Contenedor de Opciones */
.topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  align-self: flex-start;
}

.topic-btn,
.back-btn,
.sub-btn {
  background-color: white;
  color: #0a1f44;
  border: 1px solid #0a1f44;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-align: left;
  flex: 1 1 100%;
  min-width: 100%;
}

.topic-options .topic-btn:first-child,
.topic-options .topic-btn:nth-child(2),
.topic-options .sub-btn {
  flex: 1 1 48%;
  min-width: 45%;
}

.topic-options .sub-btn {
  flex: 0 1 auto;
  min-width: 100px;
  text-align: center;
}

.topic-btn:hover,
.back-btn:hover,
.sub-btn:hover {
  background-color: #0a1f44;
  color: white;
  border-color: #0a1f44;
}

/* Área de input */
.chat-input {
  padding: 15px;
  border-top: 1px solid #ddd;
  display: flex;
}

.chat-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  margin-right: 10px;
}

.chat-input button {
  background-color: #dc3545; /* Rojo CrediMás */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Ocultar el botón del chat en la tienda */
.tienda-body #chatbot-button {
  display: none;
}

/* ========================================= */
/* === ESTILOS DE LOS FORMULARIOS === */
/* ========================================= */
#partner-form,
#quote-form {
  display: none; /* Inicialmente oculto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  overflow-y: auto;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#partner-form.visible,
#quote-form.visible {
  display: block;
  opacity: 1;
}

.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1201;
}

.form-container {
  background-color: white;
  max-width: 800px;
  width: 90%;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1202;
}

/* Ajuste para el formulario de cotización más pequeño */
#quote-form .form-container {
  max-width: 500px;
  margin-top: 10vh;
}

.close-form-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #0a1f44;
  cursor: pointer;
  transition: color 0.3s;
}

.close-form-btn:hover {
  color: #dc3545; /* Rojo CrediMás */
}

.form-title {
  font-size: 2.5rem;
  color: #0a1f44; /* Azul Oscuro CrediMás */
  margin-bottom: 10px;
  font-weight: 700;
}

#quote-form .form-title {
  font-size: 2rem;
}

.form-subtitle {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

.partner-details,
.quote-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote-details {
  grid-template-columns: 1fr;
}

.quote-details input:not([type="hidden"]),
.quote-details select {
  grid-column: 1 / -1;
}

.partner-details input,
.partner-details select,
.partner-details textarea,
.quote-details input,
.quote-details select,
.quote-details textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.partner-details textarea,
.quote-details textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.product-info-display {
  grid-column: 1 / -1;
  background-color: #f7f7f7;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #dc3545;
  text-align: center;
  font-size: 1.1rem;
}

.submit-btn {
  grid-column: 1 / -1;
  background-color: #dc3545; /* Rojo CrediMás */
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #0a1f44; /* Azul Oscuro CrediMás en hover */
}

/* ========================================= */
/* === AJUSTES RESPONSIVE (MEDIA QUERIES) === */
/* ========================================= */

@media (max-width: 700px) {
  /* Ajuste Responsive del Formulario */
  .partner-details {
    grid-template-columns: 1fr; /* Columna única en móviles */
  }

  .form-container {
    padding: 20px;
    margin: 20px auto;
  }

  .form-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  /* Ajustes para Móviles */

  /* 1. SECCIÓN HERO (Landing) */
  .hero {
    padding: 40px 0 64px;
    min-height: auto;
  }

  .hero-carousel-btn {
    width: 38px;
    height: 38px;
  }

  .hero-carousel-dots {
    bottom: 4px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .text-section {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .text-section h1 {
    font-size: 1.8rem;
  }

  .text-section p {
    font-size: 1rem;
  }

  .image-section {
    margin-top: 24px;
  }

  .image-section img {
    width: 100%;
    max-width: 300px;
    margin-top: 12px;
  }

  .buttons {
    justify-content: center;
  }

  .btn-landing {
    width: 100%;
    margin-bottom: 10px;
  }

  .text-section p.hero-subline {
    font-size: 0.98rem;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-highlights {
    padding: 40px 5% 48px;
  }

  .landing-section-title {
    font-size: 1.5rem;
  }

  .faq-section {
    padding: 40px 5% 52px;
  }

  #credismas-landing .landing-offices.about-offices,
  .credito-page .landing-offices.about-offices {
    padding: 36px 5% 44px;
  }

  /* 2. SECCIÓN HOW IT WORKS */
  #how-it-works {
    padding: 60px 5%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .steps-container {
    flex-direction: column;
    gap: 20px;
  }

  .step-card {
    min-width: 100%;
    padding: 20px;
  }

  /* 3. CHATBOT (Asegura que el modal no se salga de la pantalla) */
  #chat-modal {
    width: 90%;
    height: 80%;
    right: 5%;
    bottom: 70px;
  }

  /* 4. TIENDA (Nav principal) */
  #tienda-container .nav-content {
    height: auto;
    flex-wrap: wrap;
    padding: 5px 10px;
  }

  #tienda-container .apple-logo {
    position: static;
    order: 1;
  }

  #tienda-container .nav-links {
    display: none;
    gap: 15px;
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
  }

  #tienda-container .nav-links li {
    margin: 0;
  }

  .product-section h1 {
    font-size: 36px;
  }

  .product-section .subtitle {
    font-size: 20px;
  }

  .product-section .tagline {
    font-size: 16px;
  }

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

  .phone-view {
    width: 100px;
    height: 350px;
    transform: none !important;
  }

  .fan-placeholder {
    height: 300px;
  }

  #product-detail-modal .modal-content-wrapper {
    padding: 10px;
  }

  #close-product-modal-btn {
    top: 10px;
    right: 10px;
  }
}

/* === NUEVO: Imagen con sombra y efecto de zoom === */
.product-image {
  width: 200px;
  height: 280px;
  margin: 0 auto 20px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

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

/* ========================================= */
/* === NUEVO: AVISO TIPO "AGUA" EN LA TIENDA === */
/* ========================================= */
#tienda-aviso-overlay {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5000; /* encima de todo (mapa 2000, chat 1500, etc.) */
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#tienda-aviso-overlay .tienda-aviso-card {
  width: min(720px, 92vw);
  border-radius: 18px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
}

#tienda-aviso-overlay .tienda-aviso-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 10px;
  text-transform: none;
}

#tienda-aviso-overlay .tienda-aviso-sub {
  font-size: 1.02rem;
  color: rgba(10, 31, 68, 0.92);
  margin-bottom: 18px;
  line-height: 1.5;
}

#tienda-aviso-overlay .tienda-aviso-watermark {
  margin: 14px auto 18px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(220, 53, 69, 0.2),
    rgba(0, 113, 227, 0.18),
    rgba(10, 31, 68, 0.18)
  );
  filter: blur(0.2px);
}

#tienda-aviso-overlay .tienda-aviso-btn {
  background-color: #0a1f44;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.2s ease;
}
#tienda-aviso-overlay .tienda-aviso-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Evitar seleccionar texto por accidente dentro del overlay */
#tienda-aviso-overlay * {
  user-select: none;
}

/* Página Tienda (en construcción) */
.store-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(0, 113, 227, 0.09),
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 100% 50%,
      rgba(220, 53, 69, 0.06),
      transparent 45%
    ),
    linear-gradient(180deg, #f0f3f8 0%, #e8ecf4 100%);
}

.store-page .store-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5% 56px;
}

body.site-page.store-page .store-page-main {
  max-width: none;
  width: 100%;
}

.store-construction-card {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
  border-radius: 20px;
  padding: 0;
  background: linear-gradient(165deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 48px -12px rgba(10, 31, 68, 0.12),
    0 8px 16px -8px rgba(10, 31, 68, 0.08);
  text-align: center;
  overflow: hidden;
}

.store-construction-accent {
  height: 5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #dc3545 0%,
    #c82333 25%,
    #0a1f44 55%,
    #0071e3 100%
  );
}

.store-construction-inner {
  padding: 2.25rem 1.75rem 2.5rem;
}

@media (min-width: 480px) {
  .store-construction-inner {
    padding: 2.75rem 2.5rem 3rem;
  }
}

.store-construction-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7a90;
}

.store-construction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #eef2f8 100%);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow:
    0 4px 12px rgba(10, 31, 68, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.store-construction-badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.store-construction-title {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: #0a1f44;
  margin: 0 auto 1.25rem;
  max-width: 32em;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.store-construction-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 1.35rem;
  max-width: 200px;
}

.store-construction-rule-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc3545, #b02a37);
}

.store-construction-rule-seg:nth-child(2) {
  background: linear-gradient(90deg, #0a1f44, #122a52);
}

.store-construction-rule-seg:nth-child(3) {
  background: linear-gradient(90deg, #0071e3, #0a1f44);
}

.store-construction-sub {
  font-size: 1.02rem;
  color: #4a5568;
  margin: 0 auto 1.75rem;
  max-width: 36em;
  line-height: 1.65;
}

/* Botón “Volver al inicio”: mismo estilo que .credito-cta-btn (clase compartida en tienda.html) */

/* Marca en barra de navegación (tienda) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-brand-logo {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-weight: 600;
  font-size: 18px;
}

.nav-brand-text .brand-credi {
  color: #dc3545;
}

.nav-brand-text .brand-mas {
  color: #0071e3;
}

.fan-placeholder-label {
  color: white;
  font-size: 24px;
}

/* Detalle de producto (contenido generado por JS) */
.product-detail-inner {
  padding-top: 50px;
  padding-bottom: 50px;
}

.product-detail-title {
  font-size: 40px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 5px;
}

.product-detail-subtitle {
  font-size: 22px;
  color: #86868b;
  margin-bottom: 40px;
}

.product-detail-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.product-detail-image-col {
  flex: 1;
  min-width: 300px;
  background-color: #f0f0f5;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.product-detail-image-placeholder {
  font-size: 18px;
  color: #666;
}

.product-detail-info-col {
  flex: 1;
  min-width: 300px;
}

.product-detail-section-title {
  font-size: 24px;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.product-detail-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
}

.product-detail-buy-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.detail-cotizar-btn {
  background-color: #0071e3;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
}

.product-detail-footer-note {
  font-size: 14px;
  color: #86868b;
  margin-top: 30px;
}

/* Marcador de ubicación en mapa Leaflet */
.map-user-marker-inner {
  background-color: blue;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
}

/* Botón flotante WhatsApp */
#btn-whatsapp {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background: #25d366;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1600;
}

#whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

#whatsapp-float img {
  width: 32px;
  height: 32px;
}

#whatsapp-float:hover {
  transform: scale(1.05);
}

/* --- Página Crédito (azul institucional #0a1f44, alineado con topbar / landing) --- */
.credito-body {
  background: linear-gradient(180deg, #f0f4fa 0%, #f5f7fa 100%);
}

body.site-page .page-shell.credito-page {
  max-width: 960px;
  padding: 64px 20px 0;
}

.credito-header {
  text-align: center;
  margin-bottom: 3rem;
}

.credito-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1f44;
  background: #e8edf5;
  border-radius: 999px;
}

.credito-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  color: #0a1f44;
  letter-spacing: -0.02em;
}

.credito-lead {
  max-width: 36em;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

.credito-tech-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding: 1.5rem 1.75rem;
  background: #e8edf5;
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  box-shadow: 0 8px 28px rgba(10, 31, 68, 0.08);
}

.credito-tech-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1f44;
  color: #fff;
  border-radius: 14px;
}

.credito-tech-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0a1f44;
}

.credito-tech-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3d4d66;
}

.credito-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0 0 3.5rem;
  padding: 0;
  list-style: none;
}

.credito-benefit-card {
  margin: 0;
  padding: 1.35rem 1.15rem;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.credito-benefit-card:hover {
  border-color: rgba(10, 31, 68, 0.22);
  box-shadow: 0 10px 32px rgba(10, 31, 68, 0.07);
  transform: translateY(-2px);
}

.credito-benefit-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1f44;
  background: #e8edf5;
  border-radius: 12px;
}

.credito-benefit-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a1f44;
}

.credito-benefit-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #666;
}

.credito-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: #0a1f44;
}

.credito-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(10, 31, 68, 0.04);
}

.credito-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #eef1f5;
}

.credito-step:last-child {
  border-bottom: none;
}

.credito-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #0a1f44;
  box-shadow: 0 2px 8px rgba(10, 31, 68, 0.28);
}

.credito-step-body strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: #0a1f44;
}

.credito-step-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #666;
}

.credito-steps-section {
  margin-bottom: 3.5rem;
}

.credito-pay-section {
  margin-bottom: 2.5rem;
}

.credito-cta-block {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.credito-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  background-color: #0a1f44;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.credito-cta-btn:hover {
  transform: translateY(-2px);
  background-color: #122a52;
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.32);
}

.credito-cta-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.credito-cta-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #999;
}

@media (max-width: 600px) {
  body.site-page .page-shell.credito-page {
    padding: 48px 5% 0;
  }

  .credito-tech-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  .credito-benefit-card,
  .credito-cta-btn {
    transition: none;
  }

  .credito-benefit-card:hover,
  .credito-cta-btn:hover {
    transform: none;
  }
}

/* Tienda (en construcción): botón comparte .credito-cta-btn; centrar en la tarjeta */
.store-construction-inner .credito-cta-btn {
  margin-top: 0.25rem;
}
