/* ═══════════════════════════════════════════════════════
   INDUMIX — style.css
   Mobile-first. Base: 375px.
   Paleta: terracota #C97B6B · crema #FDF8F4 · vino #8B4A3C
═══════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --color-primary:    #C97B6B;
  --color-bg:         #FDF8F4;
  --color-wine:       #8B4A3C;
  --color-peach:      #EDD5C5;
  --color-text:       #2C1810;
  --color-text-soft:  #9B7B6E;
  --color-wa:         #25D366;
  --color-wa-dark:    #1DA851;
  --color-white:      #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius:    12px;
  --radius-sm:  8px;
  --shadow:    0 2px 12px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 24px rgba(44, 24, 16, 0.13);
  --transition: 0.2s ease;

  --max-w:      1100px;
  --px:         1.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
blockquote { margin: 0; }

/* ── UTILIDADES ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
}

.ornamento { color: var(--color-primary); }

/* ── BOTÓN WHATSAPP ────────────────────────────────── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-wa);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-wa:hover,
.btn-wa:focus-visible {
  background: var(--color-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  outline: none;
}

.btn-wa:active { transform: translateY(0); }

.btn-wa--lg {
  font-size: 1rem;
  padding: 1.05rem 2rem;
  width: 100%;
  max-width: 360px;
}

/* ── BOTÓN INSTAGRAM ───────────────────────────────── */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: background var(--transition), border-color var(--transition);
  width: 100%;
  max-width: 360px;
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  outline: none;
}

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#nav.scrolled {
  background: var(--color-white);
  box-shadow: 0 1px 10px rgba(44, 24, 16, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

#nav.scrolled .logo-text { color: var(--color-wine); }

.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-wa);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background var(--transition);
}

.nav-wa span { display: none; }
.nav-wa:hover { background: var(--color-wa-dark); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
#hero {
  display: flex;
  flex-direction: column;
}

/* ─── Imagen del hero (real) ─── */
.hero-banner-img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: left center;
  flex-shrink: 0;
}

/* ─── Banners de sección (problema-solucion, sobre-nosotros) ─── */
.section-banner-img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: left center;
}

/* ─── Placeholder de color (si no hay imagen real) ─── */
.hero-img {
  width: 100%;
  height: 210px;
  flex-shrink: 0;
}

/* ─── Placeholder de color mientras no hay foto ─── */
.hero-placeholder {
  background: linear-gradient(140deg, #EDD5C5 0%, #C97B6B 50%, #8B4A3C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius);
}

/* ─── Contenido del hero ─── */
.hero-content {
  background: var(--color-bg);
  padding: 2rem var(--px) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

.hero-scroll-link {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
  margin-top: -0.25rem;
}

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

/* ═══════════════════════════════════════════════════════
   CÓMO TE AYUDAMOS
═══════════════════════════════════════════════════════ */
#como-ayudamos {
  padding: 4rem 0;
  background: var(--color-white);
}

.problemas-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}

.problema-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.problema-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  line-height: 1;
}

.problema-texto {
  font-size: 0.95rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.55;
}

.solucion-bloque {
  border-top: 1px solid var(--color-peach);
  padding-top: 2.25rem;
}

.solucion-divisor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.solucion-divisor::before,
.solucion-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-peach);
}

.solucion-divisor span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.solucion-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.solucion-texto {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.solucion-lista {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.solucion-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.45;
}

.solucion-lista li span {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════
   PRODUCTOS
═══════════════════════════════════════════════════════ */
#productos {
  padding: 4rem 0;
  background: var(--color-bg);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ─── Tarjeta de producto ─── */
.producto-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

/* ─── Imagen del producto ─── */
.producto-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-peach);
}

.producto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.producto-card:hover .producto-img-wrap img {
  transform: scale(1.04);
}

.producto-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-align: center;
  padding: 1rem;
}

.producto-img-placeholder span {
  font-size: 2.25rem;
  line-height: 1;
}

.producto-img-placeholder small {
  font-size: 0.7rem;
  color: var(--color-text-soft);
  font-weight: 500;
}

/* ─── Badges ─── */
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--color-wine);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 50px;
  pointer-events: none;
}

.badge--agotado { background: #9A9A9A; }

/* ─── Info del producto ─── */
.producto-info {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.producto-nombre {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.producto-precio {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-wine);
  line-height: 1;
}

.talles-label {
  font-size: 0.68rem;
  color: var(--color-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.talles-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.talle-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: var(--color-peach);
  color: var(--color-wine);
}

.talle-chip.agotado {
  background: #f0f0f0;
  color: #bbb;
  text-decoration: line-through;
}

/* ─── Botón WA del producto ─── */
.producto-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-wa);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-top: auto;
}

.producto-wa-btn:hover { background: var(--color-wa-dark); }
.producto-wa-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   CONFIANZA
═══════════════════════════════════════════════════════ */
#confianza {
  padding: 4rem 0;
  background: var(--color-peach);
}

