:root {
    --color-primario: #4e73df;
    --color-secundario: #224abe;
    --color-activo: #1cc88a;
    --color-inactivo: #e74a3b;
    --color-texto: #5a5c69;
    --color-fondo: #f8f9fc;
    --sombra: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --degradado: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --degradado-claro: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Contenido principal */
.container__background-triangle{
    max-width: 1200px;
    height: 600px;
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.triangle{
    width: 300px;
    height: 300px;
    background: red;
    position: absolute;
}

.triangle1{
    width: 250px;
    height: 250px;
    background: linear-gradient(to left, #062b50, #1e67c7);
    right: 100px;
    top: 100px;
    animation: t1 8s ease infinite;
}

.triangle2{
    width: 200px;
    height: 200px;
    background: linear-gradient(to left, #1e67c7, #fff);
    top: 350px;
    animation: t2 9s ease infinite;
}

.triangle3{
    width: 300px;
    height: 300px;
    background: linear-gradient(to left, #1b8fc5, #df0f8f);
    left: 200px;
    animation: t3 7s ease infinite;
}

@keyframes t1 {
    0%{
        transform: rotate(45deg) translateY(0px);
    }
    50%{
        transform: rotate(45deg) translateY(20px);
    }
    100%{
        transform: rotate(45deg) translateY(0px);
    }
}

@keyframes t2 {
    0%{
        transform: rotate(65deg) translateY(0px);
    }
    50%{
        transform: rotate(65deg) translateY(20px);
    }
    100%{
        transform: rotate(65deg) translateY(0px);
    }
}

@keyframes t3 {
    0%{
        transform: rotate(45deg) translateY(0px);
    }
    50%{
        transform: rotate(45deg) translateY(20px);
    }
    100%{
        transform: rotate(45deg) translateY(0px);
    }
}

/* Estilos generales mejorados */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-fondo);
    position: relative;
    overflow-x: hidden;
    color: var(--color-texto);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(78, 115, 223, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(231, 74, 59, 0.05) 0%, transparent 20%);
    z-index: -1;
}

/* Contenedor principal mejorado */
.detalle-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Encabezado con foto y datos principales */
.perfil-header {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--sombra);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.perfil-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--degradado);
}

.perfil-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.perfil-foto:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.perfil-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primario);
}

.perfil-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.logo-fondo {
    position: absolute;
    top: 50%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    z-index: 0;
    pointer-events: none;
}

.logo-fondo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Badge de estado mejorado */
.estado-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.estado-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Secciones de información */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--sombra);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: var(--color-primario);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--degradado-claro);
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-label {
    font-weight: 600;
    min-width: 150px;
    color: var(--color-secundario);
}

.info-value {
    flex: 1;
    word-break: break-word;
}

/* Botones de acción */
.acciones-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-detalle {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-decoration:auto;

}

.btn-detalle i {
    margin-right: 0.8rem;
}

.btn-detalle::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-detalle:hover::after {
    transform: translateX(0);
}

.btn-primary {
    background: var(--degradado);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--color-primario);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Efectos especiales */
.highlight {
    animation: highlight 2s ease-in-out infinite alternate;
}

@keyframes highlight {
    from {
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0);
    }
    to {
        box-shadow: 0 0 0 10px rgba(30, 144, 255, 0.3);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .perfil-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .perfil-foto {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 120px;
        height: 120px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .acciones-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-detalle {
        width: 100%;
    }

    .logo-fondo {
        top: 70%;
        left: 50%;
        width: 50%;
        height: 50%;
        z-index: -1;
        opacity: 0.7;
    }

    .logo-fondo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

}

/* Agrega al final del archivo */
@keyframes softZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.detalle-container {
    animation: softZoom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
