/* ============================================
   ESTILOS ESPECÍFICOS - PÁGINA NOSOTROS ELEGANTE
   ============================================ */

/* Header Elegante */
.about-header {
    background-image: url('../assets/images/general/nosotros.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 160px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.about-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.4) 0%, rgba(0, 82, 204, 0.5) 100%);
    z-index: 1;
}

.about-header .container {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 0;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-badge i {
    color: var(--color-white);
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.6s both;
}

.header-stat-item {
    text-align: center;
}

.header-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: 'GingerBrand', sans-serif;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-content h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 25px;
    font-family: 'GingerBrand', sans-serif;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-content h1::after {
    background: var(--color-white);
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.5s both;
}

/* Historia Section */
.history-section {
    padding: 30px 0 60px;
    background: var(--color-bg-light);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.history-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.history-badge i {
    font-size: 0.9rem;
}

.history-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.history-text h2 {
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-family: 'GingerBrand', sans-serif;
    color: var(--color-primary);
    line-height: 1.3;
}

.history-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--color-text-light);
    text-align: justify;
}

.history-image {
    position: relative;
}

.history-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 85%;
    min-height: 500px;
}

.history-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    z-index: 1;
}

.history-img-bottom {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 45%;
    height: 55%;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    z-index: 2;
    border: 6px solid var(--color-white);
}

.history-img-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.3);
}

.history-img-bottom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.4);
}

/* Valores Section */
.values-section {
    background: var(--color-bg-section);
    padding: 40px 0;
    position: relative;
}

.values-section .section-title {
    margin-bottom: 35px;
}

.values-section .section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.values-section .section-title p {
    font-size: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.value-card {
    background: var(--color-bg-light);
    padding: 35px 28px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
}

.value-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--color-white);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.values-list li strong {
    color: var(--color-accent);
}

/* Proceso de Trabajo Section - Gráfico de Barras */
.process-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 82, 204, 0.12) 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.process-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.process-section .container {
    position: relative;
    z-index: 1;
}

