:root {
    /* Paleta Neutra Clara */
    --bg-color: #FFFFFF;
    --section-bg-alt: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    
    /* Paleta Roja Corporativa */
    --primary-red: #DC2626;
    --primary-red-hover: #B91C1C;
    --dark-red: #991b1b;
    --border-color: #E5E7EB;
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
    position: relative;
    z-index: 1100;
}

.logo-link img:hover {
    opacity: 0.8;
}

/* NAVEGACIÓN DESKTOP */
.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: #ffffff;
}

.main-nav a.nav-link:hover {
    color: #ffcdd2;
}

.btn-whatsapp-header {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-whatsapp-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* BOTONES MENÚ MÓVIL (Ocultos en Desktop) */
.mobile-menu-btn, .close-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 1100;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 20px 80px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #000000 0%, #333333 50%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--primary-red);
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

/* ESTILOS BOTÓN WHATSAPP HERO (Outline version) */
.btn-whatsapp-hero {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp-hero:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

/* CAJA DE ENTREGA */
.delivery-hero-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary-red);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.1);
    white-space: nowrap;
}

.delivery-hero-box span {
    font-weight: 600;
    color: var(--primary-red);
    font-size: 0.95rem;
}

.delivery-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ink-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(at top left, rgba(220, 38, 38, 0.03) 0%, transparent 60%);
    z-index: 1;
}

/* SERVICES SECTION */
.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
}

.red-icon { color: var(--primary-red); }

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.red-accent:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

/* ÁREA CLIENTE - DRIVERS */
.client-area-section {
    padding: 80px 20px;
    background-color: var(--section-bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.driver-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.driver-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.driver-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.driver-card span {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
}

.driver-card:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
}

/* B2B FORM SECTION */
.b2b-form-section {
    padding: 100px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.form-wrapper.light-form {
    background-color: #FFFFFF;
    padding: 60px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.b2b-form-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.b2b-form-section p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.b2b-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.b2b-form input[type="text"],
.b2b-form input[type="email"],
.b2b-form input[type="tel"],
.b2b-form textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.b2b-form input:focus,
.b2b-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.1);
}

/* ARCHIVO ADJUNTO */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.file-upload-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-input {
    width: 100%;
    padding: 10px;
    background-color: #FFFFFF;
    border: 1px dashed var(--primary-red);
    color: var(--text-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.file-input:hover {
    background-color: var(--section-bg-alt);
}

.file-input::file-selector-button {
    background-color: var(--section-bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-main);
    transition: var(--transition);
}

.file-input::file-selector-button:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* ALINEACIÓN RECAPTCHA */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.form-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-submit-red {
    background: var(--primary-red);
    color: #fff;
    padding: 18px 45px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
}

.btn-submit-red:hover {
    background-color: var(--primary-red-hover);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.ink-splash-bg.red-splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: radial-gradient(circle, rgba(220, 38, 38, 0.04) 0%, transparent 60%);
    z-index: 1;
}

/* MAP SECTION */
.map-section {
    padding: 80px 20px;
}

/* FOOTER */
footer {
    background-color: #FFFFFF;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.footer-links {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* RGPD: CHECKBOX FORMULARIO */
.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    cursor: pointer;
}

.form-group-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-group-checkbox a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* RGPD: ENLACES LEGALES FOOTER */
.legal-links {
    margin-top: 20px;
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--text-muted);
    margin: 0 5px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary-red);
}

/* RGPD: BANNER DE COOKIES */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1F2937;
    color: #F9FAFB;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-red);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    color: #F9FAFB;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #F9FAFB;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- SECCIÓN UBICACIÓN LIMPIA --- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.location-info {
    text-align: left;
}

.location-subtitle {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.location-info p {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.location-info strong {
    font-weight: 700;
    color: var(--text-color);
}

.location-map .map-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-section h1 { font-size: 3.5rem; }
    .form-wrapper.light-form { padding: 40px; }
}

@media (max-width: 768px) {
    .logo-link img { height: 50px; }
    .header-container { padding: 10px 20px; }
    
    /* MENÚ MÓVIL PLEGABLE */
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1050;
    }

    .main-nav.active { right: 0; }
    .menu-overlay.active { display: block; opacity: 1; }

    .close-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--text-color);
    }

    .main-nav a.nav-link {
        color: var(--text-color);
        font-size: 1.2rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a.nav-link:hover { color: var(--primary-red); }

    .btn-whatsapp-header {
        margin-top: 20px;
        background: var(--whatsapp-color);
        color: #fff !important;
        border: none;
        width: 100%;
        justify-content: center;
    }

    .hero-section { padding-top: 120px; }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; gap: 15px; }
    
    .section-header h2 { font-size: 2.2rem; }
    
    .delivery-hero-box {
        padding: 6px 15px;
        width: 100%; 
        max-width: 340px;
    }
    .delivery-hero-box span { font-size: 0.8rem; }

    .b2b-form-section { padding: 60px 20px; }
    .form-wrapper.light-form { padding: 30px; }
    .form-group-row { flex-direction: column; gap: 20px; }
    .btn-submit-red { max-width: 100%; }
}