/* ==========================================
   1. IMPORTACIÓN DE FUENTES & VARIABLES GLOBALES
   (Tomadas de FindazaPets/styles.css)
   ================================---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-green: #1B4D3E;
  --secundary-color: #1e1b18;
  --accent-orange: #FF7043;

  --bg-main: #FAF6F0;
  --bg-main2: #F5EFE5;
  --bg-card: #FFFFFF;
  --bg-vidrio: rgba(20, 25, 30, 0.6);

  --text-main: #2D3748;
  --text-muted: #718096;
  --text-light: #FFFFFF;

  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* ==========================================
   2. RESETEO Y ESTILOS GENERALES
   ================================---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--primary-green);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 112, 67, 0.30), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 112, 67, 0.20), transparent 46%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(160deg, #0E2F27 0%, #164438 45%, #0A231D 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================
   3. ESTRUCTURA DE LA PÁGINA (LINKTREE)
   ================================---------- */
.linktree-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.linktree-card {
  width: 100%;
  max-width: 470px;
  padding: 42px 32px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: card-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes card-in {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ==========================================
   4. LOGO Y PRESENTACIÓN
   ================================---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: linear-gradient(145deg, #16233A 0%, #0F1C30 60%, #0A1424 100%);
  color: var(--text-light);
  font-size: 1.5rem;
  box-shadow: 0 10px 22px -6px rgba(9, 18, 32, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo:hover .logo-mark {
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 14px 28px -6px rgba(9, 18, 32, 0.9);
}

.tagline {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.affiliate-note {
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.52);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
}

.brand-pill i {
  color: var(--accent-orange);
  font-size: 0.8rem;
}

/* ==========================================
   5. LISTA DE ENLACES
   ================================---------- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  animation: link-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.25s; }

@keyframes link-in {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--accent-orange);
  background: rgba(255, 112, 67, 0.14);
  border-radius: 15px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}

.link-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
  margin-top: 2px;
}

.link-arrow {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Estado hover / focus */
.link-card:hover,
.link-card:focus-visible {
  background: rgba(255, 112, 67, 0.16);
  border-color: rgba(255, 112, 67, 0.55);
  box-shadow: 0 10px 26px -8px rgba(255, 112, 67, 0.5);
  transform: translateY(-3px);
  outline: none;
}

.link-card:hover .link-icon,
.link-card:focus-visible .link-icon {
  background: var(--accent-orange);
  color: var(--text-light);
  transform: scale(1.05);
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  color: var(--accent-orange);
  transform: translateX(4px);
}

/* ==========================================
   6. REDES SOCIALES Y PIE
   ================================---------- */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(255, 112, 67, 0.7);
  outline: none;
}

.footer-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-note strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ==========================================
   7. RESPONSIVE
   ================================---------- */
@media (max-width: 480px) {
  .linktree-wrapper {
    padding: 28px 14px;
  }

  .linktree-card {
    padding: 32px 20px 22px;
    border-radius: 26px;
  }

  .logo {
    gap: 10px;
  }

  .logo-mark {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 0.86rem;
  }

  .link-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .link-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .link-title {
    font-size: 0.92rem;
  }

  .link-subtitle {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
