:root {
    --bg: #ffffff;
    --text: #111111;
    --dark: #0f172a;
    --accent: #25d366;
    --muted: #667085;
    --border: #e7e9ee;
    --radius: 14px;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    --corporate-blue: #1a56a4;
    --brand-red: #e63012;
    --light-gray: #f5f7fa;
    --gray-600: #4b5563;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.section {
    padding: 6rem 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--brand-red);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.5px;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    padding: 0.75rem 1.3rem;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.btn:active {
    transform: scale(0.97);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--accent), #20b75d);
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.25);
}

.btn-large {
    margin-top: 1rem;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
}

.btn-xl {
    margin-top: 0.8rem;
    padding: 1.1rem 2.2rem;
    font-size: 1.08rem;
    letter-spacing: 0.3px;
}

.tag {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-red);
    background: rgba(230, 48, 18, 0.07);
    border: 1px solid rgba(230, 48, 18, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.hero {
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.3rem);
    line-height: 1.2;
    margin: 0 0 1.2rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--gray-600);
    font-size: 1.08rem;
    max-width: 62ch;
    line-height: 1.7;
    font-weight: 400;
}

.hero-card {
    background: linear-gradient(165deg, var(--corporate-blue), var(--dark));
    color: #e5e7eb;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.benefits-grid,
.categories-grid,
.products-grid,
.clients-grid {
    display: grid;
    gap: 1.5rem;
}

.benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section:has(.benefits-grid) {
    background: var(--light-gray);
}

.benefit-card {
    border: none;
    border-radius: var(--radius);
    padding: 1.8rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.benefit-card h3 {
    margin: 0.5rem 0 0.6rem;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 700;
}

.benefit-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f5f7fa;
    padding: 1rem;
}

.category-card span {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.category-card:hover {
    border-color: var(--brand-red);
    background: #fff5f3;
    box-shadow: 0 4px 16px rgba(230, 48, 18, 0.12);
    transform: translateY(-2px);
}

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-red);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f7fa;
    padding: 1.2rem;
    display: block;
}

.product-card h3 {
    padding: 1.1rem 1.1rem 0.5rem;
    margin: 0;
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.1rem;
}

.product-actions .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    justify-content: center;
}

/* ─── Control qty (Agregar ↔ contador) ─── */
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--corporate-blue);
    border-radius: 8px;
    overflow: hidden;
    height: 2.6rem;
    width: 100%;
}

.qty-dec-btn,
.qty-inc-btn {
    background: transparent;
    border: none;
    color: var(--corporate-blue);
    font-size: 1.25rem;
    font-weight: 700;
    width: 2.6rem;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}

.qty-dec-btn:hover,
.qty-inc-btn:hover {
    background: var(--corporate-blue);
    color: #fff;
}

.qty-num {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--corporate-blue);
    line-height: 1;
}

/* ─── Estado: qty = 0  →  parece botón "Agregar" ─── */
.qty-zero .qty-dec-btn {
    visibility: hidden;     /* ocupa espacio pero no se ve */
    pointer-events: none;
}

.qty-zero .qty-num {
    cursor: pointer;
}

.qty-zero:hover {
    background: var(--corporate-blue);
}

.qty-zero:hover .qty-num,
.qty-zero:hover .qty-inc-btn {
    color: #fff;
}

.cart-fab-wrap {
    position: fixed;
    bottom: 2.2rem;
    right: 2.2rem;
    z-index: 900;
}

.cart-fab {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #1aab52);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: fab-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-fab:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.52), 0 4px 12px rgba(0,0,0,0.14);
}

.cart-fab:active {
    transform: scale(0.94);
}

.cart-fab-icon {
    width: 30px;
    height: 30px;
}

.cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid #fff;
    pointer-events: none;
}

@keyframes fab-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.hero-urgency {
    margin-top: 0.85rem;
    margin-bottom: 0;
    font-size: 0.88rem;
    color: var(--gray-600);
    font-weight: 500;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.6rem);
    background: var(--dark);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 200;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dark-section {
    background: linear-gradient(135deg, var(--dark), var(--corporate-blue));
    color: #e2e8f0;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 48, 18, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dark-section .tag {
    background: rgba(230, 48, 18, 0.18);
    border-color: rgba(230, 48, 18, 0.35);
    color: #ffb5a7;
}

