/* ============================================
   LINK IN BIO CON PREVISUALIZACIONES
   ============================================ */

:root {
    /* 1. Fondo Premium Oscuro (Chau azules, hola negro profundo) */
    --bg-color: #050505;
    --bg-gradient-1: #000000;
    --bg-gradient-2: #111111;
    --bg-gradient-3: #1a0505; /* Un toque levísimo de rojo en la sombra */
    
    /* 2. Glassmorphism (Efecto cristal translúcido) */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
    
    /* 3. Colores Hakkyo (Rojo sangre/competencia) */
    --accent-color: #d20000; 
    --accent-hover: #ff1a1a;
    
    /* 4. Colores de Iconos (Neutralizados para no parecer un circo) */
    --youtube-color: #ff0000;
    --shop-color: #e0e0e0; /* Plata/Gris claro para mantener la elegancia */
    --calendar-color: #a30000; /* Un rojo más apagado */
    --portfolio-color: #888888; /* Gris plomo */
    --support-color: #d20000;
    
    /* 5. Tipografías */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-title: 'Bebas Neue', sans-serif; /* Sumé esta para los títulos impactantes */
    
    /* 6. Estructura Link.me (Look de App Móvil) */
    --container-padding: 20px;
    --max-width: 500px; /* Reducido a 500px para que se vea como una app en PC */
    --card-radius: 16px; /* Bordes un poco más agresivos (menos redondos) */
    --preview-height: 180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, 
        var(--bg-gradient-1), 
        var(--bg-gradient-2), 
        var(--bg-gradient-3), 
        #1a1a2e
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(233, 69, 96, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contenedor principal */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PERFIL
   ============================================ */
.profile-section {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.6s ease-out 0.2s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    display: block;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 400px;
    line-height: 1.6;
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideUp 0.6s ease-out 0.4s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

/* ============================================
   TARJETAS CON PREVISUALIZACIÓN
   ============================================ */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease-out both;
}

/* Animación escalonada para cada tarjeta */
.link-card:nth-child(1) { animation-delay: 0.5s; }
.link-card:nth-child(2) { animation-delay: 0.6s; }
.link-card:nth-child(3) { animation-delay: 0.7s; }
.link-card:nth-child(4) { animation-delay: 0.8s; }
.link-card:nth-child(5) { animation-delay: 0.9s; }
.link-card:nth-child(6) { animation-delay: 1.0s; }

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--card-hover);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(233, 69, 96, 0.15);
}

