/* ==========================================================================
   ARTE Y VIDA CON LAURA - HEADER STICKY DINÁMICO CON LOGO EN EL CENTRO
   ========================================================================== */
:root {
  --navy: #063866;
  --deep: #032d54;
  --sea: #087da1;
  --foam: #e7f5f7;
  --sand: #fff7ef;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

img, svg, video, iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

/* Header Sticky Universal (Acompaña el desplazamiento) */
header, .site-header, .head {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0, 30, 60, 0.05);
  border-bottom: 1px solid rgba(200, 220, 230, 0.45);
  transition: padding 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background 0.28s ease;
  width: 100%;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Barra superior con Logo centrado */
.header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  position: relative !important;
  text-align: center !important;
}

.logo-wrap, header a:has(.logo), .site-header a:has(.logo), .head a:has(.logo) {
  display: inline-block !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-decoration: none !important;
}

header .logo, .site-header .logo, .head .logo {
  display: block !important;
  margin: 0 auto !important;
  height: auto !important;
  transition: all 0.25s ease !important;
}

header .logo:hover, .site-header .logo:hover, .head .logo:hover {
  transform: scale(1.03);
}

/* Estado Scrolled al desplazar la página */
header.scrolled, .site-header.scrolled, .head.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 5px 22px rgba(2, 43, 80, 0.11) !important;
  border-bottom-color: rgba(180, 205, 220, 0.65);
}

/* Botón Hamburguesa Animado */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c4d6df;
  border-radius: 8px;
  background: #f4f9fb;
  color: #063866;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  touch-action: manipulation;
}

.menu-toggle:hover {
  background: #e7f5f7;
  border-color: #087da1;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: inline-block;
  position: relative;
  pointer-events: none;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2.5px;
  background-color: #063866;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), top 0.22s ease, opacity 0.22s ease, background-color 0.22s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -6px;
}

.hamburger-inner::after {
  bottom: -6px;
}

/* Animación a '✕' cuando el menú está abierto */
.menu-toggle.is-active .hamburger-inner {
  background-color: transparent;
}

.menu-toggle.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #087da1;
}

.menu-toggle.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: #087da1;
}

