/* ==========================================================================
   HulaWeight — Editorial Light Theme
   Paleta: papel cálido, tinta profunda, acento verde salvia, arena.
   ========================================================================== */

:root {
    /* Superficies */
    --paper:      #f7f5f1;
    --paper-alt:  #efece5;
    --white:      #ffffff;
    --ink:        #191b1a;
    --ink-soft:   #232826;

    /* Texto */
    --text:       #232826;
    --muted:      #5f6663;
    --muted-2:    #8a908d;

    /* Acentos */
    --accent:     #2f5d52;
    --accent-dk:  #234840;
    --accent-lt:  #e7efeb;
    --sand:       #c9a97c;
    --sand-lt:    #f2e9dc;

    /* Líneas y sombras */
    --line:       #e3dfd6;
    --line-dk:    #cdc7ba;
    --shadow-sm:  0 2px 10px rgba(25, 27, 26, 0.04);
    --shadow:     0 18px 50px rgba(25, 27, 26, 0.08);
    --shadow-lg:  0 28px 70px rgba(25, 27, 26, 0.12);

    /* Tipografía */
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --radius:    4px;
    --radius-lg: 8px;
    --wrap:      1180px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); }

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Tipografía base ---------- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title + .section-lede {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.25rem;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 1px;
    background: var(--sand);
    vertical-align: middle;
    margin-right: 10px;
}

/* ---------- Banda de publicidad / divulgación ---------- */
.site-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.publicidad-banner {
    background: var(--ink);
    text-align: center;
    padding: 0.45rem 1rem;
}

.publicidad-label {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #cfd4d1;
}

/* ---------- Cabecera ---------- */
.header {
    background: rgba(247, 245, 241, 0.92);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.05rem 0;
}

.logo {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 26px;
    height: 26px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.logo-mark::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--sand);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

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

.main-nav a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    background: var(--paper);
    padding: 5.5rem 0 4.5rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 124, 0.18), transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.04;
    margin-bottom: 1.4rem;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--accent);
}

.subtitle {
    font-size: 1.18rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    max-width: 720px;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.hero-meta span {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* ---------- Botones ---------- */
.btn-primary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 1.05rem 2.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(47, 93, 82, 0.22);
}

/* ---------- Producto ---------- */
.product-section {
    padding: 5.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.product-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    align-items: start;
}

/* Carrusel */
.product-image {
    position: sticky;
    top: 96px;
}

.carousel-container {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-alt);
    box-shadow: var(--shadow);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 520px;
    background: var(--white);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-dk);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-dk);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active { background: var(--accent); transform: scale(1.35); }
.dot:hover  { background: var(--sand); }

/* Info de producto */
.product-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-lt);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.1rem;
}

.product-info h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1.1rem;
}

.product-description {
    color: var(--muted);
    margin-bottom: 2.25rem;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 2.25rem;
    border-top: 1px solid var(--line);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
    color: var(--muted);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.feature:hover {
    background: var(--paper);
    padding-left: 0.75rem;
}

.feature strong {
    font-weight: 500;
    color: var(--ink);
}

.feature-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-dk);
    border-radius: 50%;
    color: var(--accent);
    margin-top: 2px;
}

.feature-icon svg { width: 15px; height: 15px; }

.product-specs {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sand);
    border-radius: var(--radius);
    padding: 1.75rem 1.9rem;
    margin-bottom: 2.25rem;
}

.product-specs h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-specs p {
    font-size: 0.95rem;
    color: var(--muted);
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--line);
}

.product-specs p:last-child { border-bottom: none; }
.product-specs strong { font-weight: 500; color: var(--ink); }

.product-price {
    margin-bottom: 1.25rem;
}

.price-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.affiliate-note {
    margin-top: 1.1rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted-2);
}

/* ---------- Beneficios ---------- */
.benefits-section {
    padding: 5.5rem 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem 2.1rem;
    transition: background 0.25s ease;
}

.benefit-card:hover { background: var(--accent-lt); }

.benefit-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sand-lt);
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.benefit-icon svg { width: 20px; height: 20px; }