/* Sección de previsualización de imagen */
.link-preview {
    position: relative;
    width: 100%;
    height: var(--preview-height);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover .preview-image {
    transform: scale(1.1);
}

/* Overlay en la imagen */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-overlay i {
    font-size: 40px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.link-card:hover .preview-overlay {
    opacity: 1;
}

.link-card:hover .preview-overlay i {
    transform: scale(1);
}

/* Contenido de la tarjeta */
.link-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.link-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(233, 69, 96, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

/* Colores específicos por tipo */
.youtube-icon { background: rgba(255, 0, 0, 0.15); color: var(--youtube-color); }
.shop-icon { background: rgba(243, 156, 18, 0.15); color: var(--shop-color); }
.calendar-icon { background: rgba(52, 152, 219, 0.15); color: var(--calendar-color); }
.portfolio-icon { background: rgba(155, 89, 182, 0.15); color: var(--portfolio-color); }
.support-icon { background: rgba(231, 76, 60, 0.15); color: var(--support-color); }

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: white;
}

.link-card:hover .youtube-icon { background: var(--youtube-color); }
.link-card:hover .shop-icon { background: var(--shop-color); }
.link-card:hover .calendar-icon { background: var(--calendar-color); }
.link-card:hover .portfolio-icon { background: var(--portfolio-color); }
.link-card:hover .support-icon { background: var(--support-color); }

/* Información del enlace */
.link-info {
    flex: 1;
    min-width: 0; /* Importante para text-overflow */
}

.link-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-url {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-url::before {
    content: '🔗';
    font-size: 10px;
}

/* Flecha */
.link-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--accent-color);
    color: white;
}

/* Centrar imagen horizontal y verticalmente */
.centered-screenshot {
    display: block;
    margin: 0 auto;           /* Centrado horizontal */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;  /* Punto focal centrado */
}

/* Contenedor del video */
.video-preview {
    position: relative;
    width: 100%;
    height: var(--preview-height, 160px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Miniatura de YouTube centrada */
.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.video-preview:hover .youtube-thumbnail {
    transform: scale(1.05);
}

/* Botón de play centrado */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-preview:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

/* Preview con chat integrado */
.chat-visible .whatsapp-preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.chat-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 3;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.whatsapp-card:hover .chat-preview {
    transform: scale(1);
}

.chat-header {
    font-size: 11px;
    color: #075e54;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    position: relative;
    padding-bottom: 16px;
}

.chat-time {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 9px;
    color: #999;
}

.whatsapp-badge-static {
    background: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Flecha de enviar */
.whatsapp-card .link-arrow {
    background: #25d366;
    color: white;
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-card:hover .link-arrow {
    transform: translateX(5px) rotate(-45deg);
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA TAEKWONDO ITF PRO FIGHTERS
   ============================================ */

/* Preview con tema de competencia */
.profighters-preview {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #e94560 150%);
}

/* Overlay rojo/dorado de competencia */
.profighters-overlay {
    background: linear-gradient(to bottom, 
        rgba(233, 69, 96, 0.1) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Símbolo del Dojo */
.dojo-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}

.dojo-symbol span {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Noto Serif JP', serif; /* Si tienes fuente japonesa */
}

.dojo-symbol small {
    font-size: 14px;
    letter-spacing: 4px;
    margin-top: -5px;
}

.profighters-card:hover .dojo-symbol {
    transform: scale(1);
    opacity: 1;
}

/* Badge de organización */
.profighters-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(233, 69, 96, 0.7); }
}

/* Icono de puño/cinturón negro */
.profighters-icon {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    color: #e94560;
    border: 2px solid rgba(233, 69, 96, 0.3);
}

.profighters-card:hover .profighters-icon {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

/* Borde especial para tarjeta de Pro Fighters */
.profighters-card {
    border: 2px solid rgba(233, 69, 96, 0.2);
    position: relative;
    overflow: hidden;
}

.profighters-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.profighters-card:hover::before {
    left: 100%;
}

.profighters-card:hover {
    border-color: rgba(233, 69, 96, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 40px rgba(233, 69, 96, 0.2);
    transform: translateY(-5px) scale(1.02);
}

/* Efecto de cinturón negro en el borde inferior */
.profighters-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e94560 20%, 
        #fff 50%, 
        #e94560 80%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profighters-card:hover::after {
    opacity: 1;
}

/* Animación de pulso en el icono */
@keyframes pulse-fist {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.profighters-card:hover .profighters-icon i {
    animation: pulse-fist 1s ease infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .dojo-symbol span {
        font-size: 48px;
    }
    
    .profighters-badge {
        font-size: 9px;
        padding: 4px 10px;
    }
}

/* Versión con mockup de navegador */
.modern-overlay {
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-mockup {
    width: 80%;
    max-width: 200px;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gymhakkyo-card:hover .browser-mockup {
    transform: translateY(0);
    opacity: 1;
}

.browser-dots {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}

.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-content {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0055ff;
    font-size: 24px;
}

.live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
    display: inline-block;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.modern-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ============================================
   SECCIÓN DE VIDEOS (CARRUSEL HORIZONTAL)
   ============================================ */

.section-container {
    width: 100%;
    margin-bottom: 30px;
    animation: slideUp 0.6s ease-out both;
}

.section-title {
    font-family: var(--font-title, 'Bebas Neue', sans-serif);
    font-size: 1.6rem;
    text-align: left;
    margin: 0 0 15px 5px;
    letter-spacing: 1px;
    color: #ffffff; /* Fix: forzamos blanco puro */
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    text-transform: uppercase;
}

/* Contenedor scrolleable */
.video-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    padding-left: 5px;
    padding-right: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}

.video-slider::-webkit-scrollbar {
    display: none;
}

/* Estilo de la tarjeta de video */
.video-card {
    min-width: 260px;
    max-width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    text-decoration: none;
    color: #ffffff; /* Fix: evita el azul por defecto de los links */
    scroll-snap-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Mantiene el efecto cristal del resto de la web */
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(210, 0, 0, 0.2); /* Sombra roja sutil Hakkyo */
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-bottom: 2px solid var(--accent-color); /* Detalle premium separador */
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón de play flotante */
.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-overlay i {
    color: white;
    font-size: 1.5rem;
    background: var(--accent-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(210, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card:hover .play-overlay i {
    transform: scale(1);
}

/* Textos de la tarjeta */
.video-info {
    padding: 15px;
    text-align: left;
}

.video-info h4 {
    color: #ffffff; /* Blanco puro */
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    color: rgba(255, 255, 255, 0.6); /* Fix: Gris claro elegante en lugar de azul */
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   TARJETAS EN CUADRÍCULA (MITAD Y MITAD)
   ============================================ */
.grid-2-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.grid-2-columns .link-card {
    margin-bottom: 0; 
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-2-columns .link-preview {
    height: 100px; /* Imagen más corta para lograr el cuadrado */
}

.grid-2-columns .link-content {
    padding: 12px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

/* Ícono superpuesto entre la imagen y el texto */
.grid-2-columns .link-icon {
    margin-top: -30px; 
    border: 3px solid var(--bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 5;
}

/* Ocultamos lo que sobra de texto para mantener el cuadrado limpio */
.grid-2-columns .link-description,
.grid-2-columns .link-arrow {
    display: none;
}

.grid-2-columns .link-info {
    text-align: center;
    width: 100%;
}

.grid-2-columns .link-title {
    font-size: 15px;
    white-space: normal;
    margin-bottom: 2px;
}

.grid-2-columns .link-url {
    justify-content: center;
    font-size: 11px;
}

/* Ajustes específicos para el chat de WhatsApp en cuadrado */
.grid-2-columns .chat-preview {
    transform: scale(0.85);
    transform-origin: bottom center;
    margin-bottom: -5px;
    padding: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.grid-2-columns .chat-message {
    padding-bottom: 0; /* Quitamos espacio de la hora para ahorrar espacio */
    font-size: 11px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    animation: fadeIn 0.6s ease-out 1.2s both;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --preview-height: 140px;
        --card-radius: 16px;
    }
    
    .container {
        padding: 30px var(--container-padding);
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .link-content {
        padding: 16px;
        gap: 12px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }
    
    .link-title {
        font-size: 15px;
    }
    
    .link-description {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .link-arrow {
        display: none; /* Ocultar flecha en móvil para ahorrar espacio */
    }
}


@media (max-width: 320px) {
    .profile-name {
        font-size: 20px;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-animation {
        animation: none;
    }
}

/* Utilidades */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}