:root {
    /* marca real Don Agus */
    --natural: #E5087F;
    /* PANTONE 219 C - Rosa Mexicano */
    --mantequilla: #FFC72C;
    /* PANTONE 123 C - Amarillo */
    --integral: #4A2E23;
    /* PANTONE 2467 C - Café */
    --chipotle: #DC6A32;
    /* PANTONE 7579 C - Naranja */
    --nopal: #00A651;
    /* PANTONE 355 C - Verde claro */
    --espinaca: #47593B;
    /* PANTONE 7734 C - Verde oscuro */

    --cream: #FFFCF8;
    --paper: #FFFFFF;
    --ink: #3A241B;
    --ink-soft: #6b5a4f;

    --display: 'Fraunces', serif;
    --script: 'Pinyon Script', cursive;
    --body: 'Work Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--natural);
    outline-offset: 3px;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--natural);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--natural);
    display: inline-block;
}

.cta-box .eyebrow::before {
    background: #ffe0cc;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.script {
    font-family: var(--script);
    font-weight: 400;
    color: var(--natural);
    font-size: 1.4em;
    line-height: .6;
    display: inline-block;
    transform: translateY(4px);
    padding-right: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--natural);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(229, 8, 127, .55);
}

.btn-primary:hover {
    box-shadow: 0 14px 26px -8px rgba(229, 8, 127, .65);
}

.btn-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 243, 236, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(58, 36, 27, .08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    gap: 40px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 34px;
    font-size: 15px;
    font-weight: 500;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--natural);
    transition: width .2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.burger {
    display: none;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 64px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 560px;
}

.hero-copy h1 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.hero-copy p.lede {
    margin-top: 20px;
    font-size: 18px;
    max-width: 460px;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.hero-stats div b {
    font-family: var(--display);
    font-size: 26px;
    display: block;
    color: var(--ink);
}

.hero-stats div span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.comal-scene {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1/1;
    margin: 0 auto;
}

/* respaldo por si el navegador no aplica aspect-ratio: garantiza el alto igual que el ancho */
.comal-scene::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.comal-photo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 26px 40px rgba(58, 36, 27, .4));
}

.comal-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.comal-photo::after {
    display: none;
}

.tortilla-spin {
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    overflow: hidden;
    animation: spin 22s linear infinite;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35));
}

.tortilla-spin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-item{position:absolute; top:50%; left:50%; animation: bob 4.5s ease-in-out infinite; animation-fill-mode: backwards; filter:drop-shadow(0 8px 14px rgba(58,36,27,.28)); aspect-ratio:1/1;}

.fi-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.fi-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fi-ring text {
    font-family: var(--mono);
    font-weight: 600;
    text-transform: uppercase;
    fill: var(--ink);
    font-size: 16px;
}

@keyframes bob {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(var(--rot, 0deg));
    }

    50% {
        transform: translate(-50%, -50%) translateY(-14px) rotate(var(--rot, 0deg));
    }
}

/* anillo simétrico, centrado respecto al comal, cada 60° */
/* anillo simétrico, más cerca del centro del comal */
/* Natural (harina) al centro de la tortilla; los otros 5 en anillo compacto alrededor */
.fi-a {
    width: 92px;
    top: 29%;
    left: 50%;
    animation-delay: .2s;
}

.fi-b {
    width: 92px;
    top: 46.5%;
    left: 71.25%;
    animation-delay: 1.1s;
}

.fi-c {
    width: 92px;
    top: 70.25%;
    left: 63.1%;
    animation-delay: .6s;
}

.fi-d {
    width: 92px;
    top: 70.25%;
    left: 36.9%;
    animation-delay: 1.6s;
}

.fi-e {
    width: 84px;
    top: 46.5%;
    left: 28.75%;
    animation-delay: 2.1s;
}

.fi-natural {
    width: 84px;
    top: 54%;
    left: 50%;
    animation-delay: 1.4s;
    z-index: 2;
}



/* ===== FEATURE STRIP ===== */
.strip {
    background: var(--ink);
    color: var(--cream);
    padding: 24px 0;
}

.strip .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 34px;
}

.strip span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    gap: 9px;
    align-items: center;
    opacity: .92;
}

.strip span::before {
    content: "●";
    color: var(--mantequilla);
    font-size: 9px;
}

section {
    padding: 96px 0;
}

.section-head {
    max-width: 660px;
    margin-bottom: 52px;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    margin-top: 14px;
}

.section-head p {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 16.5px;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 52px;
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.kosher-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: none;
}

.kosher-badge img {
    height: 64px;
    width: auto;
}

.kosher-badge span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
}
.kosher-badge-movil {
    display: none;
    text-align: center;
    margin-top: 60px;
}
.kosher-badge-movil img {
    height: 64px;
    width: auto;
    margin: 0 auto;
}

@media (max-width:700px) {
    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .kosher-badge {
        display: none;
    }
    .kosher-badge-movil {
        display: block;
    }
}

/* ===== HISTORIA ===== */
.about {
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.about-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 30%;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 8px;
}

