:root {
    --color-primary: #ffffff;
    --color-secondary: #0f0f10;
    --color-accent: #c81414;
    --color-accent-dark: #9d0f0f;
    --color-text: #151515;
    --color-muted: #666666;
    --color-border: rgba(0, 0, 0, 0.10);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.16);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: var(--color-primary);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    max-width: 760px;
    margin-bottom: 48px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

p.lead {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-top: 24px;
}

/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #111;
    box-shadow: var(--shadow-soft);
}

.brand-text strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.28em;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

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

.nav-links a {
    font-weight: 700;
    color: #222;
    position: relative;
}

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

/* CONTACTO EN MENÚ */

.nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.nav-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid var(--color-accent);
    transition: all 0.25s ease;
}

.nav-contact a:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* MENÚ MÓVIL */

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    height: 3px;
    background: #111;
    margin: 7px 0;
    border-radius: 4px;
    transition: 0.25s ease;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(200, 20, 20, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid var(--color-border);
}

.hero-grid {
    min-height: calc(100vh - 86px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
    padding: 54px 0 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    color: var(--color-accent);
    border: 1px solid rgba(200, 20, 20, 0.15);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 20px;
    max-width: 850px;
}

.hero h1 .highlight {
    color: var(--color-accent);
    display: block;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 42px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.stat-card.dark {
    background: var(--color-secondary);
    color: #fff;
}

.stat-card.red {
    background: #fff5f5;
    border-color: rgba(200, 20, 20, 0.18);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.hero-panel {
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: rgba(200, 20, 20, 0.09);
    filter: blur(45px);
    border-radius: 40px;
    z-index: 0;
}

.panel-card {
    position: relative;
    z-index: 1;
    background: var(--color-secondary);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.panel-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -70px;
    background: rgba(200, 20, 20, 0.18);
    border-radius: 50%;
}

.panel-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.panel-label {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
}

.panel-title {
    margin-top: 8px;
}

.panel-chip {
    background: var(--color-accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-list {
    position: relative;
    z-index: 1;
    list-style: none;
    display: grid;
    gap: 14px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 18px;
}

.feature-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: 7px;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* GRIDS GENERALES */

.services-grid,
.reasons-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.reasons-grid {
    grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.9fr 0.8fr;
    margin-bottom: 28px;
    align-items: start;
}

/* SERVICIOS */

.service-card,
.reason-card,
.contact-box,
.info-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.service-card {
    background: #fff;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--color-accent);
    margin-bottom: 20px;
}

.service-card p,
.reason-card p,
.info-card p,
.footer-column p,
.footer-links a,
.contact-intro p {
    color: var(--color-muted);
}

/* VENTAJAS */

.reasons-section {
    background: var(--color-secondary);
    color: #fff;
}

.reasons-section .eyebrow {
    color: #ff5a5a;
}

.reasons-section p.lead,
.reasons-section .reason-card p {
    color: rgba(255, 255, 255, 0.76);
}

.reason-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
    padding: 28px;
}

.reason-card .number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ff4b4b;
    display: block;
    margin-bottom: 14px;
}

/* CONTACTO */

.contact-section {
    background:
        radial-gradient(circle at top left, rgba(201, 31, 31, 0.10), transparent 34%),
        linear-gradient(135deg, #111 0%, #1b1b1b 48%, #0d0d0d 100%);
    color: #fff;
}

.contact-section .eyebrow {
    color: var(--color-accent);
}

.contact-section h2,
.contact-section .lead {
    color: #fff;
}

.contact-section .contact-box {
    min-height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    padding: 46px 52px;
}

.contact-intro {
    max-width: 620px;
}

.contact-direct {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.contact-direct a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-direct a:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

.contact-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.contact-note strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
}

.contact-note span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.contact-side {
    display: grid;
    gap: 18px;
}

.info-card {
    background: var(--color-secondary);
    color: #fff;
    padding: 26px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-section .info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.contact-section .info-card h3 {
    color: #fff;
}

.contact-section .info-card p {
    color: rgba(255, 255, 255, 0.72);
}

/* FOOTER */

.footer {
    background: #090909;
    color: #fff;
    padding: 60px 0 24px;
    margin-top: 30px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.footer h4 {
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

/* ANIMACIONES */

.reveal {
    opacity: 1;
    transform: none;
}

/* Solo aplicamos animación cuando JavaScript está activo */
.js-loaded .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.js-loaded .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accesibilidad: si el usuario prefiere menos animaciones, las desactivamos */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js-loaded .reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* RESPONSIVE TABLET */

@media (max-width: 1100px) {
    .hero-grid,
    .contact-grid,
    .services-grid,
    .reasons-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-grid {
        align-items: start;
        min-height: auto;
    }
}

/* RESPONSIVE MÓVIL */

@media (max-width: 820px) {
    .nav {
        min-height: 76px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand-text strong {
        font-size: 0.92rem;
        letter-spacing: 0.04em;
    }

    .brand-text span {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px 24px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .btn {
        width: 100%;
    }

    .nav-contact {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-left: 0;
        padding-top: 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-contact a {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }

    .hero-grid,
    .contact-grid,
    .services-grid,
    .reasons-grid,
    .footer-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding: 42px 0 56px;
        gap: 34px;
    }

    .hero-badge {
        font-size: 10px;
        letter-spacing: 0.10em;
        padding: 9px 13px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stat-card {
        padding: 20px;
    }

    .panel-card {
        padding: 26px;
    }

    .panel-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .service-card,
    .reason-card,
    .contact-box,
    .info-card {
        padding: 24px;
    }

    .contact-direct {
        flex-direction: column;
    }

    .contact-direct a {
        width: 100%;
    }

    .footer {
        margin-top: 0;
    }

    .contact-section .contact-box {
    padding: 32px 26px;
}
}

/* RESPONSIVE MÓVIL PEQUEÑO */

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .section {
        padding: 58px 0;
    }

    h1 {
        font-size: clamp(2.1rem, 12vw, 3rem);
    }

    h2 {
        font-size: clamp(1.8rem, 10vw, 2.4rem);
    }

    p.lead {
        font-size: 1rem;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand-text strong {
        max-width: 190px;
        white-space: normal;
        line-height: 1.05;
    }

    .brand-text span {
        display: none;
    }

    .panel-card {
        padding: 22px;
        border-radius: 22px;
    }

    .feature-list li {
        padding: 14px;
    }

    .footer-brand img {
        width: 48px;
        height: 48px;
    }

    .contact-section .contact-box {
    padding: 28px 20px;
}
}

/* PÁGINAS LEGALES */

.legal-hero {
    background:
        radial-gradient(circle at top right, rgba(200, 20, 20, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 0 60px;
}

.legal-hero h1 {
    max-width: 900px;
}

.legal-hero .lead {
    max-width: 760px;
}

.legal-content {
    padding: 70px 0;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 42px;
}

.legal-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-top: 38px;
    margin-bottom: 16px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card h3 {
    margin-top: 26px;
    margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
    color: var(--color-muted);
    margin-bottom: 14px;
}

.legal-card ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.legal-card strong {
    color: var(--color-text);
}

.legal-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--color-accent);
    background: #fff5f5;
    border-radius: 16px;
}

.legal-notice p {
    margin-bottom: 0;
    color: var(--color-text);
}

@media (max-width: 820px) {
    .legal-hero {
        padding: 58px 0 42px;
    }

    .legal-content {
        padding: 50px 0;
    }

    .legal-card {
        padding: 26px;
    }
}

.truck-animation {
    position: fixed;
    bottom: 35px;
    left: -120px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.truck-animation.active {
    opacity: 1;
}

.truck-animation img {
    width: 110px;
    height: auto;
    display: block;
}