/*
Theme Name: Alibeti
Theme URI: https://alibeti.com
Author: KAI Studio
Description: Tema personalizado para la artista Alibeti - Alina Vázquez Arroyo Carstens
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: alibeti
*/

@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --teal-deep:       #165E50;
  --teal-mid:        #0E9577;
  --teal-vibrant:    #11C69E;
  --teal-mint:       #5AE1C4;
  --teal-pale:       #A1EEDD;
  --graphite:        #2A2D34;
  --white:           #FFFFFF;
  --off-white:       #F9F9F7;
  --text-primary:    #2A2D34;
  --text-muted:      #7A7E87;

  --font-main:       'Prata', Georgia, serif;
  --transition:      0.4s ease;
  --section-pad:     clamp(80px, 10vw, 140px);
  --max-width:       1280px;
  --radius:          2px;
  --bottom-nav-h:    68px; /* altura del menú inferior */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--off-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  /* Espacio para el bottom nav fijo */
  padding-bottom: var(--bottom-nav-h);
}

/* La front-page no necesita padding-bottom extra porque el hero ocupa 100vh */
body.front-page {
  padding-bottom: var(--bottom-nav-h);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem,   4.5vw, 4rem);   letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw,   2.6rem);  letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1rem,   1.8vw, 1.3rem);  }

p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-primary);
  line-height: 1.9;
}

/* ============================================================
   TOP BAR — franja animada superior (4 px)
   ============================================================ */
.alibeti-topbar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
    var(--teal-deep) 0%,
    var(--teal-mid) 20%,
    var(--teal-vibrant) 40%,
    var(--teal-mint) 60%,
    var(--teal-pale) 80%,
    var(--teal-vibrant) 100%
  );
  background-size: 300% 100%;
  animation: topbarShimmer 6s ease infinite;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

@keyframes topbarShimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ============================================================
   SITE HEADER — páginas interiores (flotante)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.site-logo img { height: 36px; width: auto; }

/* ── Hamburger (solo móvil si se necesita) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--graphite);
  transition: var(--transition);
}

/* ============================================================
   BOTTOM NAV — barra fija en la parte inferior de todas las páginas
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Franja de color en la parte superior del bottom nav */
.bottom-nav__strip {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg,
    var(--teal-deep) 0%,
    var(--teal-mid) 20%,
    var(--teal-vibrant) 40%,
    var(--teal-mint) 60%,
    var(--teal-pale) 80%,
    var(--teal-vibrant) 100%
  );
  background-size: 300% 100%;
  animation: topbarShimmer 6s ease infinite;
}

.bottom-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  height: calc(var(--bottom-nav-h) - 5px);
  padding: 0 20px;
}

/* Links del bottom nav */
.bottom-nav__link {
  font-family: var(--font-main);
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}

.bottom-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal-vibrant);
  transition: width var(--transition);
}

.bottom-nav__link:hover::after,
.bottom-nav__link.current::after { width: 100%; }

/* Logo central */
.bottom-nav__logo {
  display: flex;
  align-items: center;
}

.bottom-nav__logo img {
  height: 32px;
  width: auto;
  transition: opacity var(--transition);
}

.bottom-nav__logo:hover img { opacity: 0.7; }

/* ── Drop-UP de categorías (OBRA) ── */
.bottom-nav__item {
  position: relative;
}

.bottom-nav__dropup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(90,225,196,0.3);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.10);
  min-width: 180px;
  padding: 10px 0;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(6px);
}

.bottom-nav__item.open .bottom-nav__dropup,
.bottom-nav__item:focus-within .bottom-nav__dropup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav__dropup a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: background var(--transition), color var(--transition);
}

.bottom-nav__dropup a:hover {
  background: rgba(90,225,196,0.12);
  color: var(--teal-deep);
}

/* Pequeña flecha arriba del dropdown */
.bottom-nav__dropup::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.97);
  border-right: 1px solid rgba(90,225,196,0.3);
  border-bottom: 1px solid rgba(90,225,196,0.3);
  transform: translateX(-50%) rotate(45deg);
}