.t-item {
    display: flex;
    gap: 18px;
}

.t-item .yr {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--natural);
    padding-top: 4px;
    flex: none;
    width: 52px;
}

.t-item h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.t-item p {
    color: var(--ink-soft);
    font-size: 14.5px;
}

/* ===== SABORES ===== */
.products {
    background: var(--cream);
}

.flavor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.flavor-card {
    background: var(--paper);
    border-radius: 18px;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(58, 36, 27, .08);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.flavor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -16px rgba(58, 36, 27, .35);
}

.flavor-photo {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    background: #fff;
}

.flavor-body {
    padding: 0px 14px 14px;
}

.flavor-body h4 {
    font-family: var(--body);
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 4px;
}

@media (max-width:560px) {
    .flavor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PUNTOS DE VENTA ===== */

.retail .section-head p {
    color: #cbb9ab;
}

.retail .section-head h2 {
    color: var(--cream);
}

.retail .eyebrow {
    color: var(--mantequilla);
}

.retail .eyebrow::before {
    background: var(--mantequilla);
}

.retail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.retail {
    background: var(--ink);
    color: var(--cream);
}

.retail-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4);
}

.retail-card img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.retail-card-locations{flex-direction:column; justify-content:flex-start; gap:14px; padding:24px 18px;}
.retail-card:not(.retail-card-locations){align-items:flex-start;}
.retail-card-locations .location-list:not(.list-2col){align-items:flex-start; align-self:center; width:fit-content; max-width:100%;}

.retail-card-locations .location-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    list-style: none;
    width: 100%;
}

.retail-card-locations .location-list li {
    font-family: var(--body);
    font-size: 12.5px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7px;
}

.retail-card-locations .location-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--integral);
    flex: none;
}

.retail-card-locations .location-list.list-2col {
    display: block;
    column-count: 2;
    column-gap: 20px;
    text-align: left;
}

.retail-card-locations .location-list.list-2col li {
    justify-content: flex-start;
    break-inside: avoid;
    margin-bottom: 8px;
}

@media (max-width:800px) {
    .retail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== CONTACTO ===== */
.cta {
    background: var(--cream);
}

.cta-box {
    background: linear-gradient(120deg, var(--chipotle), #a8501f);
    border-radius: 32px;
    padding: 60px 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    color: #fff;
}

.cta-box h2 {
    color: #fff;
    font-size: clamp(24px, 2.8vw, 32px);
}

.cta-box p {
    margin-top: 12px;
    color: #ffe0cc;
    max-width: 420px;
    font-size: 15px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
}

.contact-list b {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffe0cc;
    margin-bottom: 4px;
    font-weight: 600;
}

@media (max-width:800px) {
    .cta-box {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--ink);
    color: #cbb9ab;
    padding: 56px 0 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(251, 243, 236, .1);
    align-items: stretch;
}

.foot-grid img {
    height: 88px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 14px;
}

.foot-grid h5 {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mantequilla);
    margin-bottom: 16px;
}

.foot-grid ul li {
    margin-bottom: 10px;
    font-size: 14.5px;
}

.foot-grid ul li a:hover {
    color: var(--cream);
}

.foot-bottom {
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #a8907e;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-grid > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.foot-grid > div:nth-child(3) {
    text-align: right;
}

.foot-grid > div:nth-child(3) .social-links {
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(251, 243, 236, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    transition: background .2s ease;
}

.social-links a:hover {
    background: var(--mantequilla);
    ;
    color: #fff;
}

.social-links svg {
    width: 17px;
    height: 17px;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .comal-scene {
        max-width: 380px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        width: 50%;
        margin: 0 auto;
        order: 1;
    }

    .about-grid > div:last-child {
        order: 2;
    }

    .flavor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:600px) {
    .strip .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width:860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--cream);
        padding: 16px 28px 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(58, 36, 27, .08);
        box-shadow: 0 12px 20px -12px rgba(58, 36, 27, .25);
    }

    .nav-links.open {
        display: flex;
    }

    .burger {
        display: block;
        font-family: var(--mono);
        font-size: 13px;
        border: 1.5px solid var(--natural);
        color: var(--natural);
        padding: 8px 12px;
        border-radius: 8px;
        background: none;
    }
    .botones-hero{
      display: none;  
    }
    .fi-a,
    .fi-b,
    .fi-c,
    .fi-d {
        width: 62px;
    }

    .fi-e,
    .fi-natural {
        width: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tortilla-spin,
    .float-item {
        animation: none !important;
    }
}

@media (max-width:700px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid > div:nth-child(2) {
        text-align: left;
    }

    .foot-grid > div:nth-child(3) {
        text-align: left;
    }

    .foot-grid > div {
        text-align: left;
    }

    .foot-grid > div:nth-child(2) {
        align-items: flex-start;
    }

    .social-links,
    .foot-grid > div:nth-child(3) .social-links {
        justify-content: flex-start;
    }
}
@media (max-width:560px) {
    .retail-grid {
        grid-template-columns: 1fr;
    }
}