/* Estilos personalizados - Transmitiendo */

:root {
  /* Colores de marca */
  --brand-primary: #8b5cf6;
  --brand-light: #a78bfa;
  --accent: #00bcd4;
  --success: #25d366;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
header {
  backdrop-filter: blur(10px);
}

header nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: var(--brand-primary);
}

header nav a span {
  font-size: 0.65rem;
  font-weight: 500;
}

/* Contenedores */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Botones base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, #6b3fbf, #7d4fd1);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(107, 63, 191, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--text-dark);
  border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: linear-gradient(135deg, #6b3fbf, #5a2fa8);
  color: white;
}

/* Encabezados */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

/* Animaciones suaves */
a, button {
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* BOTONES FLOTANTES */
#floatingBtns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#floatingBtns button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  color: white;
}

#floatingBtns button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#floatingBtns button:active {
  transform: scale(0.95);
}

/* TOOLTIPS VISUALES */
#floatingBtns button {
  position: relative;
}

#floatingBtns button::before {
  content: attr(title);
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}

#floatingBtns button:hover::before {
  opacity: 1;
}

/* FLECHA DEL TOOLTIP */
#floatingBtns button::after {
  content: '';
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 60;
}

#floatingBtns button:hover::after {
  opacity: 1;
}

/* Responsivo - reducir tamaño en móvil */
@media (max-width: 640px) {
  #floatingBtns {
    gap: 0.75rem;
  }

  #floatingBtns button {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  #floatingBtns button::before {
    right: 70px;
    font-size: 0.75rem;
  }

  #floatingBtns button::after {
    right: 65px;
  }
}

/* ===== MENÚ HAMBURGUESA ===== */

/* BOTÓN HAMBURGUESA */
#mobileMenuToggle {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

#mobileMenuToggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #1f2937;
  transition: all 0.3s ease;
  border-radius: 2px;
}

#mobileMenuToggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
  opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* NAVEGACIÓN - MÓVIL (OCULTO POR DEFECTO) */
#mobileMenu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* MOSTRAR MENÚ CUANDO ESTÁ ACTIVO */
#mobileMenu.active {
  display: flex !important;
}

/* LINKS DEL MENÚ */
#mobileMenu a {
  padding: 1rem 1.5rem;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* OCULTAR ICONOS EN MÓVIL */
#mobileMenu a i {
  display: none;
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a:hover {
  background-color: #f9fafb;
  color: var(--brand-primary);
}

#mobileMenu a i {
  font-size: 1.25rem;
}

#mobileMenu a span {
  font-size: 0.875rem;
}

/* DESKTOP - 1024PX+ */
@media (min-width: 1024px) {
  /* OCULTAR BOTÓN HAMBURGUESA EN DESKTOP */
  #mobileMenuToggle {
    display: none;
  }

  /* MOSTRAR NAVEGACIÓN EN DESKTOP COMO FILA */
  #mobileMenu {
    display: flex !important;
    position: static;
    width: auto;
    flex-direction: row;
    gap: 3rem;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  #mobileMenu a {
    padding: 0;
    border: none;
    gap: 0.25rem;
  }

  #mobileMenu a:hover {
    background-color: transparent;
  }

  /* MOSTRAR ICONOS EN DESKTOP */
  #mobileMenu a i {
    display: block;
    font-size: 1.5rem;
  }

  #mobileMenu a span {
    font-size: 0.65rem;
  }
}
