/* =============================================
   CARROCERÍAS RODGAL — styles.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,600;0,700;1,400&family=Barlow+Condensed:wght@300;500;700&display=swap');

/* ── VARIABLES ── */
:root {
    --black: #0a0a0a;
    --dark: #111417;
    --steel: #1c2128;
    /* 🔵 Nueva paleta azul */
    --blue: #0a62e8;
    --blue-hot: #1a7aff;
    --blue-dim: rgba(10, 98, 232, 0.15);
    --blue-glow: rgba(26, 122, 255, 0.25);
    --white: #f0ede8;
    --muted: #8a8e96;
    --border: rgba(255, 255, 255, 0.07);
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 150px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-mobile {
    display: none;
}

.nav-mobile.active {
    display: flex;
}

#logo {
    width: 150px;
    height: 150px;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--white);
}

.logo-accent {
    color: var(--blue);
}

.logo-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--blue);
    color: var(--black) !important;
    padding: 10px 22px;
    font-weight: 700 !important;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--blue-hot) !important;
    color: var(--black) !important;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
}

/* Radial glow */
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(0, 120, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Diagonal stripes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    background: repeating-linear-gradient(-55deg,
            transparent,
            transparent 28px,
            rgba(255, 255, 255, 0.018) 28px,
            rgba(255, 255, 255, 0.018) 30px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--blue);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.hero-title span {
    color: var(--blue);
    display: block;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #b0b4bc;
    max-width: 440px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-primary {
    background: var(--blue);
    color: var(--black);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--blue-hot);
    transform: translateY(-2px);
}

.btn-ghost {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.btn-ghost:hover {
    gap: 14px;
}

.btn-ghost::after {
    content: '→';
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.hero-truck-svg {
    width: 100%;
    max-width: 540px;
    filter: drop-shadow(0 0 60px var(--blue-glow));
    animation: floatTruck 5s ease-in-out infinite;
}

@keyframes floatTruck {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

/* ─────────────────────────────────────────────
   MARQUEE
───────────────────────────────────────────── */
.marquee-wrap {
    overflow: hidden;
    background: var(--blue);
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--black);
    padding: 0 40px;
}

.marquee-sep {
    color: rgba(0, 0, 0, 0.35);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─────────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────────── */
section {
    padding: 100px 48px;
}

.section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(44px, 5vw, 72px);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 20px;
}

.section-subtitle {
    color: #8a8e96;
    font-size: 16px;
    line-height: 1.65;
    max-width: 520px;
}

/* ─────────────────────────────────────────────
   PRODUCTOS
───────────────────────────────────────────── */
#productos {
    background: var(--dark);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.product-card {
    background: var(--steel);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border-top: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--blue);
    z-index: 2;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.product-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    bottom: -10px;
    right: 16px;
    line-height: 1;
    pointer-events: none;
}

.product-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

/* ─────────────────────────────────────────────
   REPARACIONES
───────────────────────────────────────────── */
#reparaciones {
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.repair-box {
    background: var(--steel);
    padding: 48px;
    position: relative;
    border-left: 4px solid var(--blue);
}

.repair-box::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid var(--border);
    pointer-events: none;
}

.repair-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--blue);
    color: var(--black);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    padding: 10px 22px;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.repair-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.repair-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #c4c8d0;
}

.repair-list li::before {
    content: '▸';
    color: var(--blue);
    font-size: 12px;
    flex-shrink: 0;
}

.wrench-svg {
    width: 100%;
    max-width: 200px;
    margin: 32px auto 0;
    display: block;
    opacity: 0.5;
}

.repair-highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--steel);
    border-left: 3px solid var(--blue);
}

.repair-highlight-icon {
    font-size: 28px;
}

.repair-highlight-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    margin-bottom: 4px;
}

.repair-highlight-desc {
    font-size: 14px;
    color: var(--muted);
}

/* ─────────────────────────────────────────────
   NOSOTROS
───────────────────────────────────────────── */
#nosotros {
    background: var(--dark);
}

.nosotros-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.nosotros-header .section-label {
    justify-content: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.why-card {
    background: var(--steel);
    padding: 48px 36px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.why-card:hover {
    border-bottom-color: var(--blue);
}

.why-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.why-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.why-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}

/* ─────────────────────────────────────────────
   CONTACTO
───────────────────────────────────────────── */
#contacto {
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--steel);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.form-group select option {
    background: var(--steel);
}

.form-submit {
    background: var(--blue);
    color: var(--black);
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 18px;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background 0.2s;
    margin-top: 8px;
}

.form-submit:hover {
    background: var(--blue-hot);
}

.form-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
    text-align: center;
}

.form-note a {
    color: var(--blue);
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-dim);
    border: 1px solid rgba(10, 98, 232, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 6px;
}

.contact-item-value {
    font-size: 15px;
    color: #c4c8d0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
}

.footer-logo span {
    color: var(--blue);
}

.footer-copy {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
    }

    .hero-visual {
        align-items: center;
    }

    section {
        padding: 72px 24px;
    }

    #reparaciones,
    #contacto {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}