/*
Theme Name: Apple Premium
Version: 3.2
*/

:root {
  --ap-blue: #007aff;
  --ap-dark: #1d1d1f;
  --ap-border: #d2d2d7;
  --ap-bg: #f5f5f7;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--ap-bg) !important;
  color: var(--ap-dark);
  -webkit-font-smoothing: antialiased;
}

.op-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ap-border);
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
}

.op-nav__inner {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 52px !important;
}

.op-brand { 
  display: flex !important; 
  align-items: center !important; 
  text-decoration: none; 
  height: 52px !important;
}

.op-logo-img { height: 42px; width: auto; display: block; }

/* Menú y Acciones alineados por completo */
.op-menu, .op-actions {
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.op-menu { gap: 30px; }
.op-actions { gap: 20px; }

.op-menu a, .op-link {
  color: var(--ap-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  margin: 0 !important;
}

.logout-link {
  opacity: 0.5 !important;
}

.mobile-only-item { display: none; }

/* Botón Hamburguesa */
.op-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.burger-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  width: 100%;
  height: 1.2px;
  background: var(--ap-dark);
  transition: 0.3s ease;
}

.op-burger.active span:first-child { transform: translateY(5px) rotate(45deg); }
.op-burger.active span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* MÓVIL (ESTILO APPLE) */
@media (max-width: 834px) {
  .desktop-only { display: none !important; }
  .op-burger { display: block !important; }
  .mobile-only-item { display: block; }

  .op-menu-wrapper {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: 0;
    background: #fff;
    z-index: 9998;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .op-menu-wrapper.is-open { height: 100vh; }

  .op-menu {
    flex-direction: column !important;
    padding: 40px 48px !important;
    gap: 15px !important;
    height: auto !important;
    align-items: flex-start !important;
  }

  .op-menu a {
    font-size: 28px !important;
    font-weight: 600;
    opacity: 1;
    height: auto !important;
    padding: 10px 0;
    display: block;
  }
}