/* ============================================================
   HERO — FRONT PAGE
   ============================================================ */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slideshow { position: absolute; inset: 0; }

/* Capa exterior — crossfade simple con CSS transition */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active { opacity: 1; }

/* ── Capa interior — background-image + Ken Burns zoom-out ── */
.hero-slide__bg {
  position: absolute;
  inset: -8%; /* margen extra para el Ken Burns en desktop */
  background-size: cover;
  background-position: center center;
  transform: scale(1.12);
  will-change: transform;
}

.hero-slide__bg.ken-burns {
  animation: kenBurnsZoomOut 6.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes kenBurnsZoomOut {
  0%   { transform: scale(1.12); }
  100% { transform: scale(1.00); }
}

/* ── Mobile: sin zoom extra — el cover llena el viewport directamente ── */
@media (max-width: 768px) {
  .hero-slide__bg {
    inset: 0;           /* el div ocupa exactamente el hero, sin overflow */
    transform: scale(1.04); /* Ken Burns muy sutil: solo 4% de zoom inicial */
  }

  .hero-slide__bg.ken-burns {
    animation: kenBurnsZoomOutMobile 6.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
}

@keyframes kenBurnsZoomOutMobile {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1;
}

/* Gradiente inferior: de transparente a off-white 70% */
.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, transparent 0%, rgba(249,249,247,0.70) 100%);
  z-index: 2;
}

/* Logo centrado en el hero */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(260px, 36vw, 540px);
  aspect-ratio: 18 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.25));
}

/* Dots del slideshow */
.hero-dots {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 24px);
  right: 36px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.hero-dot.active {
  background: var(--teal-mint);
  transform: scale(1.4);
}

/* ============================================================
   SECCIÓN GENÉRICA (páginas interiores)
   ============================================================ */
.page-section {
  padding: var(--section-pad) 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-mid);
  display: block;
  margin-bottom: 18px;
}

/* ============================================================
   SECCIÓN BIOGRAFÍA
   ============================================================ */
.bio-section {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--section-pad) + 60px);
}

/* Fondo acuarela */
.bio-watercolor-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bio-watercolor-bg::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(90,225,196,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(17,198,158,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 60% 80%, rgba(161,238,221,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 10% 70%, rgba(14,149,119,0.10) 0%, transparent 70%);
  animation: watercolorFloat 18s ease-in-out infinite alternate;
}

.bio-watercolor-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 75% 45%, rgba(22,94,80,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 30% 60%, rgba(90,225,196,0.12) 0%, transparent 65%);
  animation: watercolorFloat 22s ease-in-out infinite alternate-reverse;
}

@keyframes watercolorFloat {
  0%   { transform: scale(1)    rotate(0deg)    translate(0,  0);   }
  33%  { transform: scale(1.08) rotate(1.5deg)  translate(2%, 3%);  }
  66%  { transform: scale(0.97) rotate(-1deg)   translate(-1%,2%);  }
  100% { transform: scale(1.04) rotate(2deg)    translate(1%,-2%);  }
}

.bio-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px var(--section-pad);
}

/* ── Bio intro: 2 columnas — título izq, texto derecha ── */
.bio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: end;
  text-align: left;
  margin: 0 0 80px;
}

.bio-intro__title {
  /* título más pequeño, alineado a izq */
}

.bio-intro__title .section-label {
  margin-bottom: 14px;
}

.bio-intro__title h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--teal-deep);
  line-height: 1.15;
  margin-bottom: 0;
}

.bio-intro__text {
  padding-bottom: 6px; /* alinear base con el título */
}

.bio-intro__text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  color: var(--graphite);
}

/* Bloques alternados texto/imagen */
.bio-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 110px;
}

.bio-block.reverse { direction: rtl; }
.bio-block.reverse > * { direction: ltr; }

.bio-block__text { padding: 20px 0; }

.bio-block__text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: var(--teal-deep);
  margin-bottom: 24px;
}

.bio-block__text p { margin-bottom: 18px; color: var(--graphite); }
.bio-block__text p:last-child { margin-bottom: 0; }

