/* ===== HEADER COMPONENT ===== */
.header-component {
  display: block;
  width: 100%;
  text-align: center;
}

/* Contenedores específicos para control de altura */
.logo-container {
  display: block;
  text-align: center;
  padding: 1rem 0;
}

.title-container {
  display: block;
  text-align: center;
}

.description-button-container {
  display: block;
  text-align: center;
  padding: 0.1rem 0;
}

.header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.header-title {
  width: 100%;
  font-size: 2rem; /* tamaño adecuado para 1200px */
  line-height: 1em;
  letter-spacing: -0.04em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.header-description {
  max-width: 30rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.text-small {
  font-size: 0.9rem !important;
  max-width: 30rem !important;
  line-height: 1.4 !important;
}

.header-cta {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
}

/* Gradient Button */
.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #9B6EFD, #9C05C3, #F0768C);
  color: white;
  min-height: 3rem;
  text-align: center;
  white-space: nowrap;
}

.gradient-button--lg {
  padding: 0.75rem 1.25rem; /* más compacto */
  font-size: 0.85rem; /* más pequeño */
  min-height: 2.5rem; /* más compacto */
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(155, 110, 253, 0.3);
}

.gradient-button:active {
  transform: translateY(0);
}

/* ===== LINK SECTION ===== */
.link-section {
  width: 100%;
  max-width: 50rem;
  display: block;
  text-align: center;

}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
}

.link-card {
  display: block;
  position: relative;
  transform: translateZ(0);
  border-radius: 0.5rem;
  padding: 0;
  text-align: left;
  transition: all 0.3s ease;
  will-change: transform;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-height: 80px;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.link-card:active {
  transform: scale(0.98);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0.75rem;
  background: hsl(var(--primary));
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.link-card:hover::before {
  opacity: 0.2;
}

.link-card-content {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.5rem; /* más compacto */
}

.link-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.link-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.2rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
}

.link-card-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
}

.link-card-text {
  flex: 1;
  min-width: 0;
}

.link-card-text h3 {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin: 0;
}

.link-card-text p {
  margin: 0.2rem 0 0 0;
  font-size: 0.7rem; /* más pequeño */
  color: hsl(var(--muted-foreground));
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
}

.social-button {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  margin: 0 0.2rem;
  vertical-align: middle;
}

.social-button:hover {
  color: hsl(var(--foreground));
}

.social-button svg {
  width: 1.125rem; /* más pequeño como React */
  height: 1.125rem; /* más pequeño como React */
}

/* ===== FLOATING CHAT ===== */
.floating-chat {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
}

.chat-toggle {
  position: relative;
  width: 5rem; /* más pequeño como React */
  height: 5rem; /* más pequeño como React */
  border-radius: 50%;
  background: hsl(var(--card));
  border: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid hsl(var(--primary) / 0.5);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.chat-toggle:hover {
  transform: scale(1.05);
}

.chat-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

.chat-toggle img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem; /* más pequeño como React */
  height: 4.5rem; /* más pequeño como React */
  object-fit: contain;
  z-index: 1;
}

.chat-window {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  width: calc(100vw - 2rem);
  max-width: 24rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.chat-window.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--accent) / 0.2);
  background: hsl(var(--card) / 0.5);
  padding: 1rem;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header-text h3 {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin: 0;
}

.chat-header-text p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.chat-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover {
  color: hsl(var(--foreground));
}

.chat-messages {
  height: 20rem;
  overflow-y: auto;
  padding: 1rem;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.chat-message-content {
  max-width: 12rem;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.chat-message.assistant .chat-message-content {
  border-bottom-left-radius: 0;
  background: hsl(var(--secondary) / 0.3);
}

.chat-message.user .chat-message-content {
  border-bottom-right-radius: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.chat-input {
  border-top: 1px solid hsl(var(--border) / 0.8);
  padding: 1rem;
}

.chat-form {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.chat-input-field:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.chat-send {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.chat-send:hover {
  background: hsl(var(--primary) / 0.9);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .content-wrapper {
    max-width: 50rem;
    gap: 2rem;
  }
  
  .header-logo {
    width: 120px;
    height: 120px;
  }
  
  .header-title {
    font-size: 3.5rem;
  }
  
  .header-description {
    font-size: 1.25rem;
    max-width: 45rem;
  }
  
  .gradient-button--lg {
    padding: 1.5rem 2.5rem;
    font-size: 1.125rem;
    min-height: 4rem;
  }
  
  .link-card {
    padding: 1.5rem;
  }
  
  .link-card-icon {
    padding: 0.75rem;
    width: 3rem;
    height: 3rem;
  }
  
  .link-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .link-card-text h3 {
    font-size: 1.25rem;
  }
  
  .link-card-text p {
    font-size: 1rem;
  }
  
  .social-button {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .social-button svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  
  .chat-toggle {
    width: 6rem;
    height: 6rem;
  }
  
  .chat-toggle img {
    width: 5.5rem;
    height: 5.5rem;
  }
}

/* Full HD Desktop (1080p) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .content-wrapper {
    max-width: 45rem;
    gap: 1.5rem;
  }
  
  .header-logo {
    width: 100px;
    height: 100px;
  }
  
  .header-title {
    font-size: 3rem;
  }
  
  .header-description {
    font-size: 1.125rem;
    max-width: 40rem;
  }
  
  .gradient-button--lg {
    padding: 1.375rem 2.25rem;
    font-size: 1.0625rem;
    min-height: 3.75rem;
  }
  
  .link-card {
    padding: 1.25rem;
  }
  
  .link-card-icon {
    padding: 0.625rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .link-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .link-card-text h3 {
    font-size: 1.125rem;
  }
  
  .link-card-text p {
    font-size: 0.9375rem;
  }
  
  .social-button {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .social-button svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .chat-toggle {
    width: 5.5rem;
    height: 5.5rem;
  }
  
  .chat-toggle img {
    width: 5rem;
    height: 5rem;
  }
}

/* HD Desktop (720p) */
@media (min-width: 992px) and (max-width: 1199px) {
  .content-wrapper {
    max-width: 40rem;
    gap: 1rem;
  }
  
  .header-logo {
    width: 90px;
    height: 90px;
  }
  
  .header-title {
    font-size: 2.75rem;
  }
  
  .header-description {
    font-size: 1rem;
    max-width: 35rem;
  }
  
  .gradient-button--lg {
    padding: 1.25rem 2rem;
    font-size: 1rem;
    min-height: 3.5rem;
  }
  
  .link-card {
    padding: 1rem;
  }
  
  .link-card-icon {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .link-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .link-card-text h3 {
    font-size: 1rem;
  }
  
  .link-card-text p {
    font-size: 0.875rem;
  }
  
  .social-button {
    width: 2.25rem;
    height: 2.25rem;
  }
  
.social-button svg {
  width: 1rem;
  height: 1rem;
}
  
  .chat-toggle {
    width: 5rem;
    height: 5rem;
  }
  
  .chat-toggle img {
    width: 4.5rem;
    height: 4.5rem;
  }
}
