/* =====================
   ALFA – header.css
   ===================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --alfa-yellow: #F5C800;
  --transition: 0.25s ease;
  --drawer-width: 280px;

  --glass-bg:     rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-blur:   18px;
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #fbf9ed ;
   min-height: 100vh;

}



header {
  width: 100%;
  padding: 20px 120px;
  border-radius: 0 0 20px 20px;
}

/* ══════════════════════════════════════
   HEADER STICKY + FONDO AL HACER SCROLL
══════════════════════════════════════ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition);
}

@media (min-width: 681px) {
  header.scrolled {
    background: #ffd90277;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* ── LOGO ── */
.logo {
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ── PÍLDORA CENTRAL glassmorphism ── */
.nav-pill {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-pill ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 6px 10px;
  box-shadow: var(--glass-shadow);
}

.nav-pill ul li a {
  display: block;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-pill ul li a:hover {
  background: rgba(255, 255, 255, 0.50);
  color: rgba(50, 30, 0, 1);
}

/* ── PÍLDORA REDES SOCIALES (amarilla) ── */
.pill-redes {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: var(--alfa-yellow);
  color: rgba(70, 48, 0, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 50px;
  padding: 11px 24px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(245, 200, 0, 0.45);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pill-redes:hover {
  box-shadow: 0 6px 26px rgba(245, 200, 0, 0.65);
  transform: scale(1.04);
}

/* Ocultar elementos móvil en desktop */
.hamburger    { display: none; }
.mobile-menu  { display: none; }
.drawer-overlay { display: none; }

/* ══════════════════════════════════════
   DROPDOWN REDES SOCIALES
══════════════════════════════════════ */

.pill-redes-wrapper {
  flex-shrink: 0;
  position: relative;
}

/* Convertir <a> en <button> manteniendo el mismo look */
.pill-redes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alfa-yellow);
  color: rgba(70, 48, 0, 0.9);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 50px;
  padding: 11px 24px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(245, 200, 0, 0.45);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pill-redes:hover {
  box-shadow: 0 6px 26px rgba(245, 200, 0, 0.65);
  transform: scale(1.04);
}

/* Flecha — rota al abrir */
.pill-redes-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  /* tiñe el SVG del color del texto */
  filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(600%) hue-rotate(10deg);
}

.pill-redes[aria-expanded="true"] .pill-redes-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.redes-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;

  /* Estado cerrado */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 50;
}

.redes-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ítems del dropdown */
.redes-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.redes-item:hover {
  background: rgba(255, 255, 255, 0.50);
}

.redes-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (min-width: 681px) {
  header.scrolled .nav-pill ul {
    background: rgba(251, 249, 237, 0.174);
    border-color: rgba(251, 249, 237, 0.35);
  }

  header.scrolled .pill-redes {
    border: 1px solid rgba(50, 30, 0, 0.325);
  }
}
/* ══════════════════════════════════════
   FAB FLOTANTE — REDES SOCIALES
══════════════════════════════════════ */

.fab-wrapper {
  position: fixed !important;
  bottom: 32px;
  right: 32px;
  z-index: 9999; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  
  /* Transición suave para ocultar/mostrar */
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* Estado oculto cuando el menú móvil está abierto */
.fab-wrapper.menu-open {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

/* ── Botón principal ── */
.fab-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--alfa-yellow);
  box-shadow: 0 4px 18px rgba(245, 200, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(245, 200, 0, 0.70);
}

.fab-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(600%) hue-rotate(10deg);
}

.fab-btn[aria-expanded="true"] .fab-icon {
  transform: rotate(90deg);
}

/* ── Botón de Audio ── */
.audio-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: white; /* Color contrastante o blanco premium */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  color: var(--alfa-yellow);
}

.audio-control-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.2);
}

.audio-control-btn.playing {
  background: var(--alfa-yellow);
  color: #463000;
  box-shadow: 0 4px 18px rgba(245, 200, 0, 0.55);
}

.audio-control-btn svg {
  width: 20px;
  height: 20px;
}

/* Animación de ondas si está sonando (opcional para premium feel) */
@keyframes pulse-audio {
  0% { box-shadow: 0 0 0 0 rgba(245, 200, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 200, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 200, 0, 0); }
}

.audio-control-btn.playing:not(.muted) {
  animation: pulse-audio 2s infinite;
}