.button, .small-button, .btn, .download, .cta {
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.course-video, .video {
  max-width: 100%;
}

/* ==========================================================================
   PANTALLAS DE ESCRITORIO (>= 1025px) - Logo en centro y enlaces centrados abajo
   ========================================================================== */
@media (min-width: 1025px) {
  header, .site-header, .head {
    padding: 10px 24px 9px !important;
    gap: 6px !important;
  }
  header.scrolled, .site-header.scrolled, .head.scrolled {
    padding: 5px 24px 6px !important;
    gap: 3px !important;
  }
  header .logo, .site-header .logo, .head .logo {
    width: 98px !important;
  }
  header.scrolled .logo, .site-header.scrolled .logo, .head.scrolled .logo {
    width: 68px !important;
  }
  header .menu-toggle, .site-header .menu-toggle, .head .menu-toggle {
    display: none !important;
  }
  header .nav, .site-header .nav, .head .nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(6px, 1.3vw, 20px) !important;
    padding: 0 !important;
    border: 0 !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    box-shadow: none !important;
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
  }
  header .nav a, .site-header .nav a, .head .nav a {
    padding: 6px clamp(8px, 0.85vw, 12px) !important;
    border-radius: 6px;
    font-size: clamp(0.82rem, 0.88vw, 0.92rem) !important;
    font-weight: 700 !important;
    color: #3d4f5f !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  header .nav a:hover, .site-header .nav a:hover, .head .nav a:hover {
    color: var(--sea, #087da1) !important;
    background: rgba(8, 125, 161, 0.08) !important;
    transform: translateY(-2px);
  }
  header .nav a[aria-current="page"], .site-header .nav a[aria-current="page"], .head .nav a[aria-current="page"] {
    color: var(--sea, #087da1) !important;
    background: rgba(8, 125, 161, 0.1) !important;
  }
}

/* ==========================================================================
   TABLETS Y MÓVILES (<= 1024px) - Logo en centro y botón a la derecha
   ========================================================================== */
@media (max-width: 1024px) {
  header, .site-header, .head {
    padding: 8px 18px !important;
  }
  header.scrolled, .site-header.scrolled, .head.scrolled {
    padding: 6px 18px !important;
  }
  .header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
  }
  header .logo, .site-header .logo, .head .logo {
    width: clamp(76px, 15vw, 90px) !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  header.scrolled .logo, .site-header.scrolled .logo, .head.scrolled .logo {
    width: clamp(64px, 12vw, 74px) !important;
  }
  header .menu-toggle, .site-header .menu-toggle, .head .menu-toggle {
    display: inline-flex !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  header .nav, .site-header .nav, .head .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
    padding: 0 16px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 16px 32px rgba(2, 43, 80, 0.12) !important;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    margin-top: 8px;
    gap: 0 !important;
    order: 3 !important;
  }
  header .nav.is-open, .site-header .nav.is-open, .head .nav.is-open {
    max-height: 82vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 10px 14px 18px !important;
  }
  header .nav a, .site-header .nav a, .head .nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 46px !important;
    padding: 11px 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #063866 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #edf3f6 !important;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease !important;
  }
  header .nav a:last-child, .site-header .nav a:last-child, .head .nav a:last-child {
    border-bottom: 0 !important;
  }
  header .nav a:hover, header .nav a:active,
  .site-header .nav a:hover, .site-header .nav a:active,
  .head .nav a:hover, .head .nav a:active {
    background: #e7f5f7 !important;
    color: #087da1 !important;
    padding-left: 20px !important;
  }
  header .nav a[aria-current="page"], .site-header .nav a[aria-current="page"], .head .nav a[aria-current="page"] {
    background: #e7f5f7 !important;
    color: #087da1 !important;
    font-weight: 700 !important;
  }
  .hero-grid, .about .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero {
    padding: 46px 0 67px;
  }
  .hero-copy {
    padding: 27px 22px;
  }
  .hero-art {
    display: grid;
    place-items: center;
    min-height: auto;
    margin: 15px auto 0;
  }
  .hero-art img {
    width: min(290px, 85vw);
    aspect-ratio: 683 / 1024;
    border: 10px solid #fff;
    box-shadow: 10px 10px 0 #052c56;
  }
  .book-grid, .course-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .book img {
    height: 320px;
  }
  .section {
    padding: 56px 0;
  }
  .about .wrap {
    width: min(100% - 42px, 1120px);
  }
  .quote {
    font-size: 1.16rem;
  }
}

/* ==========================================================================
   PANTALLAS PEQUEÑAS (MÓVILES COMPACTOS <= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
  }
  .cta-row .button {
    width: 100%;
    text-align: center;
  }
  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.2rem);
  }
  .section, .wave {
    padding-left: 0;
    padding-right: 0;
  }
  .book, .course, .card, .intro, .section {
    min-width: 0;
  }
  .viewer-top .download {
    width: 100%;
    text-align: center;
  }
  .magazine iframe {
    min-height: 340px !important;
  }
}


/* Universal Footer & Social Media CSS */
footer, .site-footer {
  background: #022b50 !important;
  color: #d6e4ec !important;
  padding: 36px 20px 28px !important;
  text-align: center !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
}
footer a, .site-footer a {
  color: #d6e4ec !important;
  text-decoration: none !important;
  transition: color .2s ease !important;
}
footer a:hover, .site-footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}
.footer-links {
  margin-bottom: 16px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  font-size: 0.9rem !important;
}
.footer-links a {
  color: #d6e4ec !important;
  text-decoration: none !important;
}
.footer-links a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}
.socials, .social {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  padding: 0 !important;
}
.socials a, .social a {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.socials a:hover, .social a:hover {
  background: #fff !important;
  color: #022b50 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}
.socials a svg, .social a svg {
  width: 19px !important;
  height: 19px !important;
  fill: currentColor !important;
  display: block !important;
}
.footer-copy, .copyright {
  color: #9cb5c5 !important;
  font-size: 0.82rem !important;
  margin-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 14px !important;
}
