/*
Theme Name: finapilates
Author: finapilates
Author URI: 
Theme URI: 
Tags: full-site-editing
Text Domain: finapilates
Requires at least: 6.1
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Generated on fullsiteediting.com. No code version.
*/

/* =====================================================
   1. HEADER
===================================================== */
.site-header {
  top: 52px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: transparent;
  color: #ffffff;
  box-sizing: border-box;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  position: fixed;
  top: 42.3px;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  color: var(--wp--preset--color--contrast);
}

@media (max-width: 768px) {
  .wp-site-blocks > .site-header {
    margin-block-start: 0px!important;
  }
}

.site-header .wp-block-navigation a {
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.site-header:not(.is-scrolled) .wp-block-navigation a:hover {
  color: var(--wp--preset--color--accent) !important;
}

.site-header.is-scrolled .wp-block-navigation a:hover {
  color: var(--wp--preset--color--foreground) !important;
}

.site-header .wp-block-button__link {
  font-weight: 500 !important;
  transition: opacity 0.2s ease !important;
}

.site-header .wp-block-button__link:hover {
  opacity: 0.85 !important;
}


/* === MARQUEE BAR === */
.marquee-bar {
    background-color: #e8e2d2;
  color: #2d2d2d;
  padding: 12px 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 101;
}

.marquee-inner {
  --gap: 40px;
  display: flex;
  gap: var(--gap);
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  min-width: 100%;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--wp--preset--font-family--josefin-sans);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--gap))); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content { animation: none; }
}

.wp-block-navigation__responsive-container.is-menu-open {
  z-index: 200 !important;
  top: 0 !important;
  height: 100vh !important;
  position: fixed !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 60px !important;
}

/* Menú abierto sin scroll - debajo del marquee */
body:not(:has(.site-header.is-scrolled)) .wp-block-navigation__responsive-container.is-menu-open {
  top: 43.2px !important;
}

/* Menú abierto con scroll - desde arriba */
body:has(.site-header.is-scrolled) .wp-block-navigation__responsive-container.is-menu-open {
  top: 0 !important;
}
/* =====================================================
   2. RESPONSIVE - Mostrar/Ocultar
===================================================== */
@media (max-width: 768px) {
  .hide-m {
    display: none !important;
  }

  .site-header {
    top: 64px;
    padding-left: 40px !important;
    padding-right: 0px !important;
    height: 60px !important;
  }
  
  .site-header.is-menu-open {
    top: 43.2px;
  }
  
  .site-header.is-scrolled {
    top: 43.2px!important;
  }
}

@media (min-width: 769px) {
  .hide-d {
    display: none !important;
  }
}

/* =====================================================
   3. HERO
===================================================== */
.wp-block-cover {
  position: relative !important;
  overflow: hidden !important;
}

.hero-separator {
  width: 50% !important;
  margin-left: 0 !important;
}

@media (max-width: 768px) {
  .wp-block-cover h1,
  .hero-section h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
    line-height: 1.2 !important;
  }

  .wp-block-cover h2,
  .wp-block-cover__inner-container h2 {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.2 !important;
  }

  .wp-block-cover p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .wp-block-cover__inner-container,
  .hero-section .wp-block-cover__inner-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  .wp-block-cover .has-global-padding {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .wp-block-cover,
  .wp-block-cover__image-background {
    border-radius: 0 !important;
  }

  .wp-block-group.hero-section {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* =====================================================
   4. ABOUT IMAGE
===================================================== */
.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .about-image img {
    height: 400px;
  }
}

/* =====================================================
   5. FOOTER
===================================================== */
.wp-block-template-part[data-slug="footer"] > div,
.wp-block-template-part[data-slug="footer"] .wp-block-group {
  border-radius: 0 !important;
}

.wp-block-template-part[data-slug="footer"] {
  background: #2d2d2d;
  display: block;
}

.footer-nav a,
.footer-nav .wp-block-navigation-item__content {
  color: #b0b0b0 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.footer-nav a:hover {
  color: #ffffff !important;
}

/* =====================================================
   6. HOVER - Botones
===================================================== */
.wp-block-button__link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  opacity: 0.9 !important;
}

