/* -------------------------------------------------------------------
   IRENE LAMELAS — FOTOGRAFÍA PROFESIONAL
   Light Theme (Fondo Blanco), Glassmorphism Header, Drawer & Swiper Styling
------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Resets & Touch Behavior */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  background-color: #FFFFFF;
}

/* Glassmorphism Header (Light Mode) */
.header-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
}

/* Logo Sizing Adjustments */
.brand-logo-img {
  height: 40px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 46px;
    max-height: 52px;
  }
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

/* Mobile Side Drawer Transitions & Overlays (Light Theme) */
.mobile-drawer-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  z-index: 1101 !important;
  padding: 24px 20px 30px !important;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow-y: auto !important;
  border-left: 1px solid #E2E8F0 !important;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
}

.mobile-drawer-panel.open,
.mobile-drawer-panel.is-active,
.mobile-drawer-panel.translate-x-0 {
  transform: translateX(0) !important;
  -webkit-transform: translateX(0) !important;
}

.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 1050 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease !important;
}

.mobile-menu-overlay.opacity-100,
.mobile-menu-overlay.open,
.mobile-menu-overlay.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile Hamburger Button (Only visible on small devices when top nav is hidden) */
.mobile-menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1102;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

@media (min-width: 1280px) {
  .mobile-menu-trigger {
    display: none !important;
  }
}

.mobile-menu-trigger span {
  width: 100% !important;
  height: 2px !important;
  background-color: #334155 !important;
  border-radius: 2px !important;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6) !important;
  pointer-events: none !important;
  display: block !important;
}

.mobile-menu-trigger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg) !important;
  background-color: #0F172A !important;
}

.mobile-menu-trigger.active span:nth-child(2) {
  opacity: 0 !important;
  transform: translateX(-15px) !important;
}

.mobile-menu-trigger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg) !important;
  background-color: #0F172A !important;
}

/* Hero Swiper Customization */
.hero-swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4 / 1;
  min-height: 380px;
  max-height: 600px;
  position: relative;
}

@media (max-width: 1024px) {
  .hero-swiper {
    aspect-ratio: 2.3 / 1;
    min-height: 280px;
    max-height: 460px;
  }
}

@media (max-width: 640px) {
  .hero-swiper {
    aspect-ratio: 2.2 / 1;
    min-height: 160px;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .hero-swiper {
    aspect-ratio: 2.2 / 1;
    min-height: 150px;
    max-height: none;
  }
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease-out;
}

.hero-swiper .swiper-slide-active img {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
}

.hero-caption-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  color: #0F172A;
  max-width: 36rem;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.2);
}

.swiper-button-next, .swiper-button-prev {
  color: #0F172A !important;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  width: 48px !important;
  height: 48px !important;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: #0D5CBE;
  color: #FFFFFF !important;
  border-color: #0D5CBE;
  transform: scale(1.05);
}

.swiper-pagination-bullet {
  background: #0F172A !important;
  opacity: 0.4 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 28px !important;
  border-radius: 5px !important;
  background: #0D5CBE !important;
}

/* Scroll Fade-In Observer Animation */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
