/* ========================================
   MiSistema.ar — CSS completo
   ======================================== */

:root {
    --verde: #0a7c4e;
    --verde-light: #0d9960;
    --verde-dark: #065c38;
    --acento: #f5a623;
    --gris1: #f7f8f6;
    --gris2: #eef0ec;
    --gris3: #c8cdc6;
    --texto: #141a12;
    --texto2: #3d4a38;
    --texto3: #6b7a66;
    --borde: rgba(10,124,78,0.12);
    --radio: 10px;
    --shadow: 0 2px 16px rgba(6,92,56,0.10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--texto);
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
}

a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-light); }

img { max-width: 100%; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAV ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo, .admin-logo, .footer-logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-mi { color: var(--verde-dark); }
.logo-sistema { color: var(--verde-light); }
.logo-ar { color: var(--verde-dark); opacity: 0.6; font-size: 0.9em; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--texto2);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--verde); }

.btn-nav {
    background: var(--verde);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--verde-dark) !important; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--texto);
    border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #f0faf5 0%, #e8f4ee 100%);
    padding: 80px 24px;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-text h1 {
    font-size: 2.6rem;
    color: var(--verde-dark);
    line-height: 1.15;
}

.hero-text p {
    color: var(--texto2);
    font-size: 1.05rem;
    max-width: 480px;
}

.badge-ar {
    display: inline-block;
    background: var(--verde-dark);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-visual {
    background: #fff;
    border-radius: var(--radio);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--borde);
}

.hero-card-header {
    background: var(--verde-dark);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.dots { display: flex; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dot:first-child { background: #ff5f57; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #28c840; }

.hero-card-body { padding: 8px 0; }

.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--borde);
    transition: background 0.15s;
}

.app-row:last-child { border-bottom: none; }
.app-row:hover { background: var(--gris1); }

.app-icon { font-size: 1.6rem; flex-shrink: 0; }
.app-name { font-weight: 600; font-size: 0.9rem; color: var(--texto); }
.app-desc { font-size: 0.78rem; color: var(--texto3); }
.app-price { margin-left: auto; font-weight: 700; color: var(--verde); font-size: 0.9rem; white-space: nowrap; }

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--verde-dark);
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat {
    padding: 20px 40px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ========== SECTIONS ========== */
.section { padding: 72px 0; }

.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--verde);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    color: var(--verde-dark);
    margin-bottom: 14px;
}

.section-sub {
    color: var(--texto2);
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--borde);
    margin: 20px 0;
}

/* ========== PRODUCTOS GRID ========== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.producto-card {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.producto-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.prod-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.prod-emoji { font-size: 2rem; flex-shrink: 0; }
.prod-name { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--verde-dark); }
.prod-rubro { font-size: 0.78rem; color: var(--texto3); margin-top: 2px; line-height: 1.4; }

.prod-body { padding: 16px 18px; flex: 1; }

.prod-features { list-style: none; }
.prod-features li {
    font-size: 0.88rem;
    color: var(--texto2);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check { color: var(--verde); font-weight: 700; flex-shrink: 0; }

.badge-afip {
    margin-top: 14px;
    background: #fff8ec;
    border: 1px solid #f5d89a;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.8rem;
    color: #7a5200;
    font-weight: 500;
}

.prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid var(--borde);
    background: var(--gris1);
}

.prod-price {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--verde-dark);
}

/* ========== A MEDIDA ========== */
.medida-section {
    background: var(--verde-dark);
    padding: 72px 0;
}

.medida-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.proceso-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }

.proceso-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.paso-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--acento);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.paso-title { color: #fff; font-weight: 600; font-size: 0.95rem; }
.paso-desc { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-top: 2px; }

.cotizar-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radio);
    padding: 28px;
    color: #fff;
}

