/*
Theme Name: Happy Ship
Theme URI: https://happyship.es
Author: Happy Ship
Description: Tema personalizado para Happy Ship — Plataforma de subastas de transporte.
Version: 1.0.0
Text Domain: happyship
*/

/* ============================================
   HAPPY SHIP — TEMA WORDPRESS
   Paleta: Naranja #FF6B2C | Azul oscuro #1B2A4A | Verde #00C9A7
   ============================================ */

:root {
    --primary: #FF6B2C;
    --primary-dark: #E55A1B;
    --primary-light: #FFF3ED;
    --secondary: #1B2A4A;
    --secondary-light: #2D4A7A;
    --accent: #00C9A7;
    --accent-light: #E6FFF9;
    --bg-light: #F7F8FA;
    --bg-white: #FFFFFF;
    --text-dark: #1B2A4A;
    --text-body: #5A6B87;
    --text-light: #8E9BB5;
    --border: #E8ECF1;
    --shadow-sm: 0 2px 8px rgba(27,42,74,0.06);
    --shadow-md: 0 8px 30px rgba(27,42,74,0.10);
    --shadow-lg: 0 20px 60px rgba(27,42,74,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

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

/* ==================
   HEADER / NAV
   ================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    gap: 10px;
}

.site-logo-img {
    height: 46px;
    width: auto;
    display: block;
}

.site-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.site-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
}

.site-logo-text span { color: var(--primary); }

/* Header oscuro (transportistas) */
.site-header.dark {
    background: rgba(27,42,74,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.dark .site-logo-text { color: white; }
.site-header.dark .main-nav a { color: rgba(255,255,255,0.7); }
.site-header.dark .main-nav a:hover { color: var(--primary); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

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

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Mobile: login en header */
.mobile-header-login {
    display: none;
}

/* Barra bottom móvil */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--secondary);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mobile-bottom-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    padding: 16px 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s;
}

.mobile-bottom-item i {
    font-size: 18px;
}

.mobile-bottom-item:hover,
.mobile-bottom-item:active {
    background: rgba(255,255,255,0.08);
}

/* ==================
   BOTONES
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,44,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,44,0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #00A88A);
    color: white;
    box-shadow: 0 4px 15px rgba(0,201,167,0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,201,167,0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
    padding: 10px 14px;
}

.btn-ghost:hover { color: var(--primary); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================
   FORMULARIOS
   ================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: border-color 0.2s;
    background: var(--bg-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-input::placeholder { color: var(--text-light); }

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input-icon {
    position: relative;
}

.form-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

.form-input-icon .form-input {
    padding-left: 42px;
}

.form-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.form-trust i { color: var(--accent); }

/* ==================
   SECCIONES GENERALES
   ================== */
.section {
    padding: 100px 0;
}

.section.bg-white { background: white; }
.section.bg-light { background: var(--bg-light); }
.section.bg-dark {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
}
.section.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 70px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section.bg-dark .section-header h2,
.section.bg-primary .section-header h2 { color: white; }

.section-header p {
    font-size: 17px;
    color: var(--text-body);
}

.section.bg-dark .section-header p,
.section.bg-primary .section-header p {
    color: rgba(255,255,255,0.8);
}

/* ==================
   HERO HOME
   ================== */
.hero-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 146px 0 60px;
    background: linear-gradient(165deg, #F7F8FA 0%, #FFF3ED 50%, #E6FFF9 100%);
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,44,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-home .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero-home h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-home h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-home h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255,107,44,0.2);
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero form card */
.hero-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-form-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--secondary);
}

.hero-form-card .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* ==================
   HERO TRANSPORTISTAS
   ================== */
.hero-transportistas {
    padding: 146px 0 100px;
    background: linear-gradient(165deg, var(--secondary) 0%, #162240 60%, #1a3055 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-transportistas::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,107,44,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-transportistas .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-transportistas h1 {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: white;
}

.hero-transportistas h1 .highlight { color: var(--primary); }

.hero-transportistas .hero-badge {
    background: rgba(255,107,44,0.15);
    border: 1px solid rgba(255,107,44,0.3);
    color: var(--primary);
    box-shadow: none;
}

.hero-transportistas .hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 19px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero-highlight {
    text-align: center;
    padding: 20px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
}

.hero-highlight-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.hero-highlight-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* ==================
   FONDO AZUL OSCURO
   ================== */
.bg-dark-blue {
    background: var(--secondary);
}

.bg-dark-blue .section-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.bg-dark-blue .section-header h2 {
    color: white;
}

.bg-dark-blue .section-header p {
    color: rgba(255,255,255,0.65);
}

/* ==================
   CÓMO FUNCIONA — PASOS
   ================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    /* Estado inicial para animación */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(255,107,44,0.35);
}

.step-card:nth-child(even) .step-number {
    background: linear-gradient(135deg, var(--accent), #00A88A);
    box-shadow: 0 8px 20px rgba(0,201,167,0.35);
}

.step-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.step-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ==================
   TARJETAS DE SERVICIO
   ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.service-card:hover {
    background: var(--secondary);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(27,42,74,0.18);
    border-color: var(--secondary);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--primary-light);
    color: var(--primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(255,255,255,0.12);
    color: white;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: white;
}

.service-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: rgba(255,255,255,0.7);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card:hover .service-link {
    color: white;
}

/* ==================
   DOBLE CTA
   ================== */
.dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dual-card {
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: white;
}

.dual-card.users {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.dual-card.transporters {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.dual-card-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dual-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.dual-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.dual-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.dual-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 14px;
    opacity: 0.95;
}

.dual-card ul li i {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* ==================
   BENEFICIOS
   ================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.benefit-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* Benefit cards horizontal (transportistas) */
.benefits-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card-h {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-card-h:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.benefit-card-h .benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0;
    flex-shrink: 0;
}

/* ==================
   COMISIÓN
   ================== */
.commission-card {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px 44px;
    border: 2px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.commission-main {
    display: flex;
    align-items: center;
    gap: 28px;
    text-align: left;
    margin-bottom: 36px;
}

.commission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(255,107,44,0.3);
}

.commission-info h3 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.commission-info p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.commission-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.commission-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-light);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
}

.commission-highlight-item i {
    color: var(--accent);
    font-size: 18px;
}

/* ==================
   TESTIMONIOS
   ================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border);
}

.section.bg-light .testimonial-card { background: white; }
.section.bg-white .testimonial-card { background: var(--bg-light); }

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars i { color: #FFB800; font-size: 14px; }

.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-light);
}

/* ==================
   ESTADÍSTICAS
   ================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.stat-item p {
    font-size: 15px;
    opacity: 0.8;
}

/* ==================
   FAQ
   ================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.section.bg-white .faq-item { background: var(--bg-light); }

.faq-item:hover { border-color: var(--primary); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--secondary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 28px 22px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ==================
   CTA FINAL
   ================== */
.final-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==================
   FOOTER
   ================== */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
    margin-top: 16px;
    max-width: 300px;
}

.site-footer h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 12px; }

