/* aevents.us - Light Palette Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@200;300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --surface-radius: 16px;
  --surface-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  --button-radius: 9999px;

  --color-gold: #9d7f57;
  --color-gold-light: #c5a880;
  --color-gold-dark: #7a5f39;
  --color-light-bg: #ffffff;
  --color-light-surface: #f8f9fa;
  --color-light-card: #ffffff;
  --color-light-border: #e5e7eb;
}

:where(html, body) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  overflow-x: clip;
  max-width: 100%;
  scroll-behavior: smooth;
}

/* ==========================================================================
   Unified Surface & Button Architecture
   ========================================================================== */

/* Universal surface classes for cards, panels, and modals */
.surface-card,
.surface-panel,
.surface-modal,
.surface-unified {
  border-radius: var(--surface-radius) !important;
  box-shadow: var(--surface-shadow) !important;
  border: none !important;
}

/* Universal action button radius */
.btn-action,
.btn-unified {
  border-radius: var(--button-radius) !important;
}

/* Target modal dialogs explicitly */
.product-modal-dialog,
div[id^="modal-"] > div.bg-white,
div[id^="modal-portal-"] > div.bg-white,
div[id^="modal-inv-"] > div.bg-white,
div[id$="-modal"] > div.bg-white {
  border-radius: var(--surface-radius) !important;
  box-shadow: var(--surface-shadow) !important;
  border: none !important;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 0.3s ease-out, opacity 0.25s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1rem !important;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Form inputs styling */
input, select, textarea {
  color-scheme: light;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 2px rgba(157, 127, 87, 0.25) !important;
}

/* Fix iOS Safari date input sizing, width overflow, and text alignment */
input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.3em;
}

/* Prevent iOS Safari from automatically zooming into the page on form focus */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Page Preloader Progress Ring */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader-progress-ring {
  transition: stroke-dashoffset 0.2s ease-out;
}

/* ==========================================================================
   Cronología
   ========================================================================== */

/* ==========================================================================
   Admin Left Sidebar & Mobile Navigation
   ========================================================================== */
html, body {
  overflow-x: clip !important;
}

#admin-header.sticky,
#admin-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  border: none !important;
  box-shadow: none !important;
}

#admin-brand-logo {
  filter: none !important;
  opacity: 1 !important;
}

#admin-sidebar-nav {
  align-self: stretch !important;
}

#admin-sidebar-nav > div {
  position: sticky !important;
  top: 6rem !important; /* 96px: 32px below 64px sticky header */
  z-index: 30 !important;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#admin-sidebar-nav > div::-webkit-scrollbar {
  display: none;
}

#btn-admin-mobile-nav-visual {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#icon-admin-mobile-nav-plus {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

