/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura principal con flexbox */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Contenedor principal que crece para empujar el footer hacia abajo */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenedor del marco */
.frame-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Marco cuadrado */
.frame {
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 1px solid #e0e0e0;
    overflow: visible;
}

/* Efecto de borde decorativo */
.frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #333;
    border-radius: 8px;
    pointer-events: none;
}

/* Contenedor del logo */
.logo-container {
    width: 45%;
    max-width: 180px;
    margin-bottom: 15px;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Título principal */
h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* Cuadro de enlaces */
.links-box {
    width: 100%;
    max-width: 350px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.links-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
}

.links-box h2 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.links-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4);
}

/* Enlaces de redes sociales */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-link span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Colores específicos para cada red social */
.social-link[aria-label="Instagram"] {
    color: #E1306C;
}

.social-link[aria-label="TikTok"] {
    color: #000000;
}

.social-link[aria-label="X (Twitter)"] {
    color: #000000;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Efecto hover en el marco */
.frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para el footer */
.footer {
    flex-shrink: 0;
    background-color: #f0f0f0;
    text-align: center;
    padding: 15px 0;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #000; /* Color negro para el enlace */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #333;
    text-decoration: underline;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    .frame {
        padding: 20px 15px;
    }
    
    .logo-container {
        width: 50%;
    }
    
    h1 {
        font-size: 1.4rem;
        margin: 5px 0 15px;
    }
    
    .links-box {
        padding: 20px 15px;
        margin: 10px 0;
        width: 100%;
    }
    
    .social-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .social-link i {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .footer {
        padding: 10px 0;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 15px;
    }
}

/* Animación sutil al cargar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.frame {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Efecto de hover en los enlaces */
.social-link::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transition: all 0.3s ease;
    color: #999;
}

.social-link:hover::after {
    opacity: 1;
    margin-left: 15px;
}