.site-footer ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer ul li a:hover { color: var(--primary); }

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ==================
   ENVÍOS — LISTADO
   ================== */
.page-header-bar {
    padding: 106px 0 30px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-bar h1 {
    font-size: 28px;
    color: var(--secondary);
}

.page-header-bar p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.filters-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.2s;
    min-width: 160px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.filters-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.results-count {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Shipment cards */
.shipment-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.shipment-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shipment-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.shipment-route {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.shipment-route i { color: var(--primary); font-size: 13px; }

.shipment-description {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shipment-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shipment-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-body);
}

.shipment-tag i { font-size: 10px; color: var(--text-light); }

.shipment-tag.urgent {
    background: #FFF0F0;
    color: #E74C3C;
}

.shipment-meta {
    text-align: right;
    flex-shrink: 0;
    min-width: 140px;
}

.shipment-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.shipment-status.open { background: var(--accent-light); color: var(--accent); }
.shipment-status.closing { background: #FFF8E1; color: #F59E0B; }

.shipment-bids {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.shipment-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    border: 1px solid var(--border);
    background: white;
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ==================
   ENVÍO — DETALLE
   ================== */
.breadcrumb-bar {
    padding: 96px 0 0;
    background: white;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    list-style: none;
}

.breadcrumb-list a { color: var(--text-light); }
.breadcrumb-list a:hover { color: var(--primary); }

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb-list li:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.detail-header {
    background: white;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--border);
}

.detail-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.detail-status.open { background: var(--accent-light); color: var(--accent); }

.detail-route {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.detail-route i { color: var(--primary); font-size: 20px; }

.detail-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
}

.detail-meta-item i { color: var(--text-light); width: 16px; text-align: center; }

.detail-bids-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 8px 18px;
    border-radius: var(--radius-full);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 30px 0 60px;
}

.detail-section {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title i { color: var(--primary); font-size: 16px; }

/* Specs grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.spec-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 2px;
}

/* Route visual */
.route-visual {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.route-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
}

.route-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: white;
    flex-shrink: 0;
}

.route-dot.end {
    border-color: var(--accent);
    background: var(--accent);
}

.route-connector {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    margin: 6px 0;
}

.route-point-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.route-point-city {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.route-point-address {
    font-size: 13px;
    color: var(--text-body);
    margin-top: 2px;
}

.route-distance {
    text-align: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.route-distance-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.route-distance-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Bid card */
.bid-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.bid-card h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 6px;
}

.bid-card .bid-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.bid-price-input {
    position: relative;
}

.bid-price-input .currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.bid-price-input .form-input {
    padding-left: 36px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--secondary);
}

.bid-price-input .iva-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
}

/* Summary card */
.summary-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
}