/* ── Lista de iconos ── */
.fab-social {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  /* Estado cerrado */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.fab-social.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Cada ítem ── */
.fab-social .icon-content {
  position: relative;
}

.fab-social .icon-content .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.fab-social .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.fab-social .link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #4d4d4d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.fab-social .link:hover {
  box-shadow: 3px 2px 45px 0px rgba(0, 0, 0, 0.12);
}

.fab-social .link svg {
  width: 26px;
  height: 26px;
}

/* Colores hover por red */
.fab-social .link[data-social="facebook"]:hover  { color: #1877f2; }
.fab-social .link[data-social="instagram"]:hover { color: #e1306c; }
.fab-social .link[data-social="tiktok"]:hover    { color: #010101; }

/* En móvil ocultar el wrapper igual que antes */
@media (max-width: 680px) {
  .pill-redes-wrapper { display: none; }
    .mobile-menu {
    overflow: hidden;   
  }

  .mobile-menu ul {
    overflow: hidden;  
  }


}


/* ════════════════════════════════════════
   MÓVIL (≤ 680px)
════════════════════════════════════════ */
@media (max-width: 680px) {

  header {
    padding: 16px;
  }

  /* Nav horizontal: logo | espacio | hamburger */
  .nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0 16px;
    height: 68px;
    box-shadow: var(--glass-shadow);
    gap: 0;
  }

  .logo img { height: 42px; }

  /* Ocultar píldora central y redes en móvil */
  .nav-pill    { display: none; }
  .pill-redes  { display: none; }

  /* ── HAMBURGER ── */
  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    transition: background var(--transition);
  }

  .hamburger:hover { background: rgba(255,255,255,0.35); }

  .hamburger img {
    width: 26px;
    height: 26px;
    filter: brightness(0) saturate(100%) invert(98%) sepia(22%) saturate(96%) hue-rotate(351deg) brightness(103%) contrast(95%);
  }

  /* ── OVERLAY ── */
  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    visibility: hidden;
    transition: background 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
  }

  .drawer-overlay.open {
    background: rgba(0,0,0,0.28);
    visibility: visible;
  }

  /* ── DRAWER lateral derecho ── */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: var(--drawer-width);
    height: 100dvh;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255,255,255,0.3);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    z-index: 2001;
    flex-direction: column;
    padding: 32px 0 40px;
  }

  .mobile-menu.open { transform: translateX(0); }

  .drawer-close {
    align-self: flex-end;
    margin: 0 20px 24px;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
  }

  .drawer-close img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(98%) sepia(22%) saturate(96%) hue-rotate(351deg) brightness(103%) contrast(95%);
  }

  .drawer-close:hover { background: rgba(255,255,255,0.55); }

  .mobile-menu ul {
    list-style: none;
    flex: 1;
  }

  .mobile-menu ul li {
    border-bottom: 1px solid rgb(255, 255, 255);
  }

  .mobile-menu ul li:first-child {
    border-top: 1px solid rgb(255, 255, 255);
  }

  .mobile-menu ul li a {
    display: block;
    padding: 18px 28px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
  }

  .mobile-menu ul li a:hover {
    background: rgba(255,255,255,0.35);
    color: rgba(255, 255, 255, 0.82);
    padding-left: 36px;
  }
}

/* =========================================
   FOOOTER
   ========================================= */
.main-footer {
  background: #012026;
  border-top: 1px solid #c9a84c;
  padding: 2rem 1rem 1.5rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.92;
  filter: brightness(1.1);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social a {
  color: #c9a84c;
  text-decoration: none;
  font-family: 'Trebuchet MS', 'Gill Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.footer-social a:hover {
  color: #e8c96a;
  opacity: 1;
}

.footer-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #c9a84c;
  opacity: 0.4;
}

.footer-copy {
  font-family: 'Trebuchet MS', 'Gill Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ── TABLET 768px+ ── */
@media (min-width: 768px) {
  .main-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-logo { order: 1; }
  .footer-social { order: 2; }

  .footer-copy {
    order: 3;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding-top: 1rem;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

/* ── DESKTOP 1024px+ ── */
@media (min-width: 1024px) {
  .main-footer {
    padding: 2.5rem 2rem 2rem;
  }

  .footer-logo img {
    height: 52px;
  }

  .footer-social a {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    gap: 1rem;
  }
}