.dark-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.dark-content {
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.dark-content p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-type {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.6rem;
    background: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1.05rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.client-type:hover {
    border-color: var(--brand-red);
    background: #fff5f3;
    transform: translateY(-3px);
}

.final-cta {
    background: linear-gradient(135deg, #fafbfc 0%, #eef2f7 100%);
}

.final-cta .cta-box {
    border: 2px solid var(--brand-red);
    border-radius: 18px;
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(180deg, rgba(230, 48, 18, 0.04) 0%, rgba(26, 86, 164, 0.03) 100%);
}

.final-cta h2 {
    margin-bottom: 0.8rem;
}

.final-cta p {
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.location-section {
    background: var(--light-gray);
}

.location-subtitle {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-top: -0.5rem;
    margin-bottom: 1.8rem;
    max-width: 60ch;
}

.map-wrapper {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
}

.map-wrapper iframe {
    width: 140%;
    height: 100%;
    display: block;
    margin-left: -20%;
}

.btn-map {
    background: var(--corporate-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 86, 164, 0.22);
    font-size: 0.95rem;
}

.btn-map:hover {
    background: #174d96;
}

.footer {
    background: linear-gradient(135deg, #0a0f1f, #0f1829);
    color: #cbd5e1;
    padding: 4.5rem 0 1.5rem;
}

.footer-map {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-map-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7ab3de;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-map-link:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-brand-block {
    max-width: 32ch;
}

.footer-brand-block p {
    max-width: 40ch;
}

.footer-kicker {
    display: inline-block;
    margin: 0 0 0.7rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(230, 48, 18, 0.18);
    color: #ffb5a7;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
}

.footer h3 {
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: -0.01em;
}

.footer h4 {
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #dbe4f0;
}

.footer p {
    margin: 0.3rem 0;
    color: #b5c0d2;
    font-size: 0.94rem;
    line-height: 1.75;
}

.footer p a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer p a:hover {
    color: #7ab3de;
    border-color: #7ab3de;
}

.footer-col {
    padding-left: 0.6rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.footer-schedule {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.15rem 0.6rem;
    align-items: baseline;
    font-size: 0.92rem;
    color: #b5c0d2;
    line-height: 1.6;
}

.footer-schedule b {
    color: #dbe4f0;
    font-weight: 600;
    white-space: nowrap;
}

.footer-schedule span {
    white-space: normal;
}

.footer-item {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.55rem;
    align-items: start;
    margin-bottom: 0.5rem;
}

.footer-item--wa {
    margin-top: 0.1rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-contact-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7ab3de;
    margin-bottom: 0.1rem;
}

.footer-contact-label--wa {
    color: #25d366;
}

.footer-icon--wa {
    color: #25d366;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.footer-icon {
    color: #7ab3de;
    line-height: 1.1;
    transform: translateY(2px);
}

.footer-wa {
    display: inline-flex;
    margin-top: 0.8rem;
    color: #0b1324;
    background: linear-gradient(135deg, #25d366, #1fb75a);
    padding: 0.52rem 0.92rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.28);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.2rem;
}

.footer-bottom p {
    margin: 0;
    color: #7f8da3;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

/* 🔥 Mejora conversión visual */
.hero-urgency {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--brand-red);
    font-weight: 600;
}

/* 🧠 Mejora claridad botones */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 99px;
    padding: 1rem 2rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 1.2rem;
    background: linear-gradient(135deg, #25d366, #1aab52);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.38), 0 2px 8px rgba(37, 211, 102, 0.18);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-hero-cta svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 211, 102, 0.46), 0 4px 12px rgba(37, 211, 102, 0.24);
}

.btn-hero-cta:active {
    transform: scale(0.97);
}

/* 🧱 Mejor consistencia productos */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 🧲 Mejora hover más profesional */
.product-card:hover {
    transform: translateY(-3px);
}

/* 🎯 Mejor separación visual */
.products-grid {
    margin-top: 2rem;
}

/* 🧩 Preparado para más productos */
.product-card h3 {
    min-height: 2.5em;
}