.summary-card h4 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-card h4 i { color: var(--primary); font-size: 14px; }

.summary-list { list-style: none; }

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-list li:last-child { border-bottom: none; }
.summary-list .label { color: var(--text-light); }
.summary-list .value { font-weight: 600; color: var(--secondary); }

/* Other bids */
.other-bids-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
}

.other-bid {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.other-bid:last-child { border-bottom: none; }

.other-bid-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.other-bid-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
}

.other-bid-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.other-bid-rating i { color: #FFB800; font-size: 10px; }

.other-bid-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-left: auto;
}

/* Publisher */
.publisher-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.publisher-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.publisher-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary);
}

.publisher-since {
    font-size: 13px;
    color: var(--text-light);
}

.publisher-stats {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.publisher-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-body);
}

/* ==================
   MENSAJES / ALERTAS
   ================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--accent-light);
    color: #00856A;
    border: 1px solid rgba(0,201,167,0.3);
}

.alert-error {
    background: #FFF0F0;
    color: #C0392B;
    border: 1px solid rgba(231,76,60,0.3);
}

.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid rgba(33,150,243,0.3);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
    .hero-home .container,
    .hero-transportistas .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-home h1 { font-size: 40px; }
    .hero-transportistas h1 { font-size: 40px; }

    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid-horizontal { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .dual-cta-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .nav-buttons { display: none; }
    .mobile-header-login { display: flex; align-items: center; }
    .mobile-bottom-bar { display: flex; }

    .site-header .container {
        height: 72px;
    }

    body {
        padding-bottom: 60px;
    }

    .hero-home { min-height: auto; }
    .hero-home h1 { font-size: 32px; }
    .hero-transportistas h1 { font-size: 32px; }
    .section-header h2 { font-size: 30px; }
    .final-cta h2 { font-size: 30px; }

    .steps-grid,
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .hero-buttons,
    .final-cta-buttons {
        flex-direction: column;
    }

    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-highlights { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .commission-main { flex-direction: column; text-align: center; }
    .commission-highlights { grid-template-columns: 1fr; }

    .shipment-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shipment-meta {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .detail-route { font-size: 24px; }

    .detail-header-top {
        flex-direction: column;
    }

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ============================================
   FORMULARIO INVITADO — REGISTRO + ENVÍO
   ============================================ */

.guest-login-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.guest-login-bar i {
    color: var(--primary);
    font-size: 1.1rem;
}

.guest-login-bar a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.guest-account-section {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 28px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   AUTOCOMPLETADO CIUDADES
   ============================================ */

.city-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 500;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
}

.city-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.city-autocomplete-item i {
    color: var(--primary);
    font-size: 12px;
}

.city-autocomplete-item:hover {
    background: var(--primary-light);
}

.city-autocomplete-item:first-child {
    border-radius: 10px 10px 0 0;
}

.city-autocomplete-item:last-child {
    border-radius: 0 0 10px 10px;
}

/* ============================================
   BANNER ENVÍO CERRADO
   ============================================ */

.shipment-closed-banner {
    background: #FEF3C7;
    border-bottom: 2px solid #F59E0B;
    padding: 14px 0;
    margin-top: 76px;
}

.shipment-closed-banner .container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #92400E;
    font-size: 0.95rem;
}

.shipment-closed-banner i {
    font-size: 1.2rem;
    color: #F59E0B;
}

/* ============================================
   PÁGINA DE PAGO
   ============================================ */

