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

/* global variables */
:root {
    /* colors */
    --bg-main: rgb(245, 241, 236);
    --bg-secondary: #f7d9de;
    --text-dark: #1C1C1C;
    --text-gray: #6B6B6B;
    --text-pink: #f3adbf;
    --accent-gold: #C8A97E;
    --hover-pink: #f3adbf;
    --whatsapp: #f3adbf;
    --white: #ffffff;

    /* typography */
    --font-base: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    /* Layout */
    --max-width: 1200px;
    --border-radius: 0.5rem;
    --transition-base: 0.2s ease-in-out;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    color: var(--text-gray);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

small {
    color: var(--text-gray);
}

/* link */
a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* media elements */
img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* layout */
body {
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

header,
footer {
    width: 100%;
}

main {
    width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header {
    background-color: var(--white);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h2 {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.btn-header {
    background-color: var(--whatsapp);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Sections */
section {
    padding: 2rem 0;
}

/* ====================================================== */
/* hero */
.hero-section {
    background-color: var(--bg-main);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

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

.btn-secondary {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.hero-note {
    display: block;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-gold);
    color: white;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ====================================================== */
/*benefits*/
.benefits-section {
    background-color: var(--white);
    width: 100%;
}

.benefits-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.benefits-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    /* límite de ancho */
    margin: 0 auto;
}

.benefit-item {
    flex: 1;
    flex-direction: column;
    min-width: 250px;
    background-color: var(--bg-main);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* ====================================================== */
/*products*/
.products-section {
    background-color: var(--bg-main);
}

.products-section h2 {
    text-align: center;
    color: var(--text-dark);
}

.products-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-card img {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ====================================================== */
/*howto*/
.howto-section {
    background-color: var(--white);
}

.howto-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.howto-col-left,
.howto-col-right {
    flex: 0 1 450px;
}

.howto-col-left {
    text-align: right;
}

.howto-col-right {
    text-align: left;
}

.howto-col-left .howto-badge {
    display: inline-block;
    background-color: var(--accent-gold);
    color: white;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.howto-col-left h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.howto-col-left p {
    color: var(--text-gray);
    font-size: 1.1rem;
}


.howto-col-right ol {
    list-style: none;
    counter-reset: step;
}

.howto-col-right ol li {
    counter-increment: step;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.howto-col-right ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ====================================================== */
/*testimonials*/
.testimonials-section {
    background-color: var(--bg-secondary);
    overflow: hidden;
    padding: 5rem 0;
}

.testimonials-section h2 {
    text-align: center;
    color: var(--text-dark);
    font-weight: 280;
    letter-spacing: 5px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.testimonials-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: var(--text-dark);
    opacity: 0.2;
    margin: 15px auto 0;
}

.testimonials-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.testimony-card {
    background-color: var(--white);
    padding: 70px;
    border-radius: 0.8rem;
    box-shadow: 0 4px 80px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: center;
}

.testimony-slider {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    align-items: center;
    position: relative;
}

.testimony-slider::before {
    content: "“";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 220px;
    opacity: 0.1;
    font-family: serif;
}

.testimony-text {
    font-size: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.25rem;
    font-style: italic;
    text-align: center;
    max-width: 600px;
    color: var(--text-gray)
}

.testimony-autor {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    /* más liviano que bold */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* aire entre letras */
    color: var(--text-pink);
    position: relative;
}

.testimony-autor::before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--text-dark);
    opacity: 0.3;
    /* más sutil */
    margin: 0 auto 12px auto;
}

/* ====================================================== */
/*contact*/
.contact-section {
    background-color: var(--bg-main);
    padding: 6rem 2rem;
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-section h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 5px;
    font-weight: 300;
    font-size: 2rem;
}

.CTA-principal {
    background-color: var(--hover-pink);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.CTA-principal:hover {
    color: var(--white);
    transform: scale(1.05);
}

.CTA-principal i {
    margin-left: 8px;
    font-size: 2rem;
}

/* ====================================================== */
footer {
    background-color: var(--white);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-dark);
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-contact {
    margin-top: 10px;
    margin-bottom: 20px;
}

.footer-contact p {
    color: var(--text-pink);
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-bottom p {
    margin: 0;
}

.footer-developer {
    color: var(--text-pink);
    font-weight: 500;
    transition: color 0.3s ease;
}

@media (max-width: 1024px) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        gap: 40px;
        padding: 0 20px;
    }

    .benefits-container,
    .products-container,
    .product-grid {
        gap: 20px;
    }

    .testimony-card {
        padding: 50px 30px;
    }

    .testimony-text {
        font-size: 1.2rem;
        letter-spacing: 0.15rem;
    }
}

@media (max-width: 768px) {

    section {
        padding: 3rem 1rem;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .product-card {
        width: 100%;
        max-width: 320px;
    }

    .howto-container {
        flex-direction: column;
        gap: 40px;
    }

    .testimony-card {
        padding: 40px 20px;
    }

    .testimony-slider::before {
        font-size: 150px;
    }

    .header-container {
        flex-direction: row;
    }

    .header-cta {
        display: none; /* ocultamos el botón whatsapp en mobile */
    }

    .nav-menu {
        position: relative;
    }

    .nav-menu ul {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        width: 220px;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);

        display: none;
    }

    .nav-menu ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-badge,
    .howto-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .btn,
    .CTA-principal {
        width: 100%;
        text-align: center;
    }

    .testimony-text {
        font-size: 1.05rem;
        letter-spacing: 0.1rem;
    }

    .testimony-slider::before {
        font-size: 110px;
        opacity: 0.08;
    }
    .nav-links.active {
    display: flex; 
    }
    .menu-toggle {
    display: block; 
    }
}

@media (min-width: 1600px) {

    :root {
        --max-width: 1400px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .testimony-text {
        font-size: 1.7rem;
    }
    .nav-links.active {
    display: flex; 
    }
    .menu-toggle {
    display: block; 
    }
}