/* ============================================
   Big Heavy Industries - Styles - System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #1d1d1f;
    --color-dark: #2c2c2e;
    --color-gray: #6e6e73;
    --color-light-gray: #d2d2d7;
    --color-bg: #fbfbfd;
    --color-white: #ffffff;
    --color-accent: #111111;
    --color-accent-hover: #000000;
    --color-accent-light: #ebebeb;
    --color-surface: #f5f5f7;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --nav-height: 88px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000000;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--font-family);
    color: var(--color-black);
    background: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 1000;
    transition: var(--transition);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.nav-container {
    width: 100%;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    max-width: 280px;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--color-black);
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.06);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar.scrolled .nav-link:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--color-black);
    border-color: rgba(0, 0, 0, 0.35);
}

.nav-cta {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border-color: transparent !important;
    margin-left: 4px;
}

.nav-cta:hover {
    background: #333 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-black);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.15) 100%
    ), linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 52%;
    flex-shrink: 0;
}

.hero-badges {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.hero-badge-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-badge-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #22c55e;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 480px;
    margin: 0 0 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: max(24px, calc((100vw - 1200px) / 2 + 24px));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    white-space: nowrap;
}

.btn-primary {
    background: #ffffff;
    color: #111111;
}

.btn-primary:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

/* --- Stats --- */
.stats {
    background: var(--color-black);
    padding: 48px 0;
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-weight: 500;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-black);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--color-gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-light-gray);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* --- Fleet --- */
.fleet {
    padding: 120px 0;
    background: var(--color-surface);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fleet-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.fleet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fleet-card:hover img {
    transform: scale(1.05);
}

.fleet-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.fleet-card:hover .fleet-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.fleet-card-overlay h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fleet-card-overlay p {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.about-image img.about-logo {
    height: auto;
    width: 100%;
    max-width: 1400px;
    object-fit: contain;
    border-radius: 0;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-features {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.feature-check {
    width: 28px;
    height: 28px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--color-black);
}

.contact .section-tag {
    color: rgba(255, 255, 255, 0.5);
}

.contact .section-title {
    color: var(--color-white);
}

.contact .contact-desc {
    color: rgba(255, 255, 255, 0.6);
}

.contact .contact-detail h4 {
    color: var(--color-white);
}

.contact .contact-detail p,
.contact .contact-detail a {
    color: rgba(255, 255, 255, 0.7);
}

.contact .contact-detail a:hover {
    color: var(--color-white);
}

.contact .contact-detail-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.contact-centered {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-centered .section-tag,
.contact-centered .section-title {
    text-align: center;
}

.contact-details-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-details-row .contact-detail {
    align-items: center;
    text-align: left;
}

.contact-desc {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.contact-detail a {
    color: var(--color-accent);
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--color-accent-hover);
}

/* --- Footer --- */
.footer {
    background: var(--color-black);
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Testimonios --- */
.testimonials {
    background: var(--color-bg);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text);
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-black);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-black);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 28px 24px;
    }
}

/* --- Mapa contacto --- */
.contact-map {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.contact-map-label {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-map-label > span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.contact-map-provinces {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.province-chip {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-map-iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

/* --- Modal legal --- */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.legal-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px 0;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

#legalContent {
    padding: 0 40px 40px;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
    display: block;
}

.legal-modal-close:hover {
    color: var(--color-black);
}

#legalContent h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-black);
}

#legalContent h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--color-black);
}

#legalContent p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .legal-modal-box {
        max-height: 90vh;
        border-radius: 16px;
    }
    #legalContent {
        padding: 0 24px 32px;
    }
}

/* --- Banner cookies --- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 32px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1500;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.visible {
    display: flex;
}

/* Sube el botón WhatsApp cuando el banner está visible */
.cookie-banner.visible ~ .whatsapp-float {
    bottom: 90px;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.cookie-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-btn {
    background: #fff;
    color: var(--color-black);
    border: none;
    border-radius: 12px;
    padding: 10px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.cookie-btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        gap: 16px;
    }
    .cookie-btn {
        text-align: center;
    }
    .cookie-banner.visible ~ .whatsapp-float {
        bottom: 148px;
    }
}

/* --- Toast notificación --- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-black);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- WhatsApp flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 27px;
        height: 27px;
    }
}

/* --- Animations --- */
.anim-base {
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform, opacity;
}

.anim-up    { opacity: 0; transform: translateY(70px); }
.anim-left  { opacity: 0; transform: translateX(-90px); }
.anim-right { opacity: 0; transform: translateX(90px); }

.anim-base.anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* legacy fade-in por si algo lo usa */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Decorative backgrounds --- */

.stats {
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}
.stats::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    pointer-events: none;
    z-index: 0;
}
.stats .container {
    position: relative;
    z-index: 1;
}

.services {
    position: relative;
    overflow: hidden;
}
.services::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.07);
    box-shadow: inset 0 0 0 60px rgba(0,0,0,0.025), inset 0 0 0 120px rgba(0,0,0,0.015);
    pointer-events: none;
    z-index: 0;
}
.services::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.06);
    pointer-events: none;
    z-index: 0;
}
.services .container {
    position: relative;
    z-index: 1;
}
/* Extra línea diagonal servicios */
.services .section-header {
    position: relative;
}
.services .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -120px;
    width: 80px;
    height: 2px;
    background: rgba(0,0,0,0.10);
    transform: rotate(-45deg);
}
.services .section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -120px;
    width: 80px;
    height: 2px;
    background: rgba(0,0,0,0.10);
    transform: rotate(45deg);
}

.fleet {
    position: relative;
    overflow: hidden;
}
.fleet::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}
.fleet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.05);
    box-shadow: 0 0 0 80px rgba(0,0,0,0.02), 0 0 0 160px rgba(0,0,0,0.015);
    pointer-events: none;
    z-index: 0;
}
.fleet .container {
    position: relative;
    z-index: 1;
}

.about {
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    bottom: -280px;
    right: -280px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.07);
    box-shadow: inset 0 0 0 80px rgba(0,0,0,0.025);
    pointer-events: none;
    z-index: 0;
}
.about::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.055);
    pointer-events: none;
    z-index: 0;
}
.about .container {
    position: relative;
    z-index: 1;
}

.contact {
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}
.contact::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
    z-index: 0;
}
.contact .container {
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 24px);
    }

    .nav-container {
        padding: 0 14px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: calc(10px + var(--nav-height) + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: calc(100% - 24px);
        background: rgba(20, 20, 20, 0.92);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }

    .navbar.scrolled .nav-menu {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .nav-menu li {
        width: 100%;
        display: block;
    }

    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        display: block;
        font-size: 0.9rem;
        padding: 13px 16px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.9) !important;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        text-align: center;
        margin: 0;
        transition: background 0.2s ease, color 0.3s ease;
    }

    .navbar.scrolled .nav-link {
        color: var(--color-black) !important;
        border-bottom-color: rgba(0, 0, 0, 0.07);
    }

    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .navbar.scrolled .nav-link:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
        border-radius: 10px !important;
        width: 100%;
        box-sizing: border-box;
        display: block;
        background: rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        padding: 13px 16px;
    }

    .navbar.scrolled .nav-cta {
        background: var(--color-black) !important;
        color: var(--color-white) !important;
        border-color: transparent !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stat-item {
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    .contact-details-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badges {
        display: none;
    }

    .stats {
        display: block;
    }

    .hero-scroll {
        left: 24px;
    }
}
