/* YoLoPido Public Pages Stylesheet */
/* Brand Identity Colors from LineaGrafica.jpeg */

:root {
    /* Brand Colors */
    --yolo-navy: #042d44;
    --yolo-cyan: #008fb9;
    --yolo-lime: #c7d601;
    --yolo-orange: #f4b518;

    /* Gradient Colors for Logo/Accents */
    --yolo-gradient-start: #f4b518; /* orange */
    --yolo-gradient-mid: #e91e63;   /* pink */
    --yolo-gradient-end: #008fb9;   /* cyan */

    /* Neutral Colors */
    --yolo-white: #ffffff;
    --yolo-light-gray: #f6f7fb;
    --yolo-gray: #6c757d;
    --yolo-dark: #212529;

    /* Typography */
    --font-primary: 'Source Sans Variable', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Anton', 'Impact', sans-serif;
}

/* Global Styles */
body.public-page {
    font-family: var(--font-primary);
    color: var(--yolo-dark);
    background-color: var(--yolo-light-gray);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    padding-top: 0;
}

/* Smart App Banner (Mobile Only) */
.smart-app-banner {
    display: none; /* Hidden by default, shown by JavaScript on mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--yolo-white);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    padding: 10px 16px;
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.app-banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
}

.app-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-banner-text strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--yolo-navy);
    line-height: 1.2;
}

.app-banner-text span {
    font-size: 0.8125rem;
    color: var(--yolo-gray);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--yolo-cyan);
    color: var(--yolo-white);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.app-banner-button:hover {
    background: #007a9e;
    color: var(--yolo-white);
}

.app-banner-close {
    background: none;
    border: none;
    color: var(--yolo-gray);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.app-banner-close:hover {
    color: var(--yolo-dark);
}

/* Top Navbar */
.navbar {
    padding: 12px 0;
    z-index: 1000;
}

/* Adjust navbar position when banner is visible */
body.app-banner-visible .navbar.sticky-top {
    top: 70px;
}

.navbar-brand {
    font-weight: 600;
    color: var(--yolo-navy);
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--yolo-navy);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--yolo-dark);
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--yolo-cyan);
}

