/* ========================================
   Envíos Correos Express - Style
   ======================================== */

:root {
    --yellow: #FFCD00;
    --yellow-hover: #E6B800;
    --yellow-soft: rgba(255, 204, 0, 0.12);
    --navy: #003366;
    --navy-dark: #002244;
    --navy-light: #004080;
    --white: #ffffff;
    --bg: #f5f7fa;
    --grey-100: #f0f2f5;
    --grey-200: #e4e7eb;
    --grey-300: #c4c9d0;
    --grey-400: #9ca3b0;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --dark: #1a2332;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 24px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.4);
}

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

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

.btn-sm { padding: 8px 16px; font-size: 12px; letter-spacing: 0.5px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ========================================
   HEADER
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-top {
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.header-tabs { display: flex; gap: 0; }

.tab-link {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 6px 6px 0 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-link:hover { color: rgba(255,255,255,0.8); }
.tab-link.active { color: var(--white); background: rgba(255,255,255,0.08); }

.header-top-right { display: flex; align-items: center; gap: 4px; }

.top-link {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.top-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.top-link.lang { font-weight: 700; min-width: 32px; justify-content: center; border: 1px solid rgba(255,255,255,0.15); }

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-box {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

.logo-box-sm { width: 36px; height: 36px; }

.logo-ex {
    font-size: 14px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.logo-text { display: flex; flex-direction: column; }

.logo-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.logo-title-light { color: rgba(255,255,255,0.9); }

.logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav { display: flex; gap: 2px; }

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--white); background: var(--yellow-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
    padding: 64px 0 80px;
    overflow: hidden;
    min-height: 300px;
}

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

.hero-text h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    max-width: 650px;
}

.hero-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

/* ========================================
   TRACKING
   ======================================== */

.tracking {
    padding: 40px 0;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.tracking-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.tracking-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.tracking-box-header { margin-bottom: 20px; }

.tracking-box-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.tracking-box-header p { font-size: 14px; color: var(--grey-500); }

.tracking-input-group { display: flex; gap: 8px; }

.tracking-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: var(--grey-100);
    outline: none;
    transition: var(--transition);
}

.tracking-input::placeholder { color: var(--grey-400); }

.tracking-input:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.tracking-demos {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tracking-demos > span { font-size: 12px; color: var(--grey-400); font-weight: 500; }

.demo-btn {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--navy);
    background: var(--yellow-soft);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.demo-btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* Tool Cards */
.tracking-tools { display: flex; flex-direction: column; gap: 12px; }

.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card-text { display: flex; flex-direction: column; gap: 2px; }
.tool-card-text strong { font-size: 14px; color: var(--navy); font-weight: 700; }
.tool-card-text span { font-size: 12px; color: var(--grey-500); }

/* ========================================
   RESULTS
   ======================================== */

.results { padding: 0 0 40px; animation: slideUp .4s ease; }

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

.results-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--grey-100);
}

.results-badge { display: flex; align-items: center; gap: 8px; }

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.badge-text { font-size: 16px; font-weight: 700; color: var(--navy); }

.code-label {
    display: block;
    font-size: 11px;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.code-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Timeline */
.results-timeline {
    position: relative;
    padding-left: 28px;
    margin-bottom: 28px;
}

.results-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--grey-200);
}

.tl-step {
    position: relative;
    padding: 14px 0 14px 24px;
}

.tl-dot {
    position: absolute;
    left: -18px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--grey-300);
    background: var(--white);
    z-index: 1;
    transition: var(--transition);
}

.tl-step.completed .tl-dot {
    border-color: var(--yellow);
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
}

.tl-step.active .tl-dot {
    border-color: var(--navy);
    background: var(--navy);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.12);
    animation: pulse 2s infinite;
}

.tl-step.pending .tl-dot { border-color: var(--grey-300); background: var(--white); }

.tl-title { display: block; font-weight: 600; font-size: 14px; color: var(--dark); margin-bottom: 1px; }
.tl-step.pending .tl-title { color: var(--grey-400); }

.tl-desc { display: block; font-size: 13px; color: var(--grey-500); }
.tl-step.pending .tl-desc { color: var(--grey-400); }

.tl-date { display: block; font-size: 11px; color: var(--grey-400); margin-top: 3px; }

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rg-item {
    background: var(--grey-100);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

.rg-icon { font-size: 22px; }

.rg-label {
    font-size: 10px;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.rg-value { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ========================================
   SERVICES
   ======================================== */

.services { padding: 60px 0; background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.service-card p {
    font-size: 13px;
    color: var(--grey-500);
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--navy-dark);
    padding: 48px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 12px; line-height: 1.6; }

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-legal { display: flex; gap: 16px; }

.footer-legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover { color: var(--yellow); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .tracking-layout { grid-template-columns: 1fr; }
    .tracking-tools { flex-direction: row; flex-wrap: wrap; }
    .tool-card { flex: 1; min-width: 200px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-main-inner { height: 56px; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 12px 24px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .nav.open { display: flex; }
    .menu-toggle { display: flex; }

    .hero { padding: 40px 0 60px; }
    .hero-text h1 { font-size: 24px; }

    .tracking-box { padding: 24px 20px; }
    .tracking-input-group { flex-direction: column; }
    .tracking-tools { flex-direction: column; }

    .results-card { padding: 20px; }
    .results-top { flex-direction: column; gap: 12px; align-items: flex-start; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }

    .services-grid { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-text h1 { font-size: 20px; }
    .results-grid { grid-template-columns: 1fr; }
}