.cotizar-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cotizar-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cotizar-val { color: #fff; font-weight: 700; font-size: 0.9rem; }

.btn-wa-big {
    display: block;
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-wa-big:hover { background: #1db854; color: #fff; }

/* ========== NOSOTROS ========== */
.nosotros-section { background: var(--gris1); }
.nosotros-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.value-card {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 20px;
}

.value-icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-title { font-weight: 700; color: var(--verde-dark); font-size: 0.95rem; }
.value-desc { font-size: 0.82rem; color: var(--texto3); margin-top: 3px; }

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    overflow: hidden;
    text-decoration: none;
    color: var(--texto);
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--texto);
}

.blog-body { padding: 20px; }
.blog-tag {
    display: inline-block;
    background: var(--gris2);
    color: var(--verde-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.blog-title { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--verde-dark); line-height: 1.3; }
.blog-date { font-size: 0.8rem; color: var(--texto3); margin-top: 10px; }

/* ========== CTA FINAL ========== */
.cta-section {
    background: var(--verde-dark);
    padding: 72px 0;
}

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.footer {
    background: var(--verde-dark);
    border-top: 3px solid var(--acento);
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo { font-size: 1.3rem; margin-bottom: 8px; display: block; }
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-copy {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    padding: 24px 24px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== WA FLOAT ========== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* ========== BOTONES ========== */
.btn-primary {
    display: inline-block;
    background: var(--verde);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { background: var(--verde-dark); color: #fff; }

.btn-wa {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-wa:hover { background: #1db854; color: #fff; }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--verde);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid var(--verde);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-outline:hover { background: var(--verde); color: #fff; }

.btn-small {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-full { display: block; width: 100%; text-align: center; }

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--texto3);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--verde); }

.btn-mp {
    display: block;
    width: 100%;
    background: #009ee3;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-mp:hover { background: #0077b6; }

/* ========== PRODUCTO DETALLE ========== */
.prod-detail { padding-top: 32px; }

.prod-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radio);
    margin-bottom: 36px;
}

.prod-detail-icon { font-size: 3rem; }
.prod-detail-nombre { font-family: 'Sora', sans-serif; font-size: 1.8rem; color: var(--verde-dark); }
.prod-detail-rubro { color: var(--texto3); margin-top: 4px; }

.prod-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.prod-features-lg { list-style: none; margin-bottom: 28px; }
.prod-features-lg li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--borde);
    color: var(--texto2);
}

.prod-descripcion { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--borde); }

.prod-detail-reqs {
    margin-top: 24px;
    padding: 20px;
    background: var(--gris1);
    border-radius: var(--radio);
}

.compra-box {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1.5px solid var(--borde);
    border-radius: var(--radio);
    padding: 28px;
    box-shadow: var(--shadow);
}

.compra-precio {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--verde-dark);
}

.compra-tipo { font-size: 0.85rem; color: var(--texto3); margin-top: 4px; }
.compra-divider { border: none; border-top: 1px solid var(--borde); margin: 18px 0; }

.compra-afip {
    background: #fff8ec;
    border: 1px solid #f5d89a;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.85rem;
    color: var(--texto2);
    margin-bottom: 16px;
}

.compra-afip a { color: var(--verde); font-weight: 600; }

.compra-garantias {
    list-style: none;
    font-size: 0.85rem;
    color: var(--texto3);
    margin-top: 16px;
}

.compra-garantias li { padding: 5px 0; }

/* ========== CHECKOUT ========== */
.checkout-box {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 36px;
    box-shadow: var(--shadow);
}

.checkout-prod {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--borde);
    margin-bottom: 24px;
}

.checkout-nombre { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--verde-dark); }
.checkout-desc { font-size: 0.85rem; color: var(--texto3); margin-top: 4px; }

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gris1);
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--verde-dark);
}

.checkout-seguridad {
    text-align: center;
    font-size: 0.82rem;
    color: var(--texto3);
    margin-top: 14px;
}

.checkout-wa {
    text-align: center;
    font-size: 0.85rem;
    color: var(--texto3);
    margin-top: 10px;
}

.checkout-wa a { color: var(--verde); font-weight: 600; }

/* ========== FORMULARIOS ========== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto2);
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gris3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--texto);
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(10,124,78,0.08);
}

textarea { resize: vertical; min-height: 120px; }

.form-error {
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 2px;
}

/* ========== ALERTAS ========== */
.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065c38;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* ========== ADMIN ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--verde-dark);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
}

.admin-logo {
    display: block;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.admin-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 700; }

.admin-logout {
    padding: 16px 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.admin-logout button {
    width: 100%;
    padding: 9px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-logout button:hover { background: rgba(255,255,255,0.15); color: #fff; }

.admin-main {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--borde);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-page-title {
    font-size: 1.2rem;
    color: var(--verde-dark);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.admin-user { font-size: 0.85rem; color: var(--texto3); }

.admin-content { padding: 32px; }

/* Metric cards */
.metric-card {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 24px;
    border-left: 3px solid var(--verde);
}

.metric-title { font-size: 0.82rem; color: var(--texto3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.metric-num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--verde-dark); }
.metric-label { font-size: 0.8rem; color: var(--texto3); margin-top: 4px; }

/* Admin table */
.table-admin {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.table-admin th {
    background: var(--gris1);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--texto3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--borde);
}

.table-admin td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--borde);
    vertical-align: middle;
}

.table-admin tr:last-child td { border-bottom: none; }
.table-admin tr:hover td { background: var(--gris1); }

/* Badge estado */
.badge-estado {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-estado.aprobado { background: #d1fae5; color: #065c38; }
.badge-estado.pendiente { background: #fef3c7; color: #92400e; }
.badge-estado.rechazado { background: #fee2e2; color: #991b1b; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { min-height: auto; padding: 60px 24px; }
    .medida-inner { grid-template-columns: 1fr; }
    .nosotros-inner { grid-template-columns: 1fr; }
    .prod-detail-grid { grid-template-columns: 1fr; }
    .compra-box { position: static; }
    .admin-content { padding: 24px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--borde);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .nav { position: relative; }

    .hero-text h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.5rem; }
    .productos-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { flex-direction: column; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat:last-child { border-bottom: none; }

    .cotizacion .container > div { grid-template-columns: 1fr !important; }
    .blog-show-grid { grid-template-columns: 1fr !important; }

    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; }
    .admin-content { padding: 16px; }

    .metric-card { padding: 16px; }
    .metric-num { font-size: 1.6rem; }

    /* Dashboard metrics responsive */
    .admin-content > div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 540px) {
    .hero-btns { flex-direction: column; }
    .cta-btns { flex-direction: column; align-items: center; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .checkout-box { padding: 20px; }
    .values-grid { grid-template-columns: 1fr; }
}
