/* =============================================
   VULCANIZADOS ALGOR — SISTEMA DE DISEÑO
   ============================================= */

:root {
    /* Colores corporativos (azul del logo) */
    --primary:        #1565c0;
    --primary-dark:   #0d47a1;
    --primary-light:  #1976d2;

    /* Neutrales */
    --dark:           #0f172a;
    --dark-soft:      #1e293b;
    --gray-900:       #111827;
    --gray-700:       #374151;
    --gray-500:       #6b7280;
    --gray-300:       #d1d5db;
    --gray-100:       #f3f4f6;
    --gray-50:        #f9fafb;
    --white:          #ffffff;

    /* Tipografía */
    --font-head:      'Inter', system-ui, -apple-system, sans-serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    /* Espaciado y bordes */
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
    --shadow:         0 4px 12px rgba(15,23,42,.08);
    --shadow-lg:      0 12px 32px rgba(15,23,42,.12);

    /* Layout */
    --max-width:      1200px;
    --header-h:       80px;
}

/* =============================================
   RESET Y BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--dark); color: var(--gray-300); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--primary-light); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-head p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-top: 14px;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all .2s;
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}
.btn-ghost:hover { color: var(--primary-dark); gap: 12px; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
    background: var(--dark);
    color: var(--gray-300);
    font-size: .85rem;
    padding: 10px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--white); }

.lang-switch { display: flex; gap: 4px; font-size: .8rem; }
.lang-switch a {
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}
.lang-switch a.active { background: var(--primary); color: var(--white); }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 46px;
    width: auto;
    display: block;
}
.logo--footer {
    display: inline-block;
    background: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.logo--footer img { height: 38px; width: auto; }

.nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: .95rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all .15s;
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    background: var(--gray-50);
}
.nav-cta a {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
}
.nav-cta a:hover { background: var(--primary-dark); }

/* Idiomas en menú móvil (oculto en escritorio) */
.nav-lang { display: none; }

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: .25s;
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(21,101,192,.75) 100%),
        radial-gradient(circle at 20% 80%, rgba(25,118,210,.4) 0%, transparent 50%),
        var(--dark);
    color: var(--white);
    padding: 120px 0 100px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 32px 32px;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    max-width: 620px;
}
.hero h1 span { color: var(--primary-light); }
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
}
.hero-stat .num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}
.hero-stat .label {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    margin-top: 4px;
}

/* STATS GRID — cifras en páginas internas (fondo claro) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
}
.stat-card .num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-card .label {
    color: var(--gray-700);
    font-size: .9rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* PAGE HERO — páginas internas */
.page-hero {
    position: relative;
    color: var(--white);
    padding: 100px 0 72px;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
}
.page-hero .container { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    max-width: 620px;
}

/* =============================================
   SECTORES
   ============================================= */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sector-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all .2s;
    text-align: left;
}
.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.sector-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: grid;
    place-items: center;
    color: var(--white);
    margin-bottom: 20px;
}
.sector-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sector-card p { color: var(--gray-700); font-size: .93rem; margin: 0; }

/* =============================================
   PRODUCTOS
   ============================================= */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.producto-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.producto-img {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}
.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.producto-card:hover .producto-img img { transform: scale(1.06); }
.producto-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.producto-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.producto-body p { color: var(--gray-500); font-size: .92rem; flex: 1; margin-bottom: 16px; }

/* =============================================
   PRODUCTO DETALLE — layout alternado en productos.html
   ============================================= */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-300);
}
.producto-detalle:last-child { border-bottom: none; }
.producto-detalle--reverse { direction: rtl; }
.producto-detalle--reverse > * { direction: ltr; }
.producto-detalle-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.producto-detalle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.producto-detalle-img:hover img { transform: scale(1.04); }
.producto-detalle-body .eyebrow { margin-bottom: 8px; }
.producto-detalle-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 16px; }
.producto-detalle-body p { color: var(--gray-700); margin-bottom: 16px; }
.producto-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.producto-features li {
    padding-left: 1.4em;
    position: relative;
    color: var(--gray-700);
    font-size: .95rem;
}
.producto-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .producto-detalle,
    .producto-detalle--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
        padding: 40px 0;
    }
}