.confianza-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.confianza-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.confianza-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.confianza-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.confianza-item p {
  font-size: 0.875rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════════════════ */
#testimonios {
  padding: 4rem 0;
  background: var(--color-white);
  overflow: hidden;
}

.testimonios-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 1.5rem calc(-1 * var(--px)) 0;
  padding: 0.25rem var(--px) 1.25rem;
}

.testimonios-carousel::-webkit-scrollbar { display: none; }

.testimonio-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: calc(100vw - (var(--px) * 2) - 2rem);
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.testimonio-estrellas {
  color: var(--color-primary);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.testimonio-texto {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonio-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-wine));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonio-autor strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.testimonio-autor span {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ─── Controles del carrusel ─── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-peach);
  color: var(--color-wine);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

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

.carousel-dots { display: flex; gap: 0.45rem; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-peach);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

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

/* ═══════════════════════════════════════════════════════
   SOBRE SOFI
═══════════════════════════════════════════════════════ */
#sobre-sofi {
  padding: 4rem 0;
  background: var(--color-bg);
  text-align: center;
}

/* ─── Avatar de Sofi (placeholder) ─── */
.sofi-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-wine) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(201, 123, 107, 0.38);
}

/* ─── Cuando tengas la foto real ─── */
.sofi-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(201, 123, 107, 0.38);
}

#sobre-sofi .section-title { text-align: center; margin-bottom: 1rem; }

.sofi-texto {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.sofi-texto strong { color: var(--color-wine); }

#sobre-sofi .btn-wa { margin: 0.75rem auto 0; }

/* ═══════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════ */
#cta-final {
  padding: 4.5rem var(--px);
  background: var(--color-primary);
  text-align: center;
}

#cta-final .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

#cta-final h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

#cta-final p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ─── Ajustar color del btn-wa sobre fondo terracota ─── */
#cta-final .btn-wa {
  background: var(--color-white);
  color: var(--color-wa-dark);
}

#cta-final .btn-wa:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#footer {
  background: var(--color-text);
  padding: 2.75rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-peach);
  margin-bottom: 0.35rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-peach); }
.footer-links span { color: rgba(255, 255, 255, 0.25); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════
   BOTÓN FLOTANTE (preparado para IA)
═══════════════════════════════════════════════════════ */
.float-chat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-wa);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), background var(--transition);
}

.float-chat:hover {
  background: var(--color-wa-dark);
  transform: scale(1.08);
}

/* ─── Pulso animado ─── */
.float-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-wa);
  opacity: 0.45;
  animation: float-pulse 2.2s infinite;
  pointer-events: none;
}

@keyframes float-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
═══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .section-title { font-size: 2rem; }
  .nav-wa span { display: inline; }

  /* Banners: mostrar a proporción natural (4:1) — texto legible */
  .hero-banner-img,
  .section-banner-img {
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  /* Hero */
  .hero-title { font-size: 2.5rem; }
  .hero-content { padding: 2.5rem 2rem 3.5rem; }

  /* Problemas */
  .problemas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Productos */
  .productos-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

  /* Confianza */
  .confianza-grid { display: grid; grid-template-columns: repeat(2, 1fr); }

  /* Testimonios */
  .testimonio-card { min-width: calc(50% - 0.5rem); }

  /* CTA final */
  #cta-final h2 { font-size: 2.25rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Hero */
  .hero-content { padding: 2.5rem 3rem 3rem; }
  .btn-wa--lg { width: auto; }

  /* Problemas */
  .problema-card { flex-direction: column; align-items: flex-start; }

  /* Productos */
  .productos-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

  /* Confianza */
  .confianza-grid { grid-template-columns: repeat(4, 1fr); }
  .confianza-item { flex-direction: column; align-items: center; text-align: center; }
  .confianza-item div { text-align: center; }

  /* Testimonios */
  .testimonio-card { min-width: calc(33.333% - 0.67rem); }

  /* CTA final */
  #cta-final h2 { font-size: 2.75rem; }
  #cta-final .container { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  #cta-final .container > :first-child,
  #cta-final .container > :nth-child(2) { width: 100%; }
  .btn-instagram { width: auto; }
}

/* ─── Focus visible accesible ─── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