/* Hero Section - Modern Design */
.hero-section {
    background: #1e3a5f;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    min-height: 550px;
    padding: 100px 0 80px 0;
    color: var(--yolo-white);
    text-align: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

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

/* Hero Title */
.hero-title {
    font-family: var(--font-primary);
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--yolo-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Subtitle with Badge and Stars */
.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.hero-badge {
    font-weight: 600;
    color: var(--yolo-white);
}

.hero-stars {
    display: inline-block;
    margin: 0 8px;
    color: #ffc107;
    font-size: 1rem;
}

.hero-stars i {
    margin: 0 2px;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--yolo-white);
    background: transparent;
    border: 2px solid var(--yolo-white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-hero-outline:hover {
    background: var(--yolo-white);
    color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline i {
    font-size: 1.125rem;
}

/* App Store Buttons - Hidden on Desktop */
.btn-app-store {
    display: none;
}


/* Features Section */
.features-section {
    background: var(--yolo-white);
    padding: 80px 0;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
    font-weight: 400;
}

/* Apply gradient to icons in first row */
.feature-item:nth-child(-n+4) .feature-icon {
    background: linear-gradient(135deg, var(--yolo-cyan), var(--yolo-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--yolo-cyan); /* Fallback */
}

/* Apply different gradient to icons in second row */
.feature-item:nth-child(n+5) .feature-icon {
    background: linear-gradient(135deg, var(--yolo-orange), var(--yolo-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--yolo-orange); /* Fallback */
}

.feature-item h4 {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--yolo-navy);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.feature-item p {
    color: #6c757d;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Footer */
.public-footer {
    background: var(--yolo-navy);
    color: var(--yolo-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.public-footer a {
    color: var(--yolo-lime);
    text-decoration: none;
}

.public-footer a:hover {
    color: var(--yolo-orange);
    text-decoration: underline;
}

.contact-info {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--yolo-lime);
    margin-right: 10px;
}

/* Rayo Floating Widget */
.rayo-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yolo-gradient-start), var(--yolo-gradient-mid), var(--yolo-gradient-end));
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yolo-white);
}

.rayo-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.rayo-floating-button i {
    font-size: 2rem;
}

.rayo-chat-overlay {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--yolo-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.rayo-chat-overlay.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rayo-chat-header {
    background: linear-gradient(135deg, var(--yolo-navy), var(--yolo-cyan));
    color: var(--yolo-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rayo-chat-header h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.rayo-chat-close {
    background: none;
    border: none;
    color: var(--yolo-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rayo-chat-close:hover {
    opacity: 0.8;
}

.rayo-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Form Styles */
.public-form {
    background: var(--yolo-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.public-form .form-label {
    font-weight: 600;
    color: var(--yolo-navy);
    margin-bottom: 8px;
}

.public-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.public-form .form-control:focus {
    border-color: var(--yolo-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 143, 185, 0.15);
}

.btn-yolo-primary {
    background: linear-gradient(135deg, var(--yolo-gradient-start), var(--yolo-gradient-mid), var(--yolo-gradient-end));
    border: none;
    color: var(--yolo-white);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    font-family: var(--font-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-yolo-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--yolo-white);
}

.btn-yolo-secondary {
    background: var(--yolo-white);
    border: 2px solid var(--yolo-cyan);
    color: var(--yolo-cyan);
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

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

/* Responsive - Mobile Optimization */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 8px 0;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .navbar-nav .nav-link {
        padding: 10px 16px;
    }

    /* Hero Section - Mobile */
    .hero-section {
        min-height: 450px;
        padding: 60px 0 50px 0;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .hero-stars {
        font-size: 0.9375rem;
        display: block;
        margin: 8px 0;
    }

    /* Hero Buttons - Stack on Mobile */
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .btn-hero-outline {
        width: 100%;
        max-width: 320px;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* Show App Store Buttons on Mobile */
    .btn-app-store {
        display: inline-flex;
    }

    /* Touch-Friendly Buttons */
    .btn-yolo-primary,
    .btn-yolo-secondary {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 48px;
        touch-action: manipulation;
    }

    /* Features Section - Mobile */
    .features-section {
        padding: 60px 0;
    }

    .feature-item {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .feature-item h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .feature-item p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Forms - Mobile Friendly */
    .public-form {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .public-form .form-control {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
    }

    .public-form .form-label {
        font-size: 0.9375rem;
        margin-bottom: 6px;
    }

    /* Footer - Mobile */
    .public-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
        text-align: center;
    }

    .contact-info {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    /* Rayo Widget - Mobile Optimized */
    .rayo-chat-overlay {
        width: 100%;
        height: 100vh;
        right: 0;
        bottom: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .rayo-floating-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .rayo-floating-button i {
        font-size: 1.5rem;
    }

    .rayo-chat-header {
        padding: 16px;
    }

    .rayo-chat-header h4 {
        font-size: 1.2rem;
    }

    .rayo-chat-body {
        padding: 16px;
    }

    /* Status Badges - Mobile */
    .status-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Result Cards - Mobile */
    .result-card {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .result-card h5 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }

    .result-card .info-row {
        padding: 6px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-card .info-label {
        font-size: 0.875rem;
    }

    .result-card .info-value {
        font-size: 0.9375rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 375px) {
    /* App Banner - Compact */
    .smart-app-banner {
        padding: 8px 12px;
    }

    .app-banner-icon {
        width: 45px;
        height: 45px;
    }

    .app-banner-text strong {
        font-size: 0.875rem;
    }

    .app-banner-text span {
        font-size: 0.75rem;
    }

    .app-banner-button {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .app-banner-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 400px;
        padding: 50px 0 40px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 12px;
    }

    .btn-hero-outline {
        max-width: 280px;
        padding: 14px 20px;
        font-size: 0.9375rem;
    }

    .action-card {
        padding: 28px 20px;
    }

    .action-card-icon {
        font-size: 2.5rem;
    }

    .action-card h3 {
        font-size: 1.125rem;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .public-form {
        padding: 24px 16px;
    }

    .btn-yolo-primary,
    .btn-yolo-secondary {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
}

/* Landscape Mode - Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 40px 0 30px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        margin-top: 24px;
        gap: 10px;
    }

    .rayo-chat-overlay {
        height: 90vh;
    }

    .features-section {
        padding: 40px 0;
    }
}

/* Status Badge (for tracking results) */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.prealertado {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.recibido {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.enviado {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.en-aduana {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.en-bodega-hn {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.entregado {
    background-color: #d4edda;
    color: #155724;
    font-weight: 700;
}

/* Results Card */
.result-card {
    background: var(--yolo-white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--yolo-cyan);
}

.result-card h5 {
    color: var(--yolo-navy);
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.result-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-card .info-row:last-child {
    border-bottom: none;
}

.result-card .info-label {
    font-weight: 600;
    color: var(--yolo-gray);
}

.result-card .info-value {
    color: var(--yolo-dark);
}

/* Section Headers */
.section-header {
    font-family: var(--font-heading);
    color: var(--yolo-navy);
    font-size: 1.75rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e0e0e0;
}

.section-header.active {
    border-bottom-color: var(--yolo-cyan);
}

.section-header.delivered {
    border-bottom-color: #28a745;
    color: #155724;
}

/* Result Card Variations */
.result-card-active {
    border-left-color: var(--yolo-cyan);
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.result-card-delivered {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    opacity: 0.95;
}

/* Progress Timeline */
.progress-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 15px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6c757d;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-step.completed .timeline-icon {
    background: var(--yolo-cyan);
    color: white;
    border-color: var(--yolo-cyan);
    box-shadow: 0 0 0 4px rgba(0, 204, 255, 0.1);
}

.timeline-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    max-width: 70px;
}

.timeline-step.completed .timeline-label {
    color: var(--yolo-navy);
}

.timeline-connector {
    height: 3px;
    background: #dee2e6;
    flex: 1;
    margin: 0 5px;
    position: relative;
    top: -12px;
}

.timeline-connector.completed {
    background: var(--yolo-cyan);
}

/* Additional Status Badges */
.status-badge.creada {
    background-color: #e7f3ff;
    color: #004085;
}

.status-badge.enviada {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.en_aduana {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.en_bodega_hn {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.completada {
    background-color: #d4edda;
    color: #155724;
    font-weight: 700;
}

/* Responsive Timeline for Mobile */
@media (max-width: 768px) {
    .progress-timeline {
        overflow-x: auto;
        padding: 15px 10px;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-step {
        min-width: 60px;
    }

    .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .timeline-label {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .timeline-connector {
        min-width: 20px;
    }

    .section-header {
        font-size: 1.5rem;
    }
}
