/* ============================================================================
   PÁGINA: Acerca de nosotros
   ============================================================================ */
.container-acerca-de-nosotros {
   max-width: 100%;
   width: 100%;
}

/* ============ BANDA HERO ============ */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    aspect-ratio: 16 / 7;
    max-height: 600px;
    background-image: url('../../imagen/—Pngtree—financial%20transaction%20tools%20on%20blue_11969134.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Capa oscura para que el texto se lea sobre la imagen */
.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 25, 50, 0.85) 0%,
        rgba(8, 25, 50, 0.55) 50%,
        rgba(8, 25, 50, 0.15) 100%
    );
    z-index: 1;
}

.about-hero__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-white);
    margin-left: clamp(1rem, 6vw, 4rem);
}

.about-hero__content .eyebrow {
    color: var(--color-white);
    margin-bottom: 1rem;
}
.about-hero__content .eyebrow::before {
    background: var(--color-white);
}

.about-hero__content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 1rem;
    overflow: hidden;
}

.about-hero__content h1 .slide-left,
.about-hero__content h1 .slide-right {
    display: block;
    opacity: 0;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
}
.about-hero__content h1 .slide-left {
    transform: translateX(-110%);
    animation-name: about-slide-left;
    animation-delay: 0.15s;
}
.about-hero__content h1 .slide-right {
    transform: translateX(110%);
    animation-name: about-slide-right;
    animation-delay: 0.55s;
}

@keyframes about-slide-left {
    0%   { transform: translateX(-110%); opacity: 0; }
    100% { transform: translateX(0);     opacity: 1; }
}
@keyframes about-slide-right {
    0%   { transform: translateX(110%); opacity: 0; }
    100% { transform: translateX(0);    opacity: 1; }
}

.about-hero__lead {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.6;
    opacity: 0;
    animation: about-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.6s;
}

@keyframes about-fade-up {
    0%   { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero__content h1 .slide-left,
    .about-hero__content h1 .slide-right,
    .about-hero__lead {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

@media (max-width: 800px) {
    .about-hero {
        aspect-ratio: auto;
        min-height: 320px;
    }
    .about-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 25, 50, 0.65) 0%,
            rgba(8, 25, 50, 0.85) 100%
        );
    }
    .about-hero__content {
        margin-left: 0;
        text-align: center;
    }
    .about-hero__content .eyebrow {
        justify-content: center;
    }
}

/* ============ INTRO + VALORES ============ */
.about-intro .container {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.about-intro__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro__text .eyebrow {
    margin-bottom: 1rem;
}

.about-intro__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}
.about-intro__lead em {
    font-style: normal;
    color: var(--color-primary);
    font-weight: 600;
}

.about-intro__text h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.6rem 0 0.6rem;
    letter-spacing: 0.2px;
}

.about-intro__text p {
    color: var(--color-text-soft);
    line-height: 1.7;
    font-size: 0.98rem;
    text-align: justify;
}

.about-intro__img {
    display: flex;
    justify-content: center;
}
.about-intro__img img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============ RUEDA DE VALORES (HTML/CSS puro) ============ */
@property --radius {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.values-wheel {
    position: relative;
    width: clamp(280px, 90%, 420px);
    aspect-ratio: 1 / 1;
    margin: 1rem auto;
}

/* Línea circular punteada que conecta las burbujas */
.values-wheel::before {
    content: '';
    position: absolute;
    inset: 14%;
    border: 2px dashed rgba(24, 192, 32, 0.35);
    border-radius: 50%;
    animation: values-rotate 30s linear infinite;
}

@keyframes values-rotate {
    to { transform: rotate(360deg); }
}

.values-wheel__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    line-height: 1.2;
    z-index: 2;
}

