:root {
    /* Paleta en tonos Cian y Oscuros */
    --up-cyan: #00E5FF;
    --up-cyan-dark: #00B8D4;
    --up-dark: #121212;
    --up-gray: #f3f4f6;
    --up-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--up-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==================== NAVBAR ==================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--up-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--up-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--up-cyan);
}

.nav-links {
    display: none;
    gap: 2rem;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--up-cyan-dark);
}

.btn-nav {
    background-color: var(--up-dark);
    color: var(--up-white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--up-cyan-dark);
    color: var(--up-dark);
}

/* ==================== HERO ==================== */
.hero {
    display: flex;
    flex-direction: column;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--up-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 90%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 229, 255, 0.2);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--up-cyan);
    color: var(--up-dark);
}

.btn-secondary {
    background-color: var(--up-dark);
    color: var(--up-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--up-white);
    border: 2px solid var(--up-white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--up-cyan-dark);
}

.btn-secondary:hover {
    background-color: #2a2a2a;
}

.btn-outline-light:hover {
    background-color: var(--up-white);
    color: var(--up-dark);
}

/* ==================== SERVICES ==================== */
.services {
    padding: 5rem 5%;
    background-color: var(--up-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--up-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.service-card {
    background-color: var(--up-gray);
    border-radius: 32px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.service-card:hover {
    background-color: var(--up-white);
    border-color: var(--up-cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1);
}

.service-card-image {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--up-cyan-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* ==================== SECURITY SECTION ==================== */
.security-section {
    padding: 5rem 5%;
    background-color: var(--up-gray);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.security-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--up-white);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--up-dark);
}

.security-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== DRIVER CTA ==================== */
.driver-cta {
    background: linear-gradient(135deg, var(--up-dark) 0%, #1e3a5f 100%);
    color: var(--up-white);
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 40px;
    margin: 0 5% 5rem;
}

.driver-cta-content {
    max-width: 600px;
}

.driver-cta h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.driver-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #9ca3af;
}

.driver-buttons {
    justify-content: center;
}

.driver-cta-image {
    margin-top: 2rem;
}

/* ==================== REQUIREMENTS SECTION ==================== */
.requirements-section {
    padding: 5rem 5%;
    background-color: var(--up-white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.requirement-card {
    background-color: var(--up-gray);
    border-radius: 20px;
    padding: 2rem;
    border-left: 4px solid var(--up-cyan);
}

.requirement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--up-dark);
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-light);
}

.requirement-card li:last-child {
    border-bottom: none;
}

.requirement-card li::before {
    content: "✓";
    color: var(--up-cyan-dark);
    font-weight: bold;
    margin-right: 10px;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 5rem 5%;
    background-color: var(--up-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background-color: var(--up-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--up-dark);
}

.contact-card p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card small {
    color: var(--text-light);
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--up-white);
    padding: 4rem 5% 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--up-dark);
}

.footer-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--up-cyan-dark);
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== FLOATING BUTTON ==================== */
.floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--up-cyan);
    color: var(--up-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
    animation: pulse 2s infinite;
}

.floating-download:hover {
    transform: scale(1.1);
    background-color: var(--up-cyan-dark);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

/* ==================== MODALES LEGALES ==================== */
.modal {
    display: none; /* OCULTO POR DEFECTO */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--up-white);
    margin: auto;
    padding: 0;
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    padding: 2rem 2rem 0.5rem 2rem;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--up-dark);
    border-bottom: 1px solid var(--up-gray);
    background-color: var(--up-white);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--up-cyan-dark);
    background-color: var(--up-gray);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem 2rem 2.5rem 2rem;
    overflow-y: auto;
    color: var(--text-dark);
    background-color: var(--up-white);
}

.modal-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--up-dark);
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p, .modal-body li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--up-dark);
}

.modal-body a {
    color: var(--up-cyan-dark);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 8rem 5%;
    }
    
    .hero-content {
        margin-bottom: 0;
        margin-right: 4rem;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .security-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .driver-cta {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 5rem;
    }
    
    .driver-buttons {
        justify-content: flex-start;
    }
    
    .driver-cta-image {
        margin-top: 0;
    }
    
    .requirements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .security-grid,
    .requirements-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-download {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .modal-content h2 {
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
}