:root {
  --navy: #1b2a52;
  --primario: #ef4136;   /* rojo logo */
  --secundario: #1a9bb3; /* turquesa logo */
  --acento: #f7941d;     /* naranjo logo */
  --verde: #25d366;
  --texto: #1b2a52;
  --suave: #6c6f7f;
  --fondo: #fdfaf1;
  --blanco: #ffffff;
  --radio: 16px;
  --sombra: 0 6px 20px rgba(43, 45, 66, .08);
  --fuente: "Nunito", system-ui, sans-serif;
  --titulos: "Fredoka", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--fuente); color: var(--texto); background: var(--fondo); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
section { padding-block: 72px; }
h1, h2, h3 { font-family: var(--titulos); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.sub { text-align: center; color: var(--suave); margin: -8px auto 40px; max-width: 600px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primario); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-wa { background: var(--verde); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Header fijo */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #0000000d; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--titulos); font-size: 1.7rem; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.brand span:nth-child(4n+1) { color: var(--navy); }
.brand span:nth-child(4n+2) { color: var(--secundario); }
.brand span:nth-child(4n+3) { color: var(--acento); }
.brand span:nth-child(4n+4) { color: var(--primario); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 700; }
.nav a:hover, .nav a.activo { color: var(--primario); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { padding-block: 72px; background: var(--fondo); }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 span { color: var(--primario); }
.hero p { font-size: 1.15rem; color: var(--suave); max-width: 480px; }
.hero-logo { text-align: center; }
.hero-logo img { max-height: 380px; }
.logo-fallback { font-size: 6rem; }

/* Beneficios */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.beneficio { background: var(--blanco); padding: 28px; border-radius: var(--radio); box-shadow: var(--sombra); text-align: center; }
.beneficio .icono { font-size: 2.4rem; }

/* Social proof */
.social { background: var(--blanco); }
.testimonio { background: var(--fondo); padding: 24px; border-radius: var(--radio); }
.testimonio .estrellas { color: #f4b400; letter-spacing: 2px; }
.testimonio footer { font-weight: 800; margin-top: 12px; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; margin-top: 40px; text-align: center; }
.stats strong { display: block; font-size: 2rem; color: var(--secundario); }
.stats div { min-width: 180px; }

/* Tarjetas de producto */
.card { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card-img { display: grid; place-items: center; padding: 24px; }
.sock { width: 120px; height: 160px; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--suave); margin: 0 0 16px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.card-foot strong { font-size: 1.2rem; }
.tag { align-self: flex-start; background: var(--acento); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }

/* Carrusel */
.carrusel { position: relative; max-width: 1000px; margin-inline: auto; }
.carrusel-ventana { overflow: hidden; border-radius: var(--radio); }
.carrusel-track { display: flex; }
.slide { flex: 0 0 33.333%; padding: 8px; }
.slide .sock { animation: balanceo 3s ease-in-out infinite; }
@keyframes balanceo { 50% { transform: rotate(-8deg); } }
.carrusel-btn { position: absolute; top: 40%; background: var(--blanco); border: 0; width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--sombra); font-size: 1.4rem; cursor: pointer; }
#prev { left: -56px; } #next { right: -56px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #0002; cursor: pointer; padding: 0; }
.dots span.on { background: var(--primario); width: 24px; border-radius: 6px; }
.centro { text-align: center; margin-top: 32px; }

/* Condiciones */
.condiciones ul { list-style: none; padding: 0; max-width: 100%; margin: 0 auto; display: grid; gap: 12px; }
.condiciones li { background: var(--blanco); padding: 16px 20px; white-space: nowrap; overflow-x: auto; border-radius: 12px; border-left: 4px solid var(--secundario); }

/* Páginas internas */
.page-head { padding-block: 56px 24px; text-align: center; }
.page-head p { color: var(--suave); }
.texto { max-width: 720px; margin-inline: auto; font-size: 1.1rem; text-align: center; }

/* Footer */
.footer { background: var(--navy); color: #fff; padding-block: 40px; text-align: center; }
.redes { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.redes a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #ffffff1a; transition: background .2s; }
.redes a:hover { background: var(--primario); }
.redes svg { width: 22px; height: 22px; fill: #fff; }
.footer small { opacity: .7; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--fondo); border-bottom: 1px solid #0000001a; }
  .nav a { padding: 14px 16px; }
  .nav-open .nav { display: flex; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-logo { order: -1; }
  .hero-logo img { max-height: 180px; }
  .slide { flex-basis: 100%; }
  #prev { left: 0; } #next { right: 0; }
  section { padding-block: 48px; }
}

/* Instagram */
.insta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.insta-post { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.insta-post .sock { width: 70px; height: 94px; transition: transform .3s; }
.insta-post::after { content: "♥ Ver en Instagram"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27, 42, 82, .75); color: #fff; font-weight: 800; opacity: 0; transition: opacity .3s; }
.insta-post:hover::after { opacity: 1; }
.insta-post:hover .sock { transform: scale(1.1) rotate(-8deg); }

/* Botón flotante de WhatsApp */
.wa-flotante { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--verde); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 32px; height: 32px; fill: #fff; }
.firma { font-family: var(--titulos); color: var(--primario); font-size: 1.2rem; }
@media (max-width: 760px) { .condiciones li { white-space: normal; } }
.beneficio-ancho { margin-top: 24px; padding: 24px 28px; font-size: 1.05rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* Carrusel de comentarios */
.com-carrusel { position: relative; }
.com-track { display: flex; }
.com-slide { flex: 0 0 25%; padding: 0 10px; box-sizing: border-box; display: flex; }
.com-slide .testimonio { height: 100%; }
@media (max-width: 980px) { .com-slide { flex-basis: 50%; } }
@media (max-width: 600px) { .com-slide { flex-basis: 100%; } }

/* Comentarios: más anchos que el resto del contenido y nombres alineados abajo */
.com-carrusel { width: min(1500px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); }
.com-slide .testimonio { display: flex; flex-direction: column; }
.com-slide .testimonio footer { margin-top: auto; padding-top: 12px; }
.card.agotado .card-img { opacity: .55; }
.sin-stock { color: var(--suave); font-size: 1.05rem; }
.card-img img { width: 100%; height: 220px; object-fit: contain; }
/* Catálogo: 3 por fila en pantallas grandes */
@media (min-width: 761px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
/* Tarjeta simple del carrusel de destacados */
.card.simple .card-body { align-items: center; text-align: center; }
.card.simple h3 { margin-bottom: 12px; }
.card.simple .card-foot { width: 100%; }