.payment-page {
    padding: 116px 0 60px;
    background: var(--bg-light);
    min-height: 80vh;
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.payment-header p {
    color: var(--text-body);
    font-size: 1.05rem;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.payment-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.payment-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-card h3 i {
    color: var(--primary);
}

.payment-card-highlight {
    border: 2px solid var(--primary);
    position: sticky;
    top: 96px;
}

/* Ruta en pago */
.payment-route {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.payment-route-point {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-route-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.payment-route-dot.origin { background: var(--accent); }
.payment-route-dot.destination { background: var(--primary); }

.payment-route-point strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-route-point span {
    color: var(--text-dark);
    font-weight: 600;
}

.payment-route-line {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin-left: 6px;
}

.payment-shipment-title {
    font-weight: 600;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Transportista en pago */
.payment-transporter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.payment-transporter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.payment-transporter strong {
    display: block;
    color: var(--text-dark);
}

.payment-transporter span {
    color: var(--text-body);
    font-size: 0.9rem;
}

.payment-bid-message {
    background: var(--bg-light);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.payment-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.payment-includes strong {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-right: 4px;
}

.payment-include-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-include-tag i {
    margin-right: 4px;
}

/* Desglose */
.payment-breakdown {
    margin-bottom: 24px;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    font-size: 0.95rem;
}

.payment-line:last-child {
    border-bottom: none;
}

.payment-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    border-top: 2px solid var(--text-dark);
    border-bottom: none;
    padding-top: 16px;
    margin-top: 4px;
}

/* Botones de método de pago */
.payment-methods h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 10px;
    gap: 12px;
}

.payment-method-btn span {
    flex: 1;
    text-align: left;
}

.payment-method-btn i:first-child {
    font-size: 1.8rem;
}

.payment-method-btn i:last-child {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.payment-method-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-btn:hover i:last-child {
    transform: translateX(4px);
    color: var(--primary);
}

.payment-method-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.stripe-btn { color: #635BFF; }
.stripe-btn:hover { border-color: #635BFF; background: #F7F6FF; }

.paypal-btn { color: #003087; }
.paypal-btn:hover { border-color: #003087; background: #F0F5FF; }

.payment-no-methods {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
}

.payment-no-methods i {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
    color: #F59E0B;
}

.payment-line.payment-info {
    border-bottom: none;
    padding: 4px 0 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.payment-line.payment-info i {
    margin-right: 4px;
    color: var(--accent);
}

.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--accent-light);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
}

.payment-note i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

.payment-security i {
    color: var(--accent);
}

/* Resultado del pago */
.payment-result {
    padding: 156px 0 80px;
    background: var(--bg-light);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.payment-result-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.payment-result-card i {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.payment-result-card.success i { color: var(--accent); }
.payment-result-card.error i { color: #EF4444; }
.payment-result-card.cancel i { color: #F59E0B; }

.payment-result-card h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.payment-result-card p {
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.6;
}

.payment-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive pago */
@media (max-width: 900px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-card-highlight {
        position: static;
    }
}

@media (max-width: 600px) {
    .payment-page {
        padding: 80px 0 40px;
    }

    .payment-card {
        padding: 20px;
    }

    .payment-result-card {
        padding: 30px 24px;
        margin: 0 16px;
    }
}

/* ==================
   DASHBOARD TRANSPORTISTA
   ================== */
.dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: white;
    border-radius: var(--radius-md);
    padding: 6px;
    border: 1px solid var(--border);
}

.dashboard-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dashboard-tab:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.dashboard-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255,107,44,0.3);
}

.dashboard-tab i {
    font-size: 13px;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

/* Stat cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 12px;
}

.stat-card-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Bid list items */
.bid-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.bid-list-item:last-child {
    border-bottom: none;
}

.bid-list-item-full {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.bid-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bid-list-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 36px;
}

.bid-list-route {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bid-list-route i {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.bid-list-route strong {
    font-size: 14px;
    color: var(--text-dark);
    display: block;
}

.bid-list-date {
    font-size: 12px;
    color: var(--text-light);
}

.bid-list-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bid-list-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
}

.bid-list-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.bid-list-link:hover {
    text-decoration: underline;
}

.bid-client-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
}

.bid-client-info a {
    color: var(--primary);
    font-weight: 600;
}

/* Status badges */
.bid-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bid-status-pending {
    background: #FFF8E1;
    color: #F9A825;
}

.bid-status-accepted {
    background: var(--accent-light);
    color: #00856A;
}

.bid-status-rejected {
    background: #FFF0F0;
    color: #C0392B;
}

/* Bid filters */
.bid-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bid-filter {
    padding: 6px 16px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
}

.bid-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bid-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Alert items */
.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Alert match cards */
.alert-match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.alert-match-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.alert-match-card.already-bid {
    opacity: 0.6;
}

.alert-match-route {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-match-route i {
    color: var(--primary);
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.alert-match-route strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.alert-match-route span {
    font-size: 12px;
    color: var(--text-light);
}

.alert-match-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.alert-match-meta i {
    margin-right: 4px;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 18px 14px;
    }

    .stat-card-value {
        font-size: 22px;
    }

    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-tab {
        font-size: 13px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .dashboard-tab span {
        display: none;
    }

    .bid-list-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bid-list-bottom {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-match-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bid-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