.bio-block__image { overflow: hidden; border-radius: var(--radius); }
.bio-block__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.bio-block__image:hover img { transform: scale(1.03); }
.bio-block__image--tall  { aspect-ratio: 3 / 4; }
.bio-block__image--wide  { aspect-ratio: 4 / 3; }

.bio-divider {
  width: 60px; height: 1px;
  background: var(--teal-mint);
  margin: 80px auto;
}

.bio-quote {
  max-width: 740px;
  margin: 0 auto 100px;
  text-align: center;
  padding: 60px 40px;
  border-top: 1px solid var(--teal-pale);
  border-bottom: 1px solid var(--teal-pale);
}

.bio-quote blockquote {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-family: var(--font-main);
  color: var(--teal-deep);
  line-height: 1.6;
  font-style: italic;
}

.bio-quote cite {
  display: block;
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* Video vertical 9:16 */
.bio-video-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 110px;
  flex-wrap: wrap;
}

.bio-video-container {
  width: clamp(240px, 26vw, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(22,94,80,0.12);
  background: var(--graphite);
  flex-shrink: 0;
}

.bio-video-container iframe,
.bio-video-container video {
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
}

.bio-video-text {
  max-width: 440px;
  padding-top: 40px;
  align-self: center;
}

.bio-video-text h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  color: var(--teal-deep);
  margin-bottom: 22px;
}

/* Formación académica */
.bio-education {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 60px;
  margin-bottom: 90px;
  border: 1px solid rgba(90,225,196,0.2);
}

.bio-education h2 { text-align: center; color: var(--teal-deep); margin-bottom: 48px; }

.bio-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 80px;
}

.bio-edu-item {
  border-bottom: 1px solid rgba(90,225,196,0.25);
  padding-bottom: 18px;
}

.bio-edu-item .year {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--teal-mid);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.bio-edu-item .title  { font-size: 0.98rem; color: var(--graphite); }
.bio-edu-item .place  { font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; }

/* Exposiciones */
.bio-expo { margin-bottom: 110px; }
.bio-expo h2 { text-align: center; color: var(--teal-deep); margin-bottom: 56px; }

.expo-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(161,238,221,0.4);
}

.expo-item__date { text-align: right; }

.expo-item__date .year {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--teal-pale);
  line-height: 1;
  display: block;
}

.expo-item__date .month {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-mid);
}

.expo-item__info h3 { color: var(--teal-deep); margin-bottom: 10px; }
.expo-item__info p  { color: var(--text-muted); font-size: 0.88rem; }

/* ============================================================
   SECCIÓN OBRA — WooCommerce archive
   ============================================================ */
.obra-section {
  padding-top: calc(var(--section-pad) + 60px);
  padding-bottom: var(--section-pad);
}

.obra-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.obra-header h1 { color: var(--teal-deep); margin-bottom: 16px; }

/* Filtros */
.obra-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding: 0 20px;
}

.obra-filter-btn {
  font-family: var(--font-main);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--teal-mint);
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
}

.obra-filter-btn:hover,
.obra-filter-btn.active {
  background: var(--teal-vibrant);
  border-color: var(--teal-vibrant);
  color: var(--white);
}

/* ── Grid de productos — 3 cols desktop / 2 cols mobile ── */
.woocommerce ul.products,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;               /* márgenes entre imágenes */
  padding: 0 32px !important;
  max-width: var(--max-width);
  margin: 0 auto !important;
  list-style: none !important;
}

/* Tarjeta de producto */
.woocommerce ul.products li.product,
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  border: none !important;
  padding: 0 !important;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.woocommerce ul.products li.product:hover,
.product-card:hover {
  box-shadow: 0 8px 32px rgba(22,94,80,0.12);
  transform: translateY(-3px);
}

/* Imagen 1:1 */
.woocommerce ul.products li.product a img,
.product-card a img {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.7s ease !important;
}

.woocommerce ul.products li.product:hover a img,
.product-card:hover a img {
  transform: scale(1.04);
}

/* ── Info debajo de la imagen: título + botón ── */
.product-card-footer {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
}

/* Título de la obra */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-card-footer__title {
  font-family: var(--font-main) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  color: var(--graphite) !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1;
}