.value-bubble {
    --size: clamp(150px, 22%, 150px);
    --angle: calc((var(--i) * 72deg) - 90deg);  /* 360/5 = 72, empieza arriba */
    --radius: 0%;
    --radius-final: 42%;

    position: absolute;
    top:  calc(50% + var(--radius) * sin(var(--angle)));
    left: calc(50% + var(--radius) * cos(var(--angle)));
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
    font-size: clamp(0.7rem, 1.05vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: default;
    box-shadow: 0 8px 20px rgba(15, 42, 68, 0.18);
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

/* La animación SOLO arranca cuando la rueda entra en el viewport */
.values-wheel.is-visible .value-bubble {
    animation: values-fly-out 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.35s + 0.2s);
}

@keyframes values-fly-out {
    0% {
        --radius: 0%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }
    60% {
        opacity: 1;
    }
    100% {
        --radius: 42%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.value-bubble i {
    font-size: 1.4rem;
}

.value-bubble:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(15, 42, 68, 0.28);
    transform: translate(-50%, -50%) scale(1.08);
}

@keyframes values-pop {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Colores de cada burbuja (degradados) */
.value-bubble--1 { background: linear-gradient(135deg, #14b88a, #0e8c66); } /* Honestidad */
.value-bubble--2 { background: linear-gradient(135deg, #2dd4a7, #14a37e); } /* Integridad */
.value-bubble--3 { background: linear-gradient(135deg, #b3d92a, #7da718); } /* Respeto */
.value-bubble--4 { background: linear-gradient(135deg, #f4d03f, #d9a813); } /* Calidad */
.value-bubble--5 { background: linear-gradient(135deg, #f5a623, #d97706); } /* Profesionalismo */

/* Respeto a usuarios con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .values-wheel::before { animation: none; }
    .value-bubble {
        animation: none;
        opacity: 1;
        --radius: 42%;
        transform: translate(-50%, -50%);
    }
}

/* Compacto en móvil */
@media (max-width: 480px) {
    .value-bubble {
        --size: clamp(70px, 24%, 90px);
        --radius: 40%;
        font-size: 0.7rem;
    }
    .value-bubble i { font-size: 1.1rem; }
}

@media (max-width: 900px) {
    .about-intro__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-intro__img { order: -1; }  
}

/* ============ CLIENTES ============ */
.about-clients .container {
    max-width: 1400px;        
    padding-left: 2rem;
    padding-right: 2rem;
}

.about-clients .section-head h2 {
    color: var(--color-primary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.75rem;
}


.clients-grid .client-card:nth-child(1) { grid-column: span 2; }
.clients-grid .client-card:nth-child(4) { grid-column: span 2; }

@media (max-width: 880px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-grid .client-card:nth-child(1),
    .clients-grid .client-card:nth-child(4) {
        grid-column: span 2;   /* las grandes ocupan toda la fila */
    }
}

@media (max-width: 540px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
    .clients-grid .client-card { grid-column: auto !important; }
}

.client-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Cinta lateral izquierda (decorativa) */
.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), #0e8a18);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s ease;
}

/* Halo decorativo de fondo */
.client-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 192, 32, 0.08), transparent 70%);
    z-index: -1;
    transition: transform .5s ease;
}

.client-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 45px rgba(15, 42, 68, 0.12);
}
.client-card:hover::before { transform: scaleY(1); }
.client-card:hover::after { transform: scale(1.4); }

/* Encabezado: número + etiqueta */
.client-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.client-card__num {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -1px;
    opacity: 0.55;
    line-height: 1;
}

.client-card__tag {
    display: inline-block;
    background: rgba(24, 192, 32, 0.10);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

/* Ícono distintivo de la tarjeta */
.client-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), #0e8a18);
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(24, 192, 32, 0.25);
    transition: transform .35s ease;
}
.client-card:hover .client-card__icon {
    transform: rotate(-6deg) scale(1.05);
}

.client-card h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.client-card__lead {
    color: var(--color-text-soft);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* Lista con check verde */
.client-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.client-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}
.client-card__list li i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(24, 192, 32, 0.12);
    color: var(--color-primary);
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    margin-top: 0.18rem;
}

/* Chips de etiquetas (servicios atendidos) */
.client-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.chip {
    display: inline-block;
    background: var(--color-bg-soft);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.client-card:hover .chip {
    border-color: rgba(24, 192, 32, 0.3);
}
.chip:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Móvil: tarjetas con un poco menos de padding */
@media (max-width: 520px) {
    .client-card {
        padding: 1.5rem 1.25rem 1.4rem;
    }
    .client-card h3 { font-size: 1rem; }
}

