/* ============================================================
   LT Industrial — xd.css
   Sistema de diseño: naranja de marca #FD5C01 + grises oscuros
   Tipografía: Poppins (Google Fonts) con respaldo system-ui
   ============================================================ */

:root {
    --brand: #FD5C01;
    --brand-hover: #ff7a2e;
    --brand-ink: #16181d;              /* texto sobre naranja: contraste ~5.7:1 (AA) */
    --bg: #14161b;
    --surface: #1b1e25;
    --surface-2: #222631;
    --border: rgba(255, 255, 255, 0.1);
    --text: #e9ecf1;
    --text-muted: #a9b0bd;
    --radius: 16px;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    --container: 1120px;
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --- Reset y base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 0.6em; }

p { margin: 0 0 1em; }

a { color: var(--brand); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.container { width: min(var(--container), 92%); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--brand);
    color: var(--brand-ink);
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Secciones --- */
.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }

.section--alt {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.section__lead {
    color: var(--text-muted);
    max-width: 62ch;
    margin: -0.4rem 0 2rem;
    font-size: 1.05rem;
}

.link { color: var(--brand); font-weight: 600; }

/* --- Navegación (sticky + hamburguesa) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 22, 27, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    position: relative;
}

.nav__brand img {
    display: block;
    width: clamp(120px, 16vw, 160px);
    height: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__menu a {
    display: block;
    padding: 0.55rem 0.95rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.nav__menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.nav__menu a.is-active {
    color: var(--brand);
    background: rgba(253, 92, 1, 0.14);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav__toggle { display: flex; }

    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -4%;                 /* cubre el ancho completo del header */
        right: -4%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 4% 1rem;
        box-shadow: var(--shadow);
    }

    .nav__menu.is-open { display: flex; }

    .nav__menu a {
        padding: 0.8rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    background: url(assets/hero.webp) center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.72), rgba(12, 14, 18, 0.88));
}

.hero__inner {
    position: relative;
    text-align: center;
    padding: clamp(4rem, 11vh, 7rem) 0;
}

.hero__logo {
    width: clamp(200px, 30vw, 320px);
    height: auto;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 0.4em;
}

.hero__sub {
    color: #cfd5df;
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 58ch;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9em 1.7em;
    border: 2px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn--small {
    padding: 0.55em 1.3em;
    font-size: 0.9rem;
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}
.btn--small:hover { background: var(--brand); color: var(--brand-ink); }

.btn--block { width: 100%; }

/* --- Tarjetas --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(253, 92, 1, 0.55);
    box-shadow: var(--shadow);
}

.card h3 { font-size: 1.15rem; }

.card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

.card__badge {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(253, 92, 1, 0.15);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Bloque dividido (texto + imagen) --- */
.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.split__text p { max-width: 62ch; color: var(--text-muted); }
.split__text p strong { color: var(--text); }

.split__media { margin: 0; }

.split__media img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

/* --- Cita --- */
.quote {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.quote__img {
    width: clamp(120px, 18vw, 170px);
    border-radius: var(--radius);
}

.quote blockquote { margin: 0; }

.quote blockquote p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-style: italic;
    color: var(--text);
    border-left: 4px solid var(--brand);
    padding-left: 1.25rem;
    margin: 0;
}

@media (max-width: 700px) {
    .quote { grid-template-columns: 1fr; }
    .quote__img { display: none; }
}

/* --- Banda CTA --- */
.cta-band {
    background: linear-gradient(120deg, #FD5C01 0%, #ff8a3d 100%);
    color: var(--brand-ink);
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.cta-band h2 {
    color: var(--brand-ink);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 0 0.3em;
}

.cta-band p { margin: 0; color: rgba(22, 24, 29, 0.85); font-weight: 500; }

.cta-band .btn--primary { background: var(--brand-ink); color: #fff; }
.cta-band .btn--primary:hover { background: #000; }

/* --- Pie de página --- */
.site-footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    background: #0e1015;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.footer__logo { width: 150px; height: auto; }

.footer__about { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; margin-top: 0.75rem; }

.footer__title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand);
    margin-bottom: 0.9rem;
}

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

.icon { width: 20px; height: 20px; object-fit: contain; flex: none; }

.footer__links { list-style: none; margin: 0; padding: 0; }

.footer__links li { margin: 0.6rem 0; }

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer__links a:hover { color: var(--brand); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

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

/* --- Botón flotante de WhatsApp --- */
.wa-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 30px; height: 30px; }

/* --- Movimiento reducido (accesibilidad) --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
