/* Variables para la estructura de 3 capas */
:root {
    /* 1. Fondo exterior total */
    --bg-exterior: #d1d5db; /* Gris neutro */
    
    /* 2. Fondo de la ventana (Degradado propio) */
    --bg-ventana: linear-gradient(180deg, #dbeafe 0%, #f8fafc 100%);
    
    /* 3. Fondo de los enlaces/botones */
    --btn-bg: #ffffff;
    --btn-hover: #f8fafc;
    
    /* Colores de texto */
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Sombras */
    --shadow-ventana: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Sombra fuerte para la ventana */
    --shadow-btn: 0 6px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-exterior);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Centra la ventana verticalmente en escritorio */
    padding: 2rem 1rem;
}

/* LA VENTANA */
.container {
    width: 100%;
    max-width: 480px; /* Ancho de la ventana */
    background: var(--bg-ventana);
    border-radius: 40px; /* Bordes redondeados del marco */
    box-shadow: var(--shadow-ventana);
    padding: 3rem 1.5rem; /* Espaciado interno de la ventana */
}

/* Cabecera y Logo */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #ffffff; /* Círculo blanco para tu logo negro transparente */
    padding: 10px; /* Espacio para que el logo respire dentro del círculo */
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-btn);
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Redes Sociales Superiores */
.social-icons-top {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icons-top a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons-top a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #0284c7;
}

/* Botones y Enlaces */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.link-wrapper {
    background-color: var(--btn-bg) !important; /* El !important fuerza el fondo blanco */
    border-radius: 30px;
    box-shadow: var(--shadow-btn);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    overflow: hidden;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    width: 100%;
    /* Eliminamos el 'background: none;' que causaba el problema */
    background-color: transparent; 
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.link-wrapper.link-btn:hover, .accordion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--btn-hover);
}

.link-btn .icon, 
.link-btn .action-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    color: var(--text-main);
}

.link-btn .text {
    flex-grow: 1;
    text-align: center;
    padding: 0 1rem;
}

/* Acordeón (Mi Setup) */
.accordion {
    display: flex;
    flex-direction: column;
}

.action-icon .arrow {
    transition: transform 0.3s ease;
}

.accordion.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8fafc;
}

.sub-link {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
    transition: var(--transition);
}

.sub-link:hover {
    background-color: #e2e8f0;
    color: var(--text-main);
}

/* Títulos de sección */
.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Pie de página */
.footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-bg);
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: var(--shadow-btn);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.support-btn i {
    color: #ef4444;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.section-title {
    font-size: 1.2rem; /* Aumentado para mayor jerarquía */
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
/* Enlace de créditos (By TecnoRed) */
.footer-credit {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-credit:hover {
    color: var(--text-main);
}

/* Ajustes para móviles pequeños */
@media (max-width: 480px) {
    body {
        padding: 0;
        background-color: var(--bg-ventana); /* En móvil quitamos el marco gris */
    }
    
    .container {
        border-radius: 0;
        box-shadow: none;
        padding: 2rem 1rem;
    }
}