/* ==========================================================================
   Apartado: Nosotros (us.css)
   Extiende el sistema de diseño corporativo de TuEstante (index.css)
   ========================================================================== */

/* --- Hero Section --- */
.us-hero {
    position: relative;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, #0f172a 0%, var(--primary) 60%, #1e3a8a 100%);
    color: white;
    overflow: hidden;
    text-align: center;
}

.us-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(132, 182, 244, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(77, 130, 188, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.us-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.us-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(252, 255, 255, 0.12);
    border: 1px solid rgba(252, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.us-hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.us-hero-title .text-highlight {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.us-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(252, 255, 255, 0.9);
    max-width: 720px;
    line-height: 1.6;
}

.us-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(252, 255, 255, 0.7);
    margin-top: 10px;
}

.us-breadcrumb a {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.us-breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* --- Barra de Métricas / Estadísticas --- */
.us-stats-section {
    position: relative;
    z-index: 5;
    margin-top: -40px;
    padding: 0 24px;
}

.us-stats-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Sección Historia (Nuestra Trayectoria) --- */
.us-story-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.story-img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image-wrapper:hover .story-img {
    transform: scale(1.04);
}

.story-experience-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 81, 135, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-text {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.story-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.highlight-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Misión, Visión y Valores --- */
.us-mvv-section {
    background-color: var(--bg-secondary);
    padding: 80px 24px;
}

.us-mvv-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.mvv-card:hover::before {
    opacity: 1;
}

.mvv-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #dbeafe 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.mvv-card:hover .mvv-icon-box {
    transform: scale(1.1) rotate(4deg);
    background: var(--primary);
    color: white;
}

.mvv-icon-box svg {
    width: 32px;
    height: 32px;
}

.mvv-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.mvv-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.values-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* --- Por Qué Elegirnos (Pilares Clave) --- */
.us-why-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.why-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.why-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.why-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* --- Sección Proceso de Fabricación --- */
.us-process-section {
    background-color: var(--bg-secondary);
    padding: 80px 24px;
}

.us-process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 44px;
    position: relative;
}

.process-card {
    background: white;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

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

.process-step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.process-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.process-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- CTA Final Banner --- */
.us-cta-section {
    padding: 70px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.us-cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #00365a 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.us-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.us-cta-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    max-width: 700px;
}

.us-cta-desc {
    font-size: 1.05rem;
    color: rgba(252, 255, 255, 0.9);
    max-width: 620px;
    line-height: 1.6;
}

.us-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

/* ==========================================================================
   Adaptación Móvil y Responsividad
   ========================================================================== */
@media (max-width: 1024px) {
    .us-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-card:not(:last-child)::after {
        display: none;
    }

    .mvv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-img {
        min-height: 320px;
    }

    .us-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .us-hero {
        padding: 80px 16px 60px;
    }

    .us-hero-title {
        font-size: 2rem;
    }

    .us-hero-subtitle {
        font-size: 1.05rem;
    }

    .us-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

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

    .story-highlights {
        grid-template-columns: 1fr;
    }

    .us-cta-banner {
        padding: 40px 20px;
    }

    .us-cta-title {
        font-size: 1.75rem;
    }

    .us-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .us-cta-buttons .btn {
        width: 100%;
    }
}
