/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  /* ===== Colors - Black & White Theme ===== */
  --primary-color: #ffffff;
  --secondary-color: #000000;
  --text-color: #ffffff;
  --text-color-light: #cccccc;
  --text-color-muted: #999999;
  --body-color: #000000;
  --card-color: #111111;
  --border-color: #333333;
  --hover-color: #222222;
  --shadow-color: rgba(255, 255, 255, 0.1);

  /* ===== Font and typography ===== */
  --body-font: 'Inter', sans-serif;
  --title-size: 1.75rem;
  --subtitle-size: 1rem;
  --normal-size: 0.9rem;
  --small-size: 0.8rem;

  /* ===== Font weight ===== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ===== Spacing ===== */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* ===== Border radius ===== */
  --radius: 12px;

  /* ===== Transitions ===== */
  --transition: 0.2s ease;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-size);
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(169deg, rgba(0, 0, 0, 1) 0%, rgb(0 0 0) 49%, rgba(20, 20, 20, 1) 100%);
   display: flex; 
    justify-content: center;
    align-items: center; 
   
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
 
  
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
   margin-top: 5rem;
}

.logo-img {
  width: 100%;
  max-width: 120px;  
  height: auto;
}

.profile-image {
  margin-bottom: var(--spacing-md);
}

.logo-circle {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: var(--font-bold);
  margin: 0 auto;
  border: 3px solid var(--border-color);
}

.title {
  font-size: var(--title-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
}

.subtitle {
  font-size: var(--subtitle-size);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-medium);
}

.description {
  font-size: var(--normal-size);
  color: var(--text-color-muted);
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== LINKS SECTION ===== */
.links {
  margin-bottom: var(--spacing-xl);
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
   transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
  
}

.link-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #FF5B05);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.link-card:hover::before {
    opacity: 1;
    animation: rotate-glow 4s linear infinite;

}

.link-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--card-color); /* Usa la variable de color de fondo */
    border-radius: var(--radius);
    z-index: -1;
}

.link-card:hover {
     transform: translateY(-2px) scale(1.15);
    box-shadow: 0 4px 12px var(--shadow-color); 
}

@keyframes rotate-glow {
    to {
        transform: rotate(360deg);
    }
}
.link-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: var(--subtitle-size);
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
}

.link-subtitle {
  font-size: var(--small-size);
  color: var(--text-color-muted);
}

.link-card i {
  color: var(--text-color-light);
  font-size: 1rem;
  transition: var(--transition);
}

.link-card:hover i {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  margin-top: auto;
  padding-top: var(--spacing-lg);
}

.footer-text {
  font-size: var(--small-size);
  color: var(--text-color-muted);
  margin-bottom: var(--spacing-xs);
}

.copyright {
  font-size: var(--small-size);
  color: var(--text-color-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  animation: fadeIn 0.6s ease-out;
}

.link-card {
  animation: fadeIn 0.4s ease-out both;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }

.footer {
  animation: fadeIn 0.6s ease-out 0.5s both;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }

  .logo-circle {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .description {
    font-size: var(--small-size);
  }
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--body-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color-muted);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--primary-color);
  color: var(--secondary-color);
}
