/* ===== VARIABLES ===== */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #ffffff;
    --dark: #4b5563;
    --light: #f3f4f6;
    --gray: #6b7280;
}

/* ===== GENERAL ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.text-primary {
    color: #f97316 !important;
}

.bg-primary {
    background-color: #f97316 !important;
}

.border-primary {
    border-color: #f97316 !important;
}

.text-gray {
    color: #6b7280;
}

.bg-light {
    background-color: #f3f4f6 !important;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #ffffff;
    min-height: 105px;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #f97316;
    padding: 0;
}

.navbar .container {
    min-height: 105px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    width: 225px;
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar-toggler {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.7em;
    height: 1.7em;
}

.navbar-nav .nav-link {
    color: #4b5563;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f97316;
}

@media (min-width: 992px) {
    .navbar-brand img {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 95px;
    }

    .navbar .container {
        min-height: 95px;
    }

    .navbar-brand img {
        width: 220px;
    }
}

/* ===== BOTONES ===== */
.btn-primary {
    background-color: #f97316;
    border-color: #f97316;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #ea580c;
    border-color: #ea580c;
}

.btn-secondary {
    background-color: #ffffff;
    border-color: #f97316;
    color: #f97316;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: #f97316;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #f97316 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../img/CamionCromotrans.JPG') no-repeat center center;
    background-size: cover;
    opacity: 0.35;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== HERO IMAGE + BADGE ===== */
.hero-image-box {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hero-truck-img {
    max-width: 90%;
    opacity: 1;
}

.experience-badge {
    position: absolute;
    top: -70px;
    left: -30px;
    transform: rotate(-25deg);
    background: #ffffff;
    color: #f97316;
    padding: 1rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    z-index: 3;
}

.experience-badge div {
    color: #f97316;
}

/* ===== FIX MOBILE HERO ===== */
@media (max-width: 768px) {
    .hero {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
        overflow: hidden;
    }

    .hero .container {
        position: relative;
        z-index: 2;
    }

    .hero .row {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1.5rem;
    }

    .hero p,
    .hero .lead {
        font-size: 1.15rem;
        line-height: 1.55;
        margin-bottom: 1.75rem;
    }

    .hero .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin-bottom: 0.8rem;
        font-size: 1.05rem;
        padding: 0.95rem 1.2rem;
    }

    .hero .col-lg-7 {
        margin-top: 2.5rem;
    }

    .hero-image-box {
        display: block;
        padding-top: 4.5rem;
    }

    .hero-truck-img {
        max-width: 100%;
        width: 100%;
    }

    .experience-badge {
        top: 0;
        left: 0;
        transform: rotate(-18deg) scale(0.85);
        transform-origin: left top;
        padding: 0.85rem 1.1rem;
        border-radius: 12px;
    }

    .experience-badge .fs-4 {
        font-size: 1.35rem !important;
    }

    .experience-badge div:last-child {
        font-size: 0.95rem;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #f97316;
}

/* ===== STAT CARDS NOSOTROS ===== */
.stats-section {
    margin-top: 35px;
}

.stat-card {
    position: relative;
    min-height: 165px;
    padding: 36px 24px;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.96),
        rgba(245, 245, 245, 0.84)
    );
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(28px);
    opacity: 0;
    transition: all 0.8s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 122, 24, 0.18), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(120, 120, 120, 0.14), transparent 34%);
    pointer-events: none;
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    width: 64%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        #ff6b00,
        transparent
    );
    opacity: 0.85;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card .counter-number {
    position: relative;
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 800;
    color: #ff6b00;
    margin-bottom: 16px;
}

.stat-card p {
    position: relative;
    margin: 0;
    font-size: 1.15rem;
    color: #2f3542;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-card {
        min-height: 140px;
        padding: 30px 20px;
    }
}

/* ===== CONTACTO ===== */
.contact-section {
    min-height: 100vh;
    min-height: 100svh;
}

.contact-left {
    background:
        linear-gradient(
            135deg,
            rgba(15, 15, 15, 0.85),
            rgba(25, 25, 25, 0.9)
        ),
        url('../../img/CamionCromotrans.JPG');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.contact-left .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.85)
    );
    z-index: 0;
}

.contact-left > *:not(.overlay) {
    position: relative;
    z-index: 1;
}

