*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --orange: #F07D00;
    --gold: #F5A800;
    --carbon: #2E2E2E;
    --slate: #5A5A5A;
    --light: #F9F8F6;
    --white: #FFFFFF;
    --radius: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--carbon);
    background: var(--white);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 46px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--carbon);
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: var(--radius);
    transition: background .2s !important;
}

.nav-cta:hover {
    background: #cc6a00 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--carbon);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--carbon);
    padding-top: 68px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 140%;
    background: #f4f4f4;
    clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    max-width: 680px;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 38px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(240, 125, 0, 0.4);
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 125, 0, 0.5);
}

.btn-secondary {
    display: inline-block;
    margin-left: 16px;
    padding: 15px 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    transition: border-color .2s, background .2s;
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(245, 168, 0, 0.1);
}

.hero-image {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: min(320px, 28vw);
}

.stats-bar {
    background: var(--white);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    flex: 1;
    min-width: 160px;
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid #eee;
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

section {
    padding: 90px 8%;
}

.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--carbon);
    margin-bottom: 16px;
    max-width: 640px;
}

.section-sub {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 52px;
}

#propuesta {
    background: var(--light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 36px 28px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.7;
}

#como {
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    position: relative;
    margin-top: 8px;
}

.step {
    padding: 32px 28px;
    position: relative;
}

.step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(240, 125, 0, 0.45);
    line-height: 1;
    margin-bottom: 8px;
}

.step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--carbon);
}

.step p {
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.7;
}

.step::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: 38px;
    font-size: 1.4rem;
    color: var(--gold);
}

.step:last-child::after {
    display: none;
}

#halal {
    background: var(--light);
    color: var(--carbon);
}

.halal-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 64px;
}

.halal-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    border-radius: 12px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.halal-badge-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
}

.halal-badge-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 240px;
    line-height: 1.6;
}

.partners-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
    text-align: center;
    margin-bottom: 32px;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 22s linear infinite reverse;
}

.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .partners-group[aria-hidden="true"] {
        display: none;
    }
}

.partners-group {
    display: flex;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 190px;
    gap: 12px;
    padding: 24px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s;
}

.partner-logo:hover {
    transform: translateY(-4px);
}

.partner-logo img {
    width: 100%;
    max-width: 190px;
    height: 110px;
    object-fit: contain;
}

.partner-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--carbon);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.partner-country {
    font-size: 0.72rem;
    color: var(--orange);
}

#app-ad {
    background: var(--white);
    text-align: center;
}

.app-ad-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 16px;
}

.app-banner {
    display: block;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
}

.app-banner img {
    display: block;
    width: 100%;
    height: auto;
}

#mercados {
    background: var(--light);
}

.market-carousel {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.market-tags-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: market-scroll 36s linear infinite;
}

.market-tags-group {
    display: contents;
}

.market-carousel:hover .market-tags-track {
    animation-play-state: paused;
}

@keyframes market-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-tags-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }

    .market-tags-group[aria-hidden="true"] {
        display: none;
    }
}

.market-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--carbon);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .2s, color .2s;
}

.market-tag:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.market-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

#contacto {
    background: linear-gradient(135deg, var(--carbon) 0%, #1a1a1a 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 8%;
}

#contacto .section-title {
    color: white;
    max-width: 100%;
    text-align: center;
}

#contacto .section-sub {
    color: rgba(255, 255, 255, 0.7);
    max-width: 100%;
    text-align: center;
    margin: 0 auto 40px;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

footer {
    background: #111;
    padding: 48px 8% 28px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 28px;
    margin-bottom: 22px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    text-align: center;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--white);
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .25s ease, opacity .2s ease;
    }

    .nav-links.open {
        max-height: 320px;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 6%;
        width: 100%;
    }

    .nav-cta {
        display: inline-block;
        margin: 8px 6% 16px;
        width: auto;
    }

    .hero {
        min-height: auto;
        padding: 100px 6% 56px;
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        padding: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-image {
        display: none;
    }

    .halal-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-secondary {
        display: none;
    }

    .step::after {
        display: none;
    }

    section {
        padding: 64px 5%;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        flex-direction: column;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .stat:last-child {
        border-bottom: none;
    }
}