:root {
    --primary: #7B4B3D;
    --primary-dark: #5A362B;
    --secondary: #F9F3F0;
    --charcoal: #2D2D2D;
    --text-muted: #666;
    --white: #ffffff;
    --sand: #F5EFEB;
    --gris-suave: #E2E2E2;
    --success: #27ae60;
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Navigation */
#main-nav {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary { background: var(--charcoal); color: var(--white); }
.btn-outline { border: 2px solid var(--gris-suave); background: transparent; color: var(--charcoal); }

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; }

/* Hero */
#hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, var(--sand), var(--white));
}

.badge {
    background: #FFEDEA;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

h1 { font-size: 3.5rem; line-height: 1.1; margin: 20px 0; }
.lead { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 30px; }

.hero-bullets { list-style: none; margin-bottom: 40px; }
.hero-bullets li { margin-bottom: 10px; font-weight: 500; }

.trust-tiny { font-size: 0.75rem; color: var(--text-muted); margin-top: 15px; }
.text-muted { color: var(--text-muted); font-size: 0.95rem; }

.floating-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(123, 75, 61, 0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Aviso publicitario */
.ad-notice {
    background: #2d2d2d;
    color: #aaa;
    padding: 8px 20px;
    text-align: center;
    font-size: 0.8rem;
}
.ad-notice a { color: #fff; text-decoration: underline; }
.ad-notice a:hover { color: var(--secondary); }

/* Footer disclaimer */
.footer-disclaimer {
    padding: 20px 0;
    border-top: 1px solid #444;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}
.footer-disclaimer a { color: #aaa; text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--white); }

/* Promo bar */
.promo-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 20px;
    text-align: center;
    font-size: 0.9rem;
    animation: promoSlide 0.6s ease-out;
}
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.promo-pulse { animation: pulse 1.5s ease-in-out infinite; }
.promo-timer { font-weight: 600; color: #ffd700; }
@media (max-width: 600px) {
    .promo-bar-inner { font-size: 0.8rem; gap: 8px; }
    .promo-timer { width: 100%; }
}
@keyframes promoSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Hero badges */
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.badge-discount {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white) !important;
    animation: badgeGlow 2s ease-in-out infinite;
}
.animate-pulse { animation: badgePulse 1.5s ease-in-out infinite; }
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 15px 3px rgba(231, 76, 60, 0.3); }
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Stock hint */
.stock-hint {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    animation: stockBlink 2s ease-in-out infinite;
}
@keyframes stockBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Price block */
.price-block { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 1.2rem; }
.price-current { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.price-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Testimonials CTA */
.testimonials-cta { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.discount-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: discountBounce 2s ease-in-out infinite;
}
@keyframes discountBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* CTA section discount badge */
.cta-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    animation: ctaBadgePulse 2s ease-in-out infinite;
}
.cta-discount-pct { font-size: 1.5rem; }
@keyframes ctaBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(231,76,60,0.3); }
    50% { transform: scale(1.03); box-shadow: 0 6px 25px rgba(231,76,60,0.5); }
}

/* Gallery */
#galeria { padding: 100px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.large { grid-row: span 2; }

.overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay { opacity: 1; }

/* Sections */
.bg-sand { background-color: var(--sand); }
#como-funciona { padding: 100px 0; }

.feature { display: flex; gap: 20px; margin-bottom: 30px; }
.icon { font-size: 2rem; }

/* Checkout */
#checkout { padding: 100px 0; background-color: #fcfcfc; }
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

@media (max-width: 992px) {
    .checkout-wrapper { grid-template-columns: 1fr; padding: 20px; }
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.step { font-weight: 600; color: #ccc; position: relative; }
.step.active { color: var(--primary); }

.form-step { display: none; }
.form-step.active { display: block; animation: slideIn 0.4s ease-out; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}
.form-grid-full { grid-column: 1 / -1; }
.field-wrapper { display: flex; flex-direction: column; gap: 4px; }
.field-error { font-size: 0.8rem; color: #c0392b; min-height: 18px; }
.field-wrapper.has-error input,
.field-wrapper.has-error select { border-color: #c0392b; }
.field-wrapper.has-error input:focus,
.field-wrapper.has-error select:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192,57,43,0.2); }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus { border-color: var(--primary); }

.payment-options { margin: 25px 0; }
.payment-option {
    display: block;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:has(input:checked) { border-color: var(--primary); background: var(--secondary); }

.payment-content { display: flex; justify-content: space-between; align-items: center; }

.order-summary {
    background: var(--sand);
    padding: 30px;
    border-radius: 16px;
    height: fit-content;
}

.summary-item { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.25rem; margin-top: 15px; }
.trust-icons { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.shipping-method { padding: 15px; background: var(--sand); border-radius: var(--radius); margin: 20px 0; }
.shipping-method p { margin-bottom: 5px; }
.shipping-method small { color: var(--text-muted); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    max-width: 500px;
    text-align: center;
}

.success-icon { font-size: 4rem; margin-bottom: 20px; }

/* Footer */
footer { background: var(--charcoal); color: var(--white); padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-links h4, .footer-legal h4 { margin-bottom: 20px; }
.footer-links a, .footer-legal a { display: block; color: #888; text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Benefits */
#beneficios { padding: 100px 0; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    animation: cardFadeIn 0.6s ease-out both;
}
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.benefit-icon { font-size: 2.5rem; margin-bottom: 15px; }
.benefit-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.benefit-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Testimonials */
#testimonios { padding: 100px 0; background: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.testimonials-grid:last-of-type { margin-bottom: 0; }
@media (max-width: 992px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
    background: var(--sand);
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.testimonial-stars { color: #f1c40f; margin-bottom: 15px; font-size: 1.2rem; }
.testimonial-author { font-size: 0.9rem; color: var(--text-muted); margin-top: 15px; }

/* CTA Section */
.cta-section { padding: 80px 0; }
.text-center { text-align: center; }

/* Checkout page */
.checkout-page #checkout { padding: 60px 0 100px; }
.checkout-promo { padding: 8px 15px; font-size: 0.85rem; }
.checkout-header { text-align: center; margin-bottom: 40px; }
.checkout-header h1 { margin-bottom: 10px; }
.checkout-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-weight: 600;
    animation: ctaBadgePulse 2s ease-in-out infinite;
}
.checkout-discount-badge .discount-pct { font-size: 1.2rem; }
.checkout-price { margin: 15px 0; }
.checkout-price .price-old { text-decoration: line-through; color: var(--text-muted); margin-right: 10px; }
.checkout-price .price-current { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.form-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.flex-row { display: flex; gap: 15px; margin-top: 25px; }
.flex-row .btn { flex: 1; }
.summary-product { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.summary-product img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }

/* Page content (contact, faq, product) */
.page-content { padding: 80px 0 100px; }
.page-content h1 { margin-bottom: 15px; }
.page-content .lead { margin-bottom: 50px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}
.contact-icon { font-size: 3rem; margin-bottom: 20px; }
.contact-card h3 { margin-bottom: 15px; }
.contact-card p { color: var(--text-muted); margin-bottom: 20px; }
.contact-cta { text-align: center; padding: 60px 0; background: var(--sand); border-radius: 24px; margin-top: 40px; }
.contact-cta h2 { margin-bottom: 15px; }
.contact-cta p { margin-bottom: 25px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto 60px; }
.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}
.faq-item h3 { margin-bottom: 15px; font-size: 1.2rem; }
.faq-item p { color: var(--text-muted); }
.faq-item a { color: var(--primary); }
.faq-cta { text-align: center; padding: 50px 0; }
.faq-cta h2 { margin-bottom: 15px; }
.faq-cta p { margin-bottom: 25px; }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 80px; }
@media (max-width: 992px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-main-image img { width: 100%; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.product-thumbnails { display: flex; gap: 15px; margin-top: 20px; }
.product-thumbnails img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.product-thumbnails img:hover { border-color: var(--primary); }
.product-thumbnails img.active { border-color: var(--primary); }
.product-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.product-price-block { margin: 20px 0; }
.product-price-block .price-old { text-decoration: line-through; color: var(--text-muted); font-size: 1.1rem; margin-right: 15px; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 5px 0; display: block; }
.product-price-block .price-save {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}
.product-desc { color: var(--text-muted); margin-bottom: 25px; line-height: 1.7; }
.product-features { list-style: none; margin-bottom: 30px; }
.product-features li { margin-bottom: 10px; }
.product-specs { background: var(--sand); padding: 25px; border-radius: var(--radius); margin-bottom: 30px; }
.product-specs h3 { margin-bottom: 15px; font-size: 1.1rem; }
.product-specs ul { list-style: none; }
.product-specs li { margin-bottom: 8px; color: var(--text-muted); }
.product-uses { padding-top: 60px; border-top: 1px solid #eee; }
.product-uses h2 { margin-bottom: 20px; text-align: center; }
.policy-content h3 { margin: 25px 0 15px; font-size: 1.1rem; }
.policy-content p { margin-bottom: 15px; line-height: 1.7; }
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .uses-grid { grid-template-columns: 1fr; } }
.use-card { text-align: center; }
.use-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.use-card h3 { margin-bottom: 10px; }
.use-card p { color: var(--text-muted); font-size: 0.95rem; }

/* About / Nosotros */
.about-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.about-values { margin: 80px 0; }
.about-values h2 { text-align: center; margin-bottom: 40px; }
.mission-block { background: var(--white); padding: 35px; border-radius: var(--radius); margin-bottom: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.mission-block p { margin-bottom: 20px; line-height: 1.7; }
.mission-block p:last-child { margin-bottom: 0; }
.section-intro { max-width: 700px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); line-height: 1.7; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.value-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; }
.about-cta {
    text-align: center;
    padding: 60px 0;
    background: var(--white);
    border-radius: 24px;
    margin-top: 60px;
}
.about-cta h2 { margin-bottom: 25px; }
.about-cta .btn { margin: 0 10px; }

/* How diagram */
.how-diagram .spec-img { width: 100%; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    #main-nav .container { flex-wrap: wrap; gap: 15px; }
    .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
    .nav-links a { margin-left: 0; font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
