/* ========================================
   Maquinaria Rentscoop Spa - Custom Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
    --rs-dark: #0a0a0a;
    --rs-dark-2: #111111;
    --rs-dark-3: #1a1a1a;
    --rs-dark-4: #222222;
    --rs-orange: #e8830c;
    --rs-orange-light: #f5a623;
    --rs-orange-glow: rgba(232, 131, 12, 0.3);
    --rs-gray: #8a8a8a;
    --rs-gray-light: #b0b0b0;
    --rs-white: #f0f0f0;
    --rs-gradient: linear-gradient(135deg, var(--rs-orange) 0%, var(--rs-orange-light) 100%);
    --rs-glass: rgba(26, 26, 26, 0.7);
    --rs-glass-border: rgba(255, 255, 255, 0.08);
    --rs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rs-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --rs-shadow-orange: 0 4px 24px rgba(232, 131, 12, 0.25);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--rs-dark);
    color: var(--rs-white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--rs-transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Section Styling --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--rs-gray-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--rs-gradient);
    border-radius: 2px;
    margin: 1rem auto 2rem;
}

/* --- Navbar --- */
.navbar-rs {
    background: transparent !important;
    backdrop-filter: none;
    transition: var(--rs-transition);
    padding: 1.2rem 0;
    z-index: 1050;
}

.navbar-rs.scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rs-glass-border);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-rs .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rs-white) !important;
    letter-spacing: -0.5px;
}

.navbar-rs .navbar-brand span {
    color: var(--rs-orange);
}

.navbar-rs .nav-link {
    color: rgba(240, 240, 240, 0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    transition: var(--rs-transition);
}

.navbar-rs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rs-gradient);
    transition: var(--rs-transition);
    transform: translateX(-50%);
}

.navbar-rs .nav-link:hover,
.navbar-rs .nav-link.active {
    color: var(--rs-orange) !important;
}

.navbar-rs .nav-link:hover::after,
.navbar-rs .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 1px solid rgba(232, 131, 12, 0.4) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,131,12,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- CTA Button --- */
.btn-rs {
    background: var(--rs-gradient);
    color: #fff !important;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--rs-transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-rs::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-rs:hover::before {
    left: 100%;
}

.btn-rs:hover {
    box-shadow: var(--rs-shadow-orange);
    transform: translateY(-2px);
}

.btn-rs-outline {
    background: transparent;
    border: 2px solid var(--rs-orange);
    color: var(--rs-orange) !important;
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--rs-transition);
    cursor: pointer;
}

.btn-rs-outline:hover {
    background: var(--rs-gradient);
    border-color: transparent;
    color: #fff !important;
    box-shadow: var(--rs-shadow-orange);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.35);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 131, 12, 0.15);
    border: 1px solid rgba(232, 131, 12, 0.3);
    color: var(--rs-orange-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--rs-gray-light);
    max-width: 550px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rs-glass-border);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rs-orange);
    margin-bottom: 0.2rem;
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--rs-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--rs-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--rs-glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--rs-transition);
}

.glass-card:hover {
    border-color: rgba(232, 131, 12, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--rs-shadow);
}

/* --- Services Section --- */
.services-section {
    background: var(--rs-dark-2);
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(232, 131, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--rs-orange);
    transition: var(--rs-transition);
}

.service-card:hover .service-icon {
    background: var(--rs-gradient);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--rs-shadow-orange);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--rs-gray-light);
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    background: var(--rs-dark);
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image-wrapper img {
    border-radius: 20px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--rs-gradient);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
}

.about-image-badge h3 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.about-image-badge p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text h2 span {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--rs-gray-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.about-feature-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    background: rgba(232, 131, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-orange);
    font-size: 1.2rem;
}

.about-feature h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.about-feature p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--rs-gray);
}

/* --- Fleet Section --- */
.fleet-section {
    background: var(--rs-dark-2);
}

.fleet-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--rs-dark-3);
    border: 1px solid var(--rs-glass-border);
    transition: var(--rs-transition);
}

.fleet-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 131, 12, 0.3);
    box-shadow: var(--rs-shadow);
}

.fleet-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--rs-transition);
}

.fleet-card:hover .fleet-card-img {
    transform: scale(1.05);
}

.fleet-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.fleet-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rs-gradient);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fleet-card-body {
    padding: 1.5rem;
}

.fleet-card-body h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.fleet-card-body p {
    color: var(--rs-gray-light);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.fleet-card-specs {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rs-glass-border);
}

.fleet-card-spec {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--rs-gray);
}

.fleet-card-spec i {
    color: var(--rs-orange);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--rs-dark);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: rgba(232, 131, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-orange);
    font-size: 1.2rem;
}

.contact-info-card h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.9rem;
    color: var(--rs-gray-light);
    margin: 0;
}

.contact-info-card a:hover {
    color: var(--rs-orange);
}

.contact-form .form-control {
    background: var(--rs-dark-3);
    border: 1px solid var(--rs-glass-border);
    color: var(--rs-white);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--rs-transition);
}

.contact-form .form-control:focus {
    background: var(--rs-dark-4);
    border-color: var(--rs-orange);
    box-shadow: 0 0 0 3px rgba(232, 131, 12, 0.15);
    color: var(--rs-white);
}

.contact-form .form-control::placeholder {
    color: var(--rs-gray);
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* --- Footer --- */
.footer-section {
    background: var(--rs-dark-2);
    border-top: 1px solid var(--rs-glass-border);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rs-white);
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--rs-orange);
}

.footer-text {
    color: var(--rs-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--rs-white);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--rs-gradient);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--rs-gray-light);
    font-size: 0.9rem;
    transition: var(--rs-transition);
}

.footer-links a:hover {
    color: var(--rs-orange);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rs-dark-3);
    border: 1px solid var(--rs-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-gray-light);
    font-size: 1rem;
    transition: var(--rs-transition);
}

.footer-social a:hover {
    background: var(--rs-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--rs-shadow-orange);
}

.footer-bottom {
    border-top: 1px solid var(--rs-glass-border);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--rs-gray);
    margin: 0;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--rs-transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--rs-dark-3);
    border: 1px solid var(--rs-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rs-orange);
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--rs-transition);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--rs-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat h3 {
        font-size: 2rem;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--rs-glass-border);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: 50px 0;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-rs,
    .hero-buttons .btn-rs-outline {
        width: 100%;
        text-align: center;
    }
}
