/* ===============================================
   MWM — ABOUT PAGE STYLES
   Solo estilos específicos de la página "Sobre Nosotros".
   Los estilos base (.container, .section, .btn, etc.)
   vienen de main.css y NO se redeclaran aquí.
   =============================================== */

/* -----------------------------------------------
   1. VARIABLES EXTENDIDAS (Solo para About)
   ----------------------------------------------- */
:root {
    --about-accent: #db2777;
    --about-accent-bg: rgba(219, 39, 119, 0.1);
    --about-violet: #6d28d9;
    --about-violet-bg: rgba(109, 40, 217, 0.1);
    --about-gradient: linear-gradient(135deg, var(--primary) 0%, var(--about-violet) 100%);
    --about-gradient-text: linear-gradient(90deg, var(--primary) 0%, var(--about-accent) 100%);
    --about-text-muted: #64748b;
    --about-border: #e2e8f0;
    --about-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --about-card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------
   2. HERO — SOBRE NOSOTROS
   ----------------------------------------------- */
.about-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.about-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-hero .hero-text {
    max-width: 600px;
}

.about-hero .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-hero .hero-description {
    font-size: 1.1rem;
    color: var(--about-text-muted);
    margin: 1.5rem 0;
    line-height: 1.7;
}

/* Badges */
.hero-badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-badge span,
.section-badge span {
    background: var(--about-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badge i,
.section-badge i {
    color: var(--primary);
    width: 1rem;
    height: 1rem;
}

/* Métricas Hero */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}

.metric {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.metric-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--about-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--about-text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Visual Hero */
.about-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-hero .visual-container {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transform: rotate(-3deg);
    box-shadow: var(--about-card-shadow-hover);
    background: white;
    transition: transform 0.4s ease;
}

.about-hero .visual-container:hover {
    transform: rotate(0deg);
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.team-icon {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: var(--about-gradient);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* -----------------------------------------------
   3. NUESTRA HISTORIA (Timeline)
   ----------------------------------------------- */
.our-story {
    background-color: var(--white);
    border-top: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-text {
    flex: 1;
    max-width: 600px;
}

.story-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Timeline */
.story-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--about-gradient);
    border-radius: 2px;
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(2).animate {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(3).animate {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(4).animate {
    transition-delay: 0.3s;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.45rem;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    background: var(--about-gradient);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    font-weight: 700;
    background: var(--about-gradient);
    color: var(--white);
    padding: 0.2rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.timeline-content p {
    color: var(--about-text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Story Cards */
.story-card {
    background-color: var(--white);
    border: 1px solid var(--about-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--about-card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.story-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--about-card-shadow-hover);
}

.story-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--about-gradient);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
}

.story-icon i {
    color: var(--white);
    width: 1.5rem;
    height: 1.5rem;
}

.story-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.story-card p {
    color: var(--about-text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* -----------------------------------------------
   4. VALORES
   ----------------------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--white);
    border: 1px solid var(--about-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    box-shadow: var(--about-card-shadow);
    opacity: 0;
    transform: translateY(20px);
}

.value-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.value-card:nth-child(2).animate {
    transition-delay: 0.05s;
}

.value-card:nth-child(3).animate {
    transition-delay: 0.1s;
}

.value-card:nth-child(4).animate {
    transition-delay: 0.15s;
}

.value-card:nth-child(5).animate {
    transition-delay: 0.2s;
}

.value-card:nth-child(6).animate {
    transition-delay: 0.25s;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--about-card-shadow-hover);
    border-color: rgba(79, 70, 229, 0.2);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(79, 70, 229, 0.08);
    padding: 1.25rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    width: 72px;
    height: 72px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--about-gradient);
    transform: scale(1.08);
}

.value-icon i {
    color: var(--primary);
    width: 1.75rem;
    height: 1.75rem;
    transition: color 0.3s ease;
}

.value-card:hover .value-icon i {
    color: var(--white);
}

/* Font Awesome icons inside value-icon */
.value-icon .fas,
.value-icon .far,
.value-icon .fab {
    font-size: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.value-card:hover .value-icon .fas,
.value-card:hover .value-icon .far,
.value-card:hover .value-icon .fab {
    color: var(--white);
}

.value-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.value-description {
    color: var(--about-text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* -----------------------------------------------
   5. ENFOQUE DE TRABAJO
   ----------------------------------------------- */
.approach {
    padding: 5rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.approach-description {
    color: var(--about-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.approach-features {
    display: grid;
    gap: 1.5rem;
}

.approach-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.approach-feature.animate {
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    background-color: var(--about-accent-bg);
    padding: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.approach-feature:hover .feature-icon {
    background: var(--about-accent);
    transform: scale(1.1);
}

.feature-icon i {
    color: var(--about-accent);
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease;
}

.approach-feature:hover .feature-icon i {
    color: var(--white);
}

.feature-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.feature-content p {
    color: var(--about-text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Process Circle */
.approach-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.process-circle {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px dashed var(--about-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-step {
    position: absolute;
    width: 88px;
    height: 88px;
    background-color: var(--white);
    border: 2px solid var(--about-border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--about-card-shadow);
    will-change: transform, background, box-shadow;
}

.circle-step:nth-child(1) {
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
}

.circle-step:nth-child(2) {
    top: 50%;
    right: -44px;
    transform: translateY(-50%);
}

.circle-step:nth-child(3) {
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
}

.circle-step:nth-child(4) {
    top: 50%;
    left: -44px;
    transform: translateY(-50%);
}

.circle-step span {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.circle-step i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.circle-step.active {
    background: var(--about-gradient);
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(79, 70, 229, 0.3);
    transform: translateX(-50%) scale(1.15);
}

.circle-step:nth-child(2).active {
    transform: translateY(-50%) scale(1.15);
}

.circle-step:nth-child(3).active {
    transform: translateX(-50%) scale(1.15);
}

.circle-step:nth-child(4).active {
    transform: translateY(-50%) scale(1.15);
}

.circle-step.active i,
.circle-step.active span {
    color: var(--white);
}

/* -----------------------------------------------
   6. TECNOLOGÍAS
   ----------------------------------------------- */
.technologies {
    background-color: var(--light);
    padding: 5rem 0;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-category {
    background-color: var(--white);
    border: 1px solid var(--about-border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--about-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.tech-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--about-card-shadow-hover);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.category-icon {
    background-color: var(--about-violet-bg);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.category-icon i {
    color: var(--about-violet);
    width: 1.25rem;
    height: 1.25rem;
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tech-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.tech-name {
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
    color: var(--dark);
    font-size: 0.9rem;
}

.proficiency-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: var(--about-gradient);
    border-radius: 9999px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: width;
}

/* -----------------------------------------------
   7. CTA FINAL
   ----------------------------------------------- */
.cta {
    background: var(--about-gradient);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem auto;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cta-logo-img {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

/* Override text-gradient inside CTA to be white-ish */
.cta .text-gradient {
    background: linear-gradient(90deg, #e0e7ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
    max-width: 550px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* CTA Button overrides (sobre fondo morado) */
.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* -----------------------------------------------
   8. RESPONSIVE
   ----------------------------------------------- */
@media (min-width: 576px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .process-circle {
        width: 320px;
        height: 320px;
    }

    .circle-step {
        width: 96px;
        height: 96px;
    }

    .circle-step:nth-child(1) {
        top: -48px;
    }

    .circle-step:nth-child(2) {
        right: -48px;
    }

    .circle-step:nth-child(3) {
        bottom: -48px;
    }

    .circle-step:nth-child(4) {
        left: -48px;
    }
}

@media (min-width: 768px) {
    .about-hero .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .cta-logo-img {
        max-width: 120px;
    }
}

@media (min-width: 992px) {
    .story-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .approach-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0 3rem;
    }

    .hero-metrics {
        justify-content: space-around;
        gap: 1.5rem;
    }

    .metric-number {
        font-size: 1.8rem;
    }

    .process-circle {
        width: 240px;
        height: 240px;
    }

    .circle-step {
        width: 76px;
        height: 76px;
    }

    .circle-step:nth-child(1) {
        top: -38px;
    }

    .circle-step:nth-child(2) {
        right: -38px;
    }

    .circle-step:nth-child(3) {
        bottom: -38px;
    }

    .circle-step:nth-child(4) {
        left: -38px;
    }

    .circle-step span {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 3rem 0 2rem;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .about-hero .visual-container {
        transform: none;
    }

    .approach-feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cta {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 1rem;
    }

    .process-circle {
        width: 220px;
        height: 220px;
    }

    .circle-step {
        width: 68px;
        height: 68px;
    }

    .circle-step:nth-child(1) {
        top: -34px;
    }

    .circle-step:nth-child(2) {
        right: -34px;
    }

    .circle-step:nth-child(3) {
        bottom: -34px;
    }

    .circle-step:nth-child(4) {
        left: -34px;
    }

    .circle-step i {
        width: 1rem;
        height: 1rem;
    }

    .circle-step span {
        font-size: 0.6rem;
    }
}

/* -----------------------------------------------
   9. ACCESIBILIDAD
   ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .timeline-item,
    .story-card,
    .value-card,
    .tech-category,
    .tech-item,
    .approach-feature {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .proficiency-fill {
        transition: none !important;
    }

    .circle-step {
        transition: background 0.01ms, border-color 0.01ms, color 0.01ms !important;
    }
}

/* Focus visible para teclado */
.btn:focus-visible,
.service-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}
