/* ==========================================================================
   MIDSA Theme Styles
   ========================================================================== */

/* ---------- Smooth scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Base body ---------- */
body {
  background-color: #f7f4f1;
  color: #1e1c1a;
  font-family: 'Raleway', sans-serif;
}

/* ---------- Scrollbar hide utility ---------- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ---------- Hero carousel ---------- */
.hero-slide {
  opacity: 0;
  transition: opacity 800ms ease-in-out;
  position: absolute;
  inset: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 10;
}
.hero-slide-content {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 700ms 200ms;
}
.hero-slide.active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}
.hero-slide img {
  animation: heroZoom 6s ease-in-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* ---------- Megamenu animation ---------- */
@keyframes megaSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega-menu {
  animation: megaSlideDown 200ms ease-out;
}

/* ---------- Scroll animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Accordion ---------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content.open {
  max-height: 1000px;
}

/* ---------- Header sticky ---------- */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-sticky.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------- Mobile menu ---------- */
.mobile-menu-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu-panel.open {
  transform: translateX(0);
}

/* ---------- Content lists (Tailwind preflight resets these) ---------- */
main ul, section ul, article ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
main ol, section ol, article ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
main li, section li, article li {
  margin-bottom: 0.35em;
}

/* ---------- Legal page typography ---------- */
.midsa-legal-content h2 {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #1e1c1a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.midsa-legal-content h3 {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #1e1c1a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.midsa-legal-content h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e1c1a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.midsa-legal-content p {
  margin-bottom: 1rem;
}
.midsa-legal-content a {
  color: #903245;
  text-decoration: underline;
}
.midsa-legal-content a:hover {
  color: #7a2a3b;
}
.midsa-legal-content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.midsa-legal-content ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.midsa-legal-content li {
  margin-bottom: 0.4em;
}
.midsa-legal-content blockquote {
  border-left: 3px solid #d0bebe;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #364153;
  font-style: italic;
}
.midsa-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.midsa-legal-content th,
.midsa-legal-content td {
  border: 1px solid #d0bebe;
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}
.midsa-legal-content th {
  background-color: #f0ebe7;
  font-weight: 600;
}
.midsa-legal-content hr {
  border: none;
  border-top: 1px solid #d0bebe;
  margin: 2rem 0;
}

/* ---------- Placeholder images ---------- */
.img-placeholder {
  background-color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ---------- MIDSA Kids styles (infantil) ---------- */
.font-kids {
  font-family: 'Pacifico', cursive;
}

.bg-kids-teal {
  background-color: #87c1b4;
}

.text-pink {
  color: #e24889;
}

.bg-pink {
  background-color: #e24889;
}

.bg-kids-yellow {
  background-color: #fdc700;
}
