/* --- CONFIGURACIÓN BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Cambiamos center por flex-start */
    align-items: flex-start; 
    background-color: #f0f4f8;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 180, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 100, 255, 0.05) 0px, transparent 50%);
    /* Ajusta este primer número (2rem) para subir o bajar todo el bloque */
    padding: 2rem 1rem; 
}

/* --- CONTENEDOR (FINO Y CENTRADO) --- */
.bio-container {
    width: 100%;
    max-width: 330px; /* Ancho fino solicitado */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- LOGO (CORREGIDO) --- */
.logo-header {
    text-align: center;
    margin-bottom: -4rem; 
    width: 100%;
    position: relative; /* Necesario para que respete el z-index */
    z-index: 1;        /* Un valor bajo para que quede atrás */
}


.main-logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* --- LISTA DE BOTONES --- */

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative; /* Permite el uso de z-index */
    z-index: 10;        /* Lo pone por delante de elementos con z-index menor */
}


.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f0f4f8;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 180, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 100, 255, 0.05) 0px, transparent 50%);
    border: 1px solid rgba(0, 0, 0, 0.199);
    border-radius: 16px;
    padding: 10px 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.link-card:hover {
    background: #f8fbff;
    border-color: rgba(0, 180, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 100, 255, 0.08);
}

/* --- SECCIÓN DE ICONOS --- */
.icon-section {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.llamanos .icon-section { background: #e0eeff; }
.whatsapp .icon-section { background: #e3f9e9; }
.web .icon-section { background: #eef2ff; }
.horarios .icon-section { background: #f1f5f9; }

.link-icon {
    width: 20px;
    height: 20px;
}

.llamanos .link-icon { fill: #0064ff; }
.whatsapp .link-icon { fill: #1db954; }
.web .link-icon { fill: #5c7cfa; }
.horarios .link-icon { fill: #1a2b4b; }

/* --- TEXTOS --- */
.text-section {
    flex: 1;
    text-align: left;
}

.main-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4b;
    margin-bottom: 1px;
}

.sub-text {
    font-size: 11px;
    color: #6a7b93;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    fill: #cbd5e0;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #f0f4f8;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 180, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 100, 255, 0.05) 0px, transparent 50%);
    width: 90%;
    max-width: 300px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: aparecer 0.3s ease-out;
}

@keyframes aparecer {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Ajustes de la Cabecera del Modal --- */
.modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 12px; /* Espacio entre el texto y la línea */
    margin-bottom: 15px; /* Espacio entre la línea y los horarios */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* LA LÍNEA FINA */
}


.modal-header h3 {
    color: #1a2b4b;
    font-size: 21px;
    font-weight: 700;
}

/* --- Botón Cerrar (Esquina Superior Derecha) --- */
.close-btn {
    position: absolute; /* Lo saca del flujo normal */
    top: -15px;          /* Ajusta hacia arriba */
    right: -5px;        /* Ajusta hacia la derecha */
    font-size: 28px;
    cursor: pointer;
    color: #cbd5e0;
    transition: color 0.2s ease;
    padding: 10px;      /* Aumenta el área de clic */
    line-height: 1;
}

.horario-row {
    display: flex;
    align-items: center;    
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    text-align: left;
}

.horario-row strong { font-size: 16px; color: #1a2b4b; }
.horario-row span { font-size: 15px; color: #6a7b93; line-height: 1.4; }
.modal-divider { border: 0; border-top: 1px solid #f0f4f8; }
.cerrado span { color: #e53e3e; font-weight: 600; }

.btn-entendido {
    width: 100%;
    background: #0084ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sm-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 11px;
    color: #94a3b8;
}

/* --- RESPONSIVIDAD (TELÉFONOS) --- */
@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
        align-items: center; 
    }

    .logo-header {
        text-align: center;
        margin-bottom: -4rem; /* Espacio real, sin márgenes negativos */
        width: 100%;
    }



    .bio-container {
        width: 95%; /* Se ajusta a casi todo el ancho en pantallas mini */
    }

   .main-logo {
        max-width: 250px;
        height: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    }

    .main-text {
        font-size: 13px; /* Evita que el texto largo salte de línea */
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.5rem; /* Menos espacio arriba en celulares */
        align-items: flex-start; 
    }
    
    .bio-container {
        margin-top: 0; /* Asegura que no haya margen extra */
    }
}