/* Botón "Ver obra" */
.btn-ver-obra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--teal-vibrant);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition);
  flex-shrink: 0;
}

.btn-ver-obra:hover {
  background: var(--teal-deep);
  color: var(--white);
}

/* Ocultar precio y botón add-to-cart de WooCommerce */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { display: none !important; }

/* ============================================================
   SINGLE PRODUCT — página individual
   ============================================================ */
.single-product-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Imagen de fondo — anclada a la derecha, se "lee" de derecha a izquierda */
.single-product-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('https://alibeti.com/wp-content/uploads/single-product-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-attachment: fixed;
  pointer-events: none;
}

.single-product-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Gradiente de derecha a izquierda: imagen visible a la derecha, se desvanece a la izq */
  background: linear-gradient(to right, rgba(249,249,247,0.92) 0%, rgba(249,249,247,0.55) 50%, rgba(249,249,247,0.15) 100%);
}

/* Layout centrado */
.single-product-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(80px + 60px) 40px calc(var(--bottom-nav-h) + 60px);
  align-items: start;
}

/* Imagen sticky */
.single-product-image {
  position: sticky;
  top: 100px;
}

.single-product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Info */
.single-product-info { padding-top: 10px; }

.single-product-info .product-category {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-mid);
  display: block;
  margin-bottom: 16px;
}

.single-product-info h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  color: var(--teal-deep);
  margin-bottom: 32px;
  line-height: 1.2;
}

.single-product-info .product-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
}

.single-product-info .product-meta-table tr {
  border-bottom: 1px solid rgba(161,238,221,0.4);
}

.single-product-info .product-meta-table td {
  padding: 13px 0;
  font-family: var(--font-main);
  font-size: 0.88rem;
}

.single-product-info .product-meta-table td:first-child {
  color: var(--text-muted);
  width: 35%;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-product-info .product-meta-table td:last-child {
  color: var(--graphite);
}

.single-product-info .product-description {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(161,238,221,0.3);
}

.single-product-info .product-description p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--graphite);
}

.single-product-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Botones reutilizables */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--teal-vibrant);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.80rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-primary:hover { background: var(--teal-deep); color: var(--white); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: transparent;
  color: var(--graphite);
  font-family: var(--font-main);
  font-size: 0.80rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--teal-mint);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
}

.btn-secondary:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* ============================================================
   SECCIÓN CONTACTO
   ============================================================ */
.contact-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Imagen de fondo — anclada a la derecha, gradiente de derecha a izquierda */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://alibeti.com/wp-content/uploads/contact-bg.jpg');
  background-size: cover;
  background-position: right center;
}

.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(249,249,247,0.96) 0%, rgba(249,249,247,0.70) 50%, rgba(249,249,247,0.20) 100%);
}

/* Fondo de archivo de productos */
.archive-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('https://alibeti.com/wp-content/uploads/archive-bg.jpg');
  background-size: cover;
  background-position: right center;
  background-attachment: fixed;
  pointer-events: none;
}

.archive-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(249,249,247,0.97) 0%, rgba(249,249,247,0.80) 50%, rgba(249,249,247,0.40) 100%);
}

/* El contenido del archive queda por encima del fondo */
.obra-section {
  position: relative;
  z-index: 1;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--section-pad) + 60px) 40px var(--section-pad);
}

.contact-header {
  text-align: center;
  margin-bottom: 72px;
}

.contact-header h1 { color: var(--teal-deep); margin-bottom: 18px; }
.contact-header p  { color: var(--text-muted); font-size: 1.02rem; }

/* WhatsApp CTA */
.contact-whatsapp-block {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
  border-radius: 8px;
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 72px;
  box-shadow: 0 20px 60px rgba(22,94,80,0.2);
}

.contact-whatsapp-block p { color: rgba(255,255,255,0.8); margin-bottom: 8px; font-size: 0.83rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-whatsapp-block h2 { color: var(--white); margin-bottom: 34px; font-size: clamp(1.4rem, 2.8vw, 2.4rem); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 46px;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(37,211,102,0.35);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ea855;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.45);
}