.contact-icon {
    background: rgba(249, 115, 22, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-icon i {
    color: #f97316;
}

/* ===== FORMULARIOS ===== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.form-control:focus,
.form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ===== MAPA ===== */
.map-responsive {
    height: 320px;
}

@media (min-width: 992px) {
    .map-responsive {
        height: 380px;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: #4b5563;
    color: #e2e8f0;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    transition: all 0.3s ease;
    margin-right: 10px;
    text-decoration: none;
}

.social-link:hover {
    background: #f97316;
    color: white;
    transform: translateY(-3px);
}

/* ===== ANIMACIÓN SUAVE GENERAL ===== */
.animate-left,
.animate-right {
    opacity: 0;
    transform: translateY(35px);
    animation: fadeUp 0.9s ease forwards;
}

.animate-right {
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE TUNING GENERAL ===== */
@media (max-width: 991.98px) {
    .contact-section .col-lg-5,
    .contact-section .col-lg-7 {
        padding: 1.5rem !important;
    }

    .hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.15;
    }

    .map-responsive {
        height: 260px;
    }
}

/* ===== BANNER DE COOKIES ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin: 0;
    color: #4b5563;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cookie-banner a {
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner a:hover {
    color: #ea580c;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .cookie-actions {
        margin-top: 0;
        flex-shrink: 0;
    }
}

/* ===== 20 ANIVERSARIO / SCROLL STORY ===== */
.anniversary-section {
    position: relative;
    min-height: 215vh;
    background: linear-gradient(
        180deg,
        #f28c28 0%,
        #7a7a7a 48%,
        #f8f9fa 100%
    );
    color: #ffffff;
    overflow: hidden;
}

.anniversary-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.28), transparent 30%),
        radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.12), transparent 34%);
    pointer-events: none;
}

.anniversary-intro {
    position: relative;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
    z-index: 3;
}

.anniversary-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.anniversary-intro h1 {
    max-width: 920px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    font-weight: 800;
}

.anniversary-intro p {
    max-width: 680px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
}

.anniversary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 760px;
    margin-top: 38px;
}

.anniversary-stat-card {
    position: relative;
    padding: 24px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.8s ease;
}

.anniversary-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.24),
        transparent 55%
    );
    pointer-events: none;
}

.anniversary-stat-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.counter-number {
    position: relative;
    display: block;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.anniversary-stat-card p {
    position: relative;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.scroll-hint {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.scroll-hint span {
    width: 22px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    position: relative;
}

.scroll-hint span::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 999px;
    transform: translateX(-50%);
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 14px);
    }
}

.timeline-wrapper {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12vh 1.5rem 12vh;
    z-index: 3;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.75),
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    text-align: right;
}

.timeline-year {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.timeline-content h3 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
    color: #ffffff;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.final-item .timeline-content {
    background: #ffffff;
    color: #111827;
}

.final-item .timeline-content h3,
.final-item .timeline-content p {
    color: #111827;
}

.anniversary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.6rem;
    background: #f97316;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.anniversary-btn:hover {
    background: #ea580c;
    color: #ffffff;
    transform: translateY(-3px);
}

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

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

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

@media (max-width: 768px) {
    .anniversary-section {
        min-height: auto;
    }

    .anniversary-intro {
        position: relative;
        min-height: 100vh;
        padding-top: 7rem;
        padding-bottom: 5rem;
    }

    .anniversary-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 14px;
    }

    .anniversary-stat-card {
        padding: 20px 18px;
    }

    .timeline-wrapper {
        padding-top: 5rem;
    }

    .timeline-line {
        left: 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 5.5rem;
        padding-left: 2.2rem;
    }

    .timeline-item:nth-child(even) .timeline-year,
    .timeline-item:nth-child(even) .timeline-content {
        order: initial;
        text-align: left;
    }

    .timeline-year {
        font-size: 3rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .truck-animation {
        display: none;
    }
}

.cancelar-solicitud-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e4e4e4;
}

.btn-cancelar-solicitud {
    border: 1px solid #c40000;
    border-radius: 8px;
    padding: 9px 14px;
    background: #fff;
    color: #c40000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancelar-solicitud:hover {
    background: #c40000;
    color: #fff;
}