.process-section .section-title h2 {
    color: var(--color-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.process-section .section-title p {
    color: var(--color-text-light);
}

.process-bars-container {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.process-bars-container::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
    opacity: 0.25;
    z-index: 0;
    border-radius: 2px;
}

.process-bar-item {
    position: relative;
    opacity: 0;
    transform: translateX(-150px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    will-change: opacity, transform;
}

.process-bar-item.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.process-bar-item.hidden {
    opacity: 0;
    transform: translateX(150px) scale(0.9);
}

.process-bar-item:nth-child(1) { transition-delay: 0s; }
.process-bar-item:nth-child(2) { transition-delay: 0.1s; }
.process-bar-item:nth-child(3) { transition-delay: 0.2s; }
.process-bar-item:nth-child(4) { transition-delay: 0.3s; }
.process-bar-item:nth-child(5) { transition-delay: 0.4s; }

.process-bar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.process-bar-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    font-family: 'GingerBrand', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.process-bar-header h3 {
    color: var(--color-primary);
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.process-bar-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    height: 100px;
    border-radius: 14px;
    overflow: visible;
    position: relative;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.05),
        0 3px 15px rgba(0, 102, 255, 0.12);
    border: 2px solid rgba(0, 102, 255, 0.2);
    margin-left: 70px;
}

/* Escalera descendente - cada barra más alta que la anterior */
.process-bar-item:nth-child(1) .process-bar-wrapper {
    height: 70px;
    min-height: 70px;
}

.process-bar-item:nth-child(2) .process-bar-wrapper {
    height: 80px;
    min-height: 80px;
}

.process-bar-item:nth-child(3) .process-bar-wrapper {
    height: 90px;
    min-height: 90px;
}

.process-bar-item:nth-child(4) .process-bar-wrapper {
    height: 100px;
    min-height: 100px;
}

.process-bar-item:nth-child(5) .process-bar-wrapper {
    height: 110px;
    min-height: 110px;
}

.process-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
    border-radius: 16px;
    position: relative;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 25px rgba(0, 102, 255, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    overflow: visible;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Escalera de anchos - de cortas a largas */
.process-bar-item:nth-child(1) .process-bar-fill {
    max-width: 60%;
}

.process-bar-item:nth-child(2) .process-bar-fill {
    max-width: 70%;
}

.process-bar-item:nth-child(3) .process-bar-fill {
    max-width: 80%;
}

.process-bar-item:nth-child(4) .process-bar-fill {
    max-width: 90%;
}

.process-bar-item:nth-child(5) .process-bar-fill {
    max-width: 100%;
}

.process-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.process-bar-item.animate .process-bar-fill {
    width: 100%;
}

.process-bar-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 25px;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    white-space: normal;
    overflow: visible;
    min-width: 180px;
    width: 100%;
    z-index: 2;
}

.process-bar-item.visible .process-bar-content {
    opacity: 1;
    transform: translateY(0);
}

.process-bar-content p {
    color: var(--color-white);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    letter-spacing: 0.3px;
    position: relative;
}

/* Especialización Section */
.specialization-section {
    padding: 60px 0;
    background: var(--color-bg-section);
    position: relative;
}

.specialization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.specialty-card {
    background: var(--color-bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.specialty-card:hover::before {
    transform: scaleX(1);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.1) rotate(-5deg);
}

.specialty-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.4rem;
}

.specialty-card p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* Team Section */
.team-section {
    background: var(--color-bg-light);
    padding: 60px 0;
    position: relative;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 600px;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: opacity 0.8s ease;
}

.team-section:has(.team-card:hover) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 650px;
    padding: 60px 0;
}

.team-section:has(.team-card:hover)::before {
    opacity: 0;
}

.team-section:has(.team-card:hover) .section-title h2,
.team-section:has(.team-card:hover) .section-title p {
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.8s ease;
}

/* Team Card con Expansión al Hover - Diseño Mejorado */
.team-card-container {
    max-width: 1200px;
    margin: 60px auto 0;
    perspective: 1200px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.team-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    background: transparent;
    border-radius: 28px;
    overflow: visible;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center center;
    z-index: 1;
}

.team-card:hover {
    min-height: 600px;
    box-shadow: none;
    border-color: transparent;
    z-index: 1000;
}

/* Asegurar que el hover funcione correctamente */
.team-card:hover .team-card-back {
    display: block;
}

.team-card-front {
    position: relative;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-bg-light);
    border-radius: 28px;
    z-index: 1;
    min-height: 500px;
}

.team-card:hover .team-card-front {
    background: transparent;
    border-radius: 0;
}