.wp-block-button__link:active {
  transform: translateY(0px) !important;
}

/* =====================================================
   7. HOVER - Links de navegación
===================================================== */
.wp-block-navigation a {
  position: relative;
}

.wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after {
  width: 100%;
}

/* =====================================================
   8. HOVER - Feature cards
===================================================== */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}

/* =====================================================
   9. HOVER - Stats del hero
===================================================== */
@media (max-width: 768px) {
  .hero-stats {
      gap: 16px!important;
      flex-direction: column !important;
      justify-content: flex-start;
      align-items: flex-start;
  }
  
  .hero-stats .wp-block-column {
    width: 100% !important;
    flex-basis: auto !important;
  }
  
  .hero-stats .wp-block-column {
    text-align: left !important;
  }
  
  .hero-stats .wp-block-column * {
    text-align: left !important;
  }
}


.hero-stat {
  position: relative;
  cursor: default;
  border-radius: 12px;
  padding: 12px 16px;
  transition: transform 0.3s ease !important;
}

.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-3px) !important;
}

.hero-stat:hover::before {
  opacity: 1;
  transform: scale(1);
}

.hero-stat:hover h2,
.hero-stat:hover h3 {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}



/* =====================================================
   10. HOVER - Cards Pilates Mat (spotlight)
===================================================== */
.pilates-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.pilates-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}

.pilates-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 161, 149, 0.2) 0%, transparent 70%);
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.pilates-card:hover::before {
  opacity: 1;
}

/* =====================================================
   11. QUOTE SECTION
===================================================== */
.quote-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-highlight {
  position: relative;
  display: inline-block;
}

.quote-highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--primary);
  transition: width 0.6s ease 0.3s;
}

.quote-highlight.visible::after {
  width: 100%;
}

@keyframes pulse-color {
  0%, 100% { color: #2d2d2d; }
  50% { color: #a6a195; }
}

.quote-section h4 .quote-word.visible {
  animation: pulse-color 3s ease-in-out infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
    text-shadow: none;
  }
  92% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 #a6a195;
  }
  94% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 #d9e0ba;
  }
  96% {
    transform: translate(-1px, 2px);
    text-shadow: 1px 0 #a6a195;
  }
  98% {
    transform: translate(1px, -1px);
    text-shadow: -1px 0 #d9e0ba;
  }
}

.quote-section h4 {
  animation: glitch 5s ease-in-out infinite;
}

/* =====================================================
   ZOOM IMAGE - Efecto hover en imágenes
===================================================== */
.zoom-image {
  overflow: hidden;
  position: relative;
}

.zoom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
  will-change: transform;
}

.zoom-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 1.5s ease;
  pointer-events: none;
}

.zoom-image:hover img {
  transform: scale(1.08);
}

.zoom-image:hover::after {
  background-color: rgba(0, 0, 0, 0.15);
}

/* === VIDEOS SECTION === */
.videos-row {
  align-items: stretch !important;
  height: 500px !important;
  max-height: 500px !important;
  overflow: hidden !important;
}

.videos-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-height: 500px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.pilates-heading {
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  font-size: 48px !important;
  height: 460px !important;
  line-height: 1 !important;
  margin: auto !important;
  overflow: hidden !important;
}

.videos-row video {
  object-fit: cover !important;
  height: 500px !important;
}

.videos-row video::-webkit-media-controls {
  display: none !important;
}

/* Fix: wpautop de WP envuelve span/svg en <p> dentro de las reviews */
.grw-review-inner > p {
  margin: 0 !important;
  padding: 0 !important;
}

.grw-review-inner > p > svg {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 16px !important;
  height: 16px !important;
}
.rpi-col6 > p:empty {
  display: none !important;
}

.carousel-expand {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.carousel-expand .swiper {
  width: 100% !important;
}