.benefit-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ---------- Cómo funciona ---------- */
.how-it-works {
    padding: 5.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.comparison-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.comparison-item.is-featured {
    background: var(--accent-lt);
    border-color: #cfe0d9;
}

.comparison-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.comparison-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    margin-bottom: 1.4rem;
}

.comparison-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 1rem;
}

.comparison-item p {
    font-size: 0.97rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.comparison-item p:last-child { margin-bottom: 0; }

/* Pasos */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.step-num {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--sand);
    line-height: 1;
    display: block;
    margin-bottom: 0.6rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ---------- Garantía / nota ---------- */
.guarantee {
    padding: 4.5rem 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.guarantee .section-title { margin-bottom: 1.25rem; }

.guarantee p {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
    padding: 5.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 0.25rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary:hover { color: var(--accent); }

.faq-item > summary::after {
    content: '+';
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.faq-item[open] > summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 0.25rem 1.5rem;
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 760px;
}

.faq-item a { color: var(--accent); }
.faq-item a:hover { color: var(--accent-dk); }

/* ---------- Contacto ---------- */
.contact-section {
    padding: 5.5rem 0;
    background: var(--paper);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.contact-section > .container > p {
    max-width: 640px;
    margin: 0 auto 3rem;
    color: var(--muted);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
}

.contact-item {
    background: var(--white);
    padding: 2rem 1.9rem;
    transition: background 0.25s ease;
}

.contact-item:hover { background: var(--accent-lt); }

.contact-item span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 0.5rem;
}

.contact-item strong {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    word-break: break-word;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 93, 82, 0.3);
}

.contact-item a:hover { color: var(--accent-dk); border-bottom-color: var(--accent-dk); }

/* ---------- Páginas legales ---------- */
.legal-page {
    padding: 4.5rem 0 5.5rem;
    background: var(--white);
}

.legal-page .container { max-width: 880px; }

.legal-page h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.legal-page section { margin-bottom: 2.75rem; }
.legal-page section:last-child { margin-bottom: 0; }

.legal-page h2 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
}

.legal-page h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.6rem;
}

.legal-page p {
    font-size: 0.99rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.legal-page ul { margin: 0 0 1rem 1.25rem; }

.legal-page ul li {
    font-size: 0.99rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

.legal-page strong { color: var(--ink); font-weight: 500; }

.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--accent-dk); }

.legal-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
}

.legal-card p { margin-bottom: 0; }

.withdrawal-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.withdrawal-form p { margin-bottom: 0.85rem; }

/* ---------- Pie de página ---------- */
.footer {
    background: var(--ink);
    color: #d6dad8;
    padding: 4.5rem 0 2rem;
}

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

.footer-legal h3,
.footer-legal h4 {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1.2rem;
}

.legal-info p,
.contact-info-footer p,
.health-notice p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #a9b0ad;
    margin-bottom: 0.35rem;
}

.legal-info strong,
.contact-info-footer strong {
    font-weight: 500;
    color: #ecefed;
}

.contact-info-footer a {
    color: #d6dad8;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 124, 0.45);
    word-break: break-word;
}

.contact-info-footer a:hover { color: var(--sand); }

.health-notice p { margin-bottom: 0; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: #a9b0ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--sand); }

.footer-bottom p {
    font-size: 0.8rem;
    color: #7d8583;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .product-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-image { position: static; }
    .footer-legal { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
    body { font-size: 1rem; }
    .container { padding: 0 20px; }
    .main-nav { display: none; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero-meta { gap: 1.5rem 2rem; }
    .hero-meta strong { font-size: 1.35rem; }
    .product-section,
    .benefits-section,
    .how-it-works,
    .faq,
    .contact-section { padding: 3.5rem 0; }
    .carousel-slides { height: 340px; }
    .comparison-image img { height: 220px; }
    .footer-legal { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .btn-primary { display: block; width: 100%; }
}

/* Compensación del encabezado fijo al saltar a un ancla */
section[id] { scroll-margin-top: 96px; }
