/* =========================================================
   Totos — Hoja de estilos
   ========================================================= */

:root {
    /* Colores tomados del logo de Toto's */
    --corn: #f5b321;
    --corn-light: #fde4a8;
    --chili: #c24e12;
    --chili-dark: #9c3d0c;
    --red: #e3163a;
    --brown: #3b2414;
    --green: #2f5d3a;
    --cream: #fdf6e7;
    --white: #ffffff;
    --text: #3b2414;
    --muted: #7a6353;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius: 18px;
    --shadow: 0 10px 30px rgba(59, 36, 20, 0.10);
    --shadow-lg: 0 20px 50px rgba(59, 36, 20, 0.18);
    --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--brown);
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 820px; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--chili);
    margin-bottom: 0.8em;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.95em 1.6em;
    border: 2px solid var(--chili);
    border-radius: 999px;
    background: var(--chili);
    color: var(--white);
    font: 700 1rem var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--chili-dark); border-color: var(--chili-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 64, 30, 0.3); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--ghost:hover { background: var(--brown); border-color: var(--brown); color: var(--white); box-shadow: none; }
.btn--small { padding: 0.6em 1.2em; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 246, 231, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 36, 20, 0.08);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img { height: 58px; width: auto; }
.logo--footer {
    padding: 12px 18px;
    background: var(--cream);
    border-radius: 14px;
}
.logo--footer img { height: 64px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    position: relative;
}
.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--chili);
    transition: width 0.2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; border-radius: 2px; background: var(--brown); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(circle at 85% 20%, var(--corn-light) 0, transparent 45%),
        var(--cream);
    padding: 70px 0 90px;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.highlight {
    color: var(--chili);
    background: linear-gradient(transparent 62%, var(--corn-light) 62%);
    padding: 0 0.1em;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--green);
}

/* Fotos del hero */
.hero__art { position: relative; padding: 0 0 40px 50px; }
.hero__photo {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-left: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}
.hero__bag {
    position: absolute;
    left: 0; bottom: 0;
    width: 42%;
    max-width: 190px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
    transform: rotate(-6deg);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.stamp {
    position: absolute;
    top: -14px; right: -10px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    display: grid;
    place-content: center;
    text-align: center;
    transform: rotate(12deg);
    box-shadow: var(--shadow);
    border: 3px dashed rgba(253, 246, 231, 0.5);
    outline: 6px solid var(--green);
}
.stamp strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.stamp span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Cifras ---------- */
.stats { background: var(--brown); color: var(--cream); padding: 30px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--corn); }
.stat span { font-size: 0.92rem; opacity: 0.85; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--corn { background: var(--corn); }
.section--dark { background: var(--brown); color: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section__head--light h2 { color: var(--cream); }
.section__head--light .eyebrow { color: var(--corn); }

/* ---------- Tarjetas de clientes ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--white);
    border: 1px solid rgba(59, 36, 20, 0.1);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card--accent { background: var(--green); border-color: var(--green); }
.card--accent h3, .card--accent p, .card--accent .card__list { color: var(--cream); }
.card--accent .card__link { color: var(--corn); }
.card { overflow: hidden; }
.card__img {
    width: calc(100% + 52px);
    max-width: none;
    margin: -30px -26px 22px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card__img { transform: scale(1.04); }
.card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    font-size: 0.93rem;
    flex: 1;
}
.card__list li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.45em;
    width: 12px; height: 11px;
    background: var(--corn);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.card__link { font-weight: 700; color: var(--chili); text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.product {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}
.product:hover { transform: translateY(-6px); }
.product--featured { outline: 3px solid var(--chili); }
.product__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* Tira de salsas */
.salsas {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 70px;
}
.salsas img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.salsas__text { padding-right: 12px; }
.salsas__text h3 { font-size: 1.6rem; font-weight: 800; }
.salsas__text p { color: var(--muted); margin: 0; }

.product__body { padding: 22px 22px 26px; }
.product__body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.tag {
    display: inline-block;
    padding: 0.25em 0.8em;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tag--hot { background: var(--chili); color: var(--white); }
.note { text-align: center; margin-top: 40px; color: var(--muted); }
.note a { color: var(--chili); font-weight: 700; }

/* ---------- Por qué Totos ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.why__intro { position: sticky; top: 110px; }
.why__intro p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.why__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 10px;
}
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--cream);
}
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature__num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--chili);
    margin-bottom: 8px;
}

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.location__info p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.address-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 26px;
    padding: 22px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    line-height: 1.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.address-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.address-card__icon { flex: none; width: 34px; height: 48px; }
.address-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.address-card em { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--chili); }
.location__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
    aspect-ratio: 4 / 3;
}
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.wa-numbers { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.wa-numbers a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--chili); }
.wa-numbers a:hover { color: var(--chili-dark); }

/* ---------- Pasos ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}
.step {
    padding: 32px 28px;
    border: 1px solid rgba(253, 246, 231, 0.18);
    border-radius: var(--radius);
    background: rgba(253, 246, 231, 0.04);
}
.step h3 { color: var(--cream); }
.step p { margin: 0; opacity: 0.8; }
.step__n {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--corn);
    color: var(--brown);
    font: 800 1.3rem var(--font-display);
}

/* ---------- Cotización ---------- */
.quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.quote .eyebrow { color: var(--chili-dark); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid rgba(59, 36, 20, 0.15); }

.form {
    display: grid;
    gap: 16px;
    padding: 34px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 700; }
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1.5px solid rgba(59, 36, 20, 0.2);
    border-radius: 12px;
    background: var(--white);
    font: 400 1rem var(--font-body);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--chili);
    box-shadow: 0 0 0 4px rgba(200, 64, 30, 0.15);
}
.form__error { margin: 0; color: var(--chili-dark); font-weight: 700; font-size: 0.92rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
    border: 1px solid rgba(59, 36, 20, 0.12);
    border-radius: 14px;
    background: var(--white);
    transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 700;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 24px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--chili);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Pie de página ---------- */
.footer { background: var(--brown); color: rgba(253, 246, 231, 0.8); padding: 50px 0 30px; }
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}
.footer__inner p { margin: 8px 0 0; font-size: 0.95rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: flex-end; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--corn); }
.footer__copy {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(253, 246, 231, 0.15);
    font-size: 0.85rem !important;
    opacity: 0.7;
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 60;
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover,
.product.reveal.is-visible:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__bag { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(3, 1fr); }
    .why { grid-template-columns: 1fr; gap: 40px; }
    .why__intro { position: static; }
    .salsas { grid-template-columns: repeat(3, 1fr); }
    .salsas__text { grid-column: 1 / -1; padding: 0; text-align: center; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .logo img { height: 46px; }
    .nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        background: var(--cream);
        border-bottom: 1px solid rgba(59, 36, 20, 0.1);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav--open { display: flex; }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(59, 36, 20, 0.08); }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 14px; }

    .hero { padding: 40px 0 60px; }
    .hero__inner, .quote, .location { grid-template-columns: 1fr; }
    .hero__art { max-width: 420px; margin: 0 auto; padding: 0 0 30px 30px; }
    .stamp { right: 0; }
    .stamp { width: 86px; height: 86px; }
    .stamp strong { font-size: 1.3rem; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .cards, .features, .form__row { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product__body { padding: 16px 14px 18px; }
    .salsas { gap: 10px; }
    .form { padding: 24px 20px; }
    .hero__actions .btn { flex: 1 1 100%; }
}