.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

.contact-phone-display {
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 0.83rem;
  letter-spacing: 0.1em;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(161,238,221,0.5);
}

/* Formulario */
.contact-form { margin-bottom: 72px; }
.contact-form h3 { color: var(--teal-deep); margin-bottom: 32px; font-size: 1.35rem; }

.form-group { margin-bottom: 26px; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(90,225,196,0.4);
  font-family: var(--font-main);
  font-size: 0.98rem;
  color: var(--graphite);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--teal-vibrant); }
.form-group textarea { min-height: 110px; resize: vertical; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 56px;
  border-top: 1px solid rgba(161,238,221,0.4);
}

.contact-info-item .label {
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-mid);
  display: block;
  margin-bottom: 8px;
}

.contact-info-item .value { font-size: 0.98rem; color: var(--graphite); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.5);
  padding: 52px 40px 36px;
  text-align: center;
  /* Queda encima del bottom-nav gracias a z-index del nav */
  position: relative;
  z-index: 0;
}

.site-footer .footer-logo { margin: 0 auto 28px; height: 32px; opacity: 0.55; }

.site-footer nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 14px;
  transition: color var(--transition);
}

.site-footer nav a:hover { color: var(--teal-mint); }
.site-footer .footer-copy { margin-top: 28px; font-size: 0.72rem; letter-spacing: 0.05em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============================================================
   WOOCOMMERCE — Limpiar estilos por defecto
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--font-main);
  background: var(--teal-vibrant);
  color: var(--white);
  border-radius: var(--radius);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.80rem;
  padding: 12px 26px;
  border: none;
  transition: background var(--transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--teal-deep); color: var(--white); }

.woocommerce-breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 36px !important;
}

.woocommerce div.product .product_meta,
.woocommerce div.product form.cart { display: none !important; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024 px)
   ============================================================ */
@media (max-width: 1024px) {
  .bio-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bio-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-block.reverse { direction: ltr; }

  .single-product-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 640px;
  }

  .single-product-image {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

  .bio-edu-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 28px; }
  .expo-item { grid-template-columns: 1fr; gap: 14px; }
  .expo-item__date { text-align: left; }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --bottom-nav-h: 60px;
  }

  .page-section,
  .bio-inner,
  .contact-inner { padding-left: 18px; padding-right: 18px; }

  /* Productos: 2 columnas en mobile */
  .woocommerce ul.products,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }

  /* ── Bottom nav: usar todo el ancho, letra más grande ── */
  .bottom-nav__inner {
    justify-content: space-evenly;
    gap: 0;
    padding: 0 6px;
  }
  .bottom-nav__logo img { height: 28px; }
  .bottom-nav__link {
    font-size: 0.75rem;      /* más grande que el 0.60rem anterior */
    letter-spacing: 0.08em;  /* menos espacio entre letras para que entren bien */
  }

  /* Bio intro: 1 columna en mobile */
  .bio-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }

  /* Video */
  .bio-video-wrap { flex-direction: column; align-items: center; gap: 36px; }
  .bio-video-container { width: min(270px, 75vw); }

  /* Bio education */
  .bio-education { padding: 28px 20px; }

  /* Contacto */
  .contact-whatsapp-block { padding: 36px 22px; }
  .btn-whatsapp { padding: 16px 32px; font-size: 0.88rem; }

  /* ── Reducir espacios muertos en archive y single product ── */

  /* Archive: sección, header y filtros mucho más compactos */
  .obra-section { padding-top: 68px; }
  .obra-header  { margin-bottom: 16px; }
  .obra-filters { margin-bottom: 18px; }

  /* Single product: padding-top mínimo para solo limpiar el header */
  .single-product-layout {
    padding-top: 72px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(var(--bottom-nav-h) + 28px);
    gap: 28px;
  }

  /* Footer */
  .site-footer { padding: 36px 18px 28px; }
}

@media (max-width: 480px) {
  .hero-logo { width: clamp(200px, 70vw, 320px); }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-ver-obra { align-self: stretch; justify-content: center; }

  .single-product-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; text-align: center; }
}