.team-card-image-wrapper {
    position: relative;
    margin-bottom: 25px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-image-wrapper {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.team-card-info-compact {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-info-compact {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 28px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.team-card:hover .team-card-back {
    opacity: 1;
    visibility: visible;
    padding: 40px 50px;
    pointer-events: all;
    border-radius: 0;
}


.team-card-image,
.team-card-image-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--color-light);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.25);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.team-card-image-placeholder {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 5rem;
}

.team-card:hover .team-card-image,
.team-card:hover .team-card-image-placeholder {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.team-card-info-compact h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
    font-family: 'GingerBrand', sans-serif;
    font-size: 2rem;
    transition: all 0.6s ease;
}

.team-card-info-compact .team-card-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.6s ease;
}

.team-card-expanded-content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 25px;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.team-card:hover .team-card-expanded-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.team-card-header-expanded {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.team-card-header-expanded::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.team-card-image-expanded,
.team-card-image-placeholder-expanded {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: all 0.5s ease;
    position: relative;
}

.team-card-image-expanded::before,
.team-card-image-placeholder-expanded::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.team-card:hover .team-card-image-expanded,
.team-card:hover .team-card-image-placeholder-expanded {
    transform: scale(1.08);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.team-card-image-placeholder-expanded {
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 4rem;
}

.team-card-info-expanded {
    flex: 1;
}

.team-card-info-expanded h3 {
    color: var(--color-white);
    font-family: 'GingerBrand', sans-serif;
    font-size: 1.9rem;
    margin-bottom: 10px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.team-card-role-expanded {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-card-description-expanded {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.team-card-description-expanded::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.team-card:hover .team-card-description-expanded::before {
    left: 100%;
}

.team-card-description-expanded p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.team-card-credentials-expanded {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
    flex-shrink: 0;
}

.credential-badge {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 82, 204, 0.4) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(0, 102, 255, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 15px rgba(0, 102, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.credential-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.credential-badge:hover::before {
    left: 100%;
}

.credential-badge:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.5) 0%, rgba(0, 82, 204, 0.6) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(0, 102, 255, 0.4);
    border-color: rgba(0, 102, 255, 0.7);
}

.credential-badge i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.credential-badge span {
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 82, 204, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 3rem;
    font-family: 'GingerBrand', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content h2::after {
    background: var(--color-accent);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 968px) {
    .history-content {
        grid-template-columns: 1fr;
    }

    .history-image {
        order: -1;
    }

    .history-image-wrapper {
        padding-bottom: 80%;
        min-height: 350px;
    }

    .history-img-bottom {
        width: 50%;
        height: 50%;
        bottom: -15px;
        right: -15px;
        border-width: 4px;
    }
}

@media (max-width: 768px) {
    .about-header {
        padding: 120px 0 50px;
        min-height: 350px;
    }

    .header-content {
        padding: 0 20px;
    }

    .header-badge {
        padding: 7px 14px;
        font-size: 0.8rem;
        margin-bottom: 18px;
    }

    .header-content h1 {
        font-size: 2.2rem;
        margin-bottom: 18px;
        line-height: 1.2;
    }

    .header-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .header-stats {
        gap: 35px;
        margin-top: 25px;
        padding-top: 25px;
        flex-wrap: wrap;
    }

    .header-stat-number {
        font-size: 2.2rem;
    }

    .header-stat-label {
        font-size: 0.8rem;
    }

    .history-section {
        padding: 20px 0 40px;
    }

    .history-content {
        gap: 35px;
    }

    .history-text h2 {
        font-size: 1.8rem;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    .history-lead {
        font-size: 1.05rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .history-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .history-image-wrapper {
        padding-bottom: 65%;
        min-height: 280px;
    }

    .history-img-top {
        border-radius: 16px;
    }

    .history-img-bottom {
        width: 40%;
        height: 45%;
        bottom: -12px;
        right: -12px;
        border-width: 3px;
        border-radius: 16px;
    }

    .values-section {
        padding: 25px 0;
    }

    .values-section .container {
        padding: 0 20px;
    }

    .values-section .section-title {
        margin-bottom: 28px;
    }

    .values-section .section-title h2 {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .values-section .section-title p {
        font-size: 0.88rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }

    .value-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .value-card h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .value-card p {
        font-size: 0.88rem;
        line-height: 1.6;
        text-align: left;
    }

    .values-list {
        margin-top: 8px;
    }

    .values-list li {
        font-size: 0.85rem;
        padding: 8px 0 8px 24px;
        line-height: 1.5;
    }

    .values-list li::before {
        font-size: 1rem;
        left: 2px;
    }

    .process-section {
        padding: 35px 0;
    }

    .process-section .section-title {
        margin-bottom: 30px;
    }

    .process-section .section-title h2 {
        font-size: 1.8rem;
    }

    .process-section .section-title p {
        font-size: 0.9rem;
    }

    .process-bars-container {
        gap: 18px;
        margin-top: 25px;
    }

    .process-bar-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .process-bar-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .process-bar-header h3 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .process-bar-wrapper {
        height: 65px !important;
        margin-left: 0;
        border-radius: 12px;
    }

    .process-bars-container::before {
        display: none;
    }

    .process-bar-item:nth-child(1) .process-bar-wrapper,
    .process-bar-item:nth-child(2) .process-bar-wrapper,
    .process-bar-item:nth-child(3) .process-bar-wrapper,
    .process-bar-item:nth-child(4) .process-bar-wrapper,
    .process-bar-item:nth-child(5) .process-bar-wrapper {
        height: 65px !important;
    }

    .process-bar-content {
        padding: 0 12px;
        min-width: auto;
        width: 100%;
    }

    .process-bar-content p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .specialization-section {
        padding: 50px 0;
    }

    .specialization-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .specialty-card {
        padding: 35px 25px;
    }

    .specialty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .specialty-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .specialty-card p {
        font-size: 0.95rem;
    }

    .team-section {
        padding: 50px 0;
    }

    .team-card-container {
        padding: 0 20px;
    }

    .team-card-front {
        padding: 35px 25px;
        min-height: 400px;
    }

    .team-card-image,
    .team-card-image-placeholder {
        width: 160px;
        height: 160px;
    }

    .team-card-info-compact h3 {
        font-size: 1.5rem;
    }

    .team-card-role {
        font-size: 1rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .team-card-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .team-card:hover {
        transform: scale(1.02) translateY(-10px);
    }

    .team-card-front {
        padding: 40px 30px;
    }

    .team-card-back {
        width: 95%;
        max-width: 95%;
        max-height: 92vh;
        padding: 0;
    }

    .team-card:hover .team-card-back {
        padding: 50px 30px;
    }

    .team-card-expanded-content {
        gap: 25px;
        padding-bottom: 15px;
    }

    .team-card-description-expanded {
        padding: 30px 25px;
        margin-bottom: 15px;
    }

    .team-card-header-expanded {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .team-card-image,
    .team-card-image-placeholder {
        width: 180px;
        height: 180px;
    }

    .team-card-info-compact h3 {
        font-size: 1.6rem;
    }

    .team-card-header-expanded {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 25px;
    }

    .team-card-image-expanded,
    .team-card-image-placeholder-expanded {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .team-card-info-expanded h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .team-card-description-expanded {
        padding: 25px;
    }

    .team-card-description-expanded p {
        font-size: 1rem;
    }

    .credential-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .process-bars-container {
        gap: 25px;
    }

    .process-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .process-bar-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-bar-header h3 {
        font-size: 1.3rem;
    }

    .process-section {
        padding: 40px 0;
    }

    .process-bars-container {
        margin: 30px auto 0;
        gap: 15px;
    }

    .process-bar-wrapper {
        height: 80px !important;
        margin-left: 60px;
    }

    .process-bar-item:nth-child(1) .process-bar-wrapper,
    .process-bar-item:nth-child(2) .process-bar-wrapper,
    .process-bar-item:nth-child(3) .process-bar-wrapper,
    .process-bar-item:nth-child(4) .process-bar-wrapper,
    .process-bar-item:nth-child(5) .process-bar-wrapper {
        height: 80px !important;
    }

    .process-bar-content {
        padding: 0 18px;
        min-width: 140px;
    }

    .process-bar-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .process-bar-item {
        transform: translateX(-20px);
    }

    .process-bar-header {
        gap: 12px;
        margin-bottom: 10px;
    }

    .process-bar-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .process-bar-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-header {
        padding: 100px 0 40px;
        min-height: 300px;
    }

    .header-content {
        padding: 0 15px;
    }

    .header-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .header-content h1 {
        font-size: 1.7rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .header-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .header-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .header-stat-number {
        font-size: 2rem;
    }

    .header-stat-label {
        font-size: 0.75rem;
    }

    .history-section {
        padding: 18px 0 35px;
    }

    .history-content {
        gap: 25px;
    }

    .history-text h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .history-lead {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .history-text p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .history-image-wrapper {
        padding-bottom: 60%;
        min-height: 220px;
    }

    .history-img-top {
        border-radius: 14px;
    }

    .history-img-bottom {
        width: 45%;
        height: 40%;
        bottom: -10px;
        right: -10px;
        border-width: 2px;
        border-radius: 14px;
    }

    .values-section {
        padding: 20px 0;
    }

    .values-section .container {
        padding: 0 15px;
    }

    .values-section .section-title {
        margin-bottom: 22px;
    }

    .values-section .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .values-section .section-title p {
        font-size: 0.82rem;
    }

    .values-grid {
        gap: 18px;
        margin-top: 0;
    }

    .value-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .value-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .value-card h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .value-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        text-align: left;
        margin-bottom: 0;
    }

    .values-list {
        margin-top: 6px;
        text-align: left;
    }

    .values-list li {
        font-size: 0.78rem;
        padding: 7px 0 7px 22px;
        line-height: 1.4;
    }

    .values-list li::before {
        font-size: 0.95rem;
        left: 0;
    }

    .values-list li strong {
        display: block;
        margin-bottom: 2px;
        font-size: 0.8rem;
    }

    .process-section {
        padding: 30px 0;
    }

    .process-section .section-title {
        margin-bottom: 25px;
    }

    .process-section .section-title h2 {
        font-size: 1.5rem;
    }

    .process-section .section-title p {
        font-size: 0.85rem;
    }

    .process-bars-container {
        gap: 15px;
        margin-top: 20px;
    }

    .process-bar-header {
        gap: 10px;
        margin-bottom: 8px;
    }

    .process-bar-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .process-bar-header h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .process-bar-wrapper {
        height: 55px !important;
        margin-left: 0;
        border-radius: 10px;
    }

    .process-bar-item:nth-child(1) .process-bar-wrapper,
    .process-bar-item:nth-child(2) .process-bar-wrapper,
    .process-bar-item:nth-child(3) .process-bar-wrapper,
    .process-bar-item:nth-child(4) .process-bar-wrapper,
    .process-bar-item:nth-child(5) .process-bar-wrapper {
        height: 55px !important;
    }

    .process-bar-content {
        padding: 0 10px;
        min-width: auto;
    }

    .process-bar-content p {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .specialization-section {
        padding: 40px 0;
    }

    .specialization-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .specialty-card {
        padding: 30px 20px;
    }

    .specialty-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .specialty-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .specialty-card p {
        font-size: 0.9rem;
    }

    .team-section {
        padding: 40px 0;
    }

    .team-card-container {
        padding: 0 15px;
    }

    .team-card-front {
        padding: 30px 20px;
        min-height: 350px;
    }

    .team-card-image,
    .team-card-image-placeholder {
        width: 140px;
        height: 140px;
    }

    .team-card-info-compact h3 {
        font-size: 1.3rem;
    }

    .team-card-role {
        font-size: 0.95rem;
    }

    .team-card:hover .team-card-back {
        padding: 40px 20px;
    }

    .team-card-expanded-content {
        gap: 20px;
    }

    .team-card-header-expanded {
        flex-direction: column;
        gap: 15px;
    }

    .team-card-image-expanded,
    .team-card-image-placeholder-expanded {
        width: 100px;
        height: 100px;
    }

    .team-card-info-expanded h3 {
        font-size: 1.5rem;
    }

    .team-card-description-expanded {
        padding: 20px;
    }

    .team-card-description-expanded p {
        font-size: 0.95rem;
    }

    .credential-badge {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-content {
        padding: 0 15px;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.history-section,
.values-section,
.process-section,
.specialization-section,
.team-section {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.history-section {
    animation-delay: 0.1s;
}

.values-section {
    animation-delay: 0.2s;
}

.process-section {
    animation-delay: 0.3s;
}

.specialization-section {
    animation-delay: 0.4s;
}

.team-section {
    animation-delay: 0.5s;
}

.value-card,
.specialty-card {
    opacity: 0;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.15s; }
.value-card:nth-child(3) { animation-delay: 0.2s; }

.specialty-card:nth-child(1) { animation-delay: 0.1s; }
.specialty-card:nth-child(2) { animation-delay: 0.15s; }
.specialty-card:nth-child(3) { animation-delay: 0.2s; }
.specialty-card:nth-child(4) { animation-delay: 0.25s; }
.specialty-card:nth-child(5) { animation-delay: 0.3s; }
.specialty-card:nth-child(6) { animation-delay: 0.35s; }