/* =============================================
   DIFERENCIACIÓN (Por qué Algor)
   ============================================= */
.porque-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.porque-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}
.porque-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    align-items: start;
}
.porque-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(21,101,192,.1);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.porque-item h4 {
    margin-bottom: 4px;
    color: var(--dark);
}
.section--dark .porque-item h4 { color: var(--white); }
.porque-item p { color: var(--gray-700); font-size: .95rem; margin: 0; }
.section--dark .porque-item p { color: var(--gray-300); }

.porque-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.porque-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   MEZCLAS DE CAUCHO
   ============================================= */
.mezclas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 0;
}
.mezcla-card {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: var(--white);
    transition: box-shadow .2s, border-color .2s;
}
.mezcla-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.mezcla-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mezcla-tag {
    background: var(--primary);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.mezcla-card h3 {
    font-size: 1.05rem;
    margin: 0;
}
.mezcla-card p {
    color: var(--gray-700);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.mezcla-usos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mezcla-usos span {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: .78rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}
.mezclas-nota {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: .93rem;
}
.mezclas-nota svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.mezclas-nota p { margin: 0; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 32px; }
.cta-band .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}
.cta-band .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
}
.contacto-info h3 { margin-bottom: 8px; }
.contacto-info > p { color: var(--gray-500); margin-bottom: 32px; }
.contacto-dato {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 24px;
}
.contacto-dato-icon {
    width: 44px;
    height: 44px;
    background: rgba(21,101,192,.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
}
.contacto-dato strong {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 2px;
}
.contacto-dato a, .contacto-dato span {
    color: var(--gray-500);
    font-size: .95rem;
}
.contacto-dato a:hover { color: var(--primary); }

.contacto-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-notice {
    font-size: .82rem;
    color: var(--gray-500);
    margin-top: 14px;
}
.form-notice a { color: var(--primary); }

/* Select del formulario */
.contacto-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .2s;
}
.contacto-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Mapa — contacto.html */
.mapa-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.mapa-gbiz {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: color .2s;
}
.mapa-gbiz:hover { color: var(--primary-dark); }

/* =============================================
   HAZITEK BAND
   ============================================= */
.hazitek-band {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 32px 0;
    text-align: center;
}
.hazitek-band img {
    max-width: 720px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 64px 0 0;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer .logo:hover { color: var(--primary-light); }
.footer .logo small { color: var(--gray-500); }
.footer-brand p { color: var(--gray-500); font-size: .88rem; max-width: 320px; }
.footer-col h4 {
    color: var(--white);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { color: var(--gray-500); font-size: .9rem; }
.footer-col li a:hover { color: var(--white); }
.footer-contact-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--gray-500);
}
.footer-contact-line a { color: var(--gray-500); }
.footer-contact-line a:hover { color: var(--white); }

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: .82rem;
    color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--white); }

/* =============================================
   PÁGINAS LEGALES
   ============================================= */
.legal-body {
    max-width: 780px;
    margin: 0 auto;
}
.legal-body h2 {
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 12px;
    color: var(--gray-900);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1rem; color: var(--gray-700); }
.legal-body ul {
    margin: 0 0 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray-700);
}
.legal-body a { color: var(--primary); }
.legal-fecha {
    margin-top: 3rem;
    font-size: .85rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-300);
    padding-top: 1rem;
}

/* Tabla de cookies */
.cookies-tabla {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.cookies-tabla table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.cookies-tabla th {
    background: var(--gray-100);
    color: var(--gray-900);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--gray-300);
}
.cookies-tabla td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-300);
    color: var(--gray-700);
    vertical-align: top;
}
.cookies-tabla tr:last-child td { border-bottom: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
    .sectores-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .porque-grid { grid-template-columns: 1fr; gap: 40px; }
    .porque-visual { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 80px 0 64px; }

    .menu-toggle { display: block; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-100);
        padding: 16px 24px 24px;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
    .nav a { display: block; padding: 12px 16px; }
    .nav-cta a { text-align: center; margin-top: 8px; }

    .topbar { display: none; }

    .nav-lang {
        display: block;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-100);
    }
    .nav-lang .lang-switch {
        padding: 4px 16px;
        gap: 8px;
    }

    .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
    .contacto-form { padding: 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .productos-grid, .sectores-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
}
