/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
html {
  scroll-behavior: smooth;
}

/* =====================================================
   🔹 FLIP BOX (efecto giratorio con frente y reverso)
   ===================================================== */
.flip-box {
  perspective: 1000px;
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 40px;
}

.flip-box-front {
  background: #ffffff;
  color: #000;
  z-index: 2;
}

.flip-box-back {
  background: #333;
  color: #fff;
  transform: rotateY(180deg);
}

/* =====================================================
   🔹 FLIP BOX Miembros
   ===================================================== */
.flip-boxm {
  perspective: 1000px;
  width: 350px;
  height: 600px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.flip-box-innerm {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.flip-boxm:hover .flip-box-innerm {
  transform: rotateY(180deg);
}

.flip-box-frontm,
.flip-box-backm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 0px;
}

.flip-box-frontm {
  background: #ffffff;
  color: #000;
  z-index: 2;
}

.flip-box-backm {
  background: #333;
  color: #fff;
  transform: rotateY(180deg);
}

/* =====================================================
   🔹 ACCORDION
   ===================================================== */
.elementor-widget-n-accordion .e-n-accordion-item-title {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px #999999 solid;
}

/* =====================================================
   🔹 DIRECTIVA TABS
   ===================================================== */
.directiva-tabs {
  width: 100%;
  font-family: 'Prata', serif;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: flex;
  align-items: flex-start; 
  justify-content: flex-start;
}

.tab-buttons {
  margin-top: 20px;
  display: grid;
  gap: 20px 40px;
  font-family: 'Prata', serif;
}

.tab-buttons button {
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Prata', serif;
  transition: color 0.3s, transform 0.2s;
}

.tab-buttons .cargo {
  display: block;
  font-weight: 600;
  font-size: 18px;
  color: #111;
  margin-bottom: 3px;
}

.tab-buttons .nombre {
  display: block;
  font-size: 16px;
  color: #555;
}

.tab-buttons button.active {
  position: relative;
  padding-bottom: 6px;
}

.tab-buttons button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: #000;
}

.tab-buttons button.active .cargo,
.tab-buttons button.active .nombre {
  color: #000;
  font-weight: 700;
}

.tab-buttons button:hover {
  transform: translateX(5px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================================================
   🔹 TEXTO VERTICAL
   ===================================================== */
.vertical-text {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: mixed;
  -webkit-text-orientation: mixed;
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  white-space: nowrap;
  display: inline-block;
}

/* =====================================================
   🎨 HEADER PRINCIPAL AIA
   ===================================================== */
.aia-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 9999;
}

.aia-header.scrolled {
  background: #000;
}

.aia-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aia-logo img {
  height: 70px;
  transition: all 0.3s ease;
}

/* 🔹 Idioma + Hamburguesa */
.aia-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.aia-lang-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.aia-lang-switcher a.lang-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.aia-lang-switcher a.lang-link:hover {
  opacity: 0.7;
}

.aia-lang-switcher a.lang-link.active {
  font-weight: 700;
  border-bottom: 2px solid #fff;
}

.aia-header.scrolled .aia-lang-switcher a.lang-link {
  color: #fff;
}

.aia-menu-toggle img {
  height: 22px;
  padding-top: 3px;
  cursor: pointer;
}

/* =====================================================
   📱 MENÚ FULLSCREEN AIA
   ===================================================== */
.aia-nav-full {
  position: fixed;
  top: 0;
  left: -70%;
  width: 70%;
  height: 100vh;
  background-color: rgba(252, 252, 252, 0.9);
  transition: left 0.4s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 60px 40px;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
}

.aia-nav-full.active {
  left: 0;
}

/* Botón cerrar */
.aia-close {
  position: absolute;
  top: 25px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
  color: #000;
}

/* Título lateral */
.aia-menu-title {
  font-family: 'Prata', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #000;
}

/* Lista de menú */
.aia-nav-full ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aia-nav-full ul li {
  margin: 12px 0;
  border-bottom: 0.2px solid #000;
  padding-bottom: 8px;
}

.aia-nav-full ul li a {
  font-family: 'Helvetica Now', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: normal;
}

/* ✅ Ítems activos en negrita - SOLO en el nivel principal */
.aia-nav-full > ul > li.current-menu-item > a,
.aia-nav-full > ul > li.current_page_item > a,
.aia-nav-full > ul > li.current-menu-ancestor > a {
  font-weight: 800;
  color: #A37854 !important; /* 🎨 Color especial para página activa */
}

/* 🎨 Color hover para ítems principales */
.aia-nav-full > ul > li > a:hover {
  color: #A37854;
  transition: color 0.3s ease;
}

/* =====================================================
   📌 SUBMENÚS AIA
   ===================================================== */
.aia-nav-full ul ul.sub-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding-left: 15px;
  border-left: 0px solid rgba(255,255,255,0.3);
  transition: all 0.4s ease;
}

.aia-nav-full li.menu-item-has-children.open > ul.sub-menu {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

/* ✅ SUBÍTEMS - Tamaño más pequeño y SIN negrita */
.aia-nav-full ul.sub-menu li {
  border-bottom: none !important;
  padding-bottom: 8px;
  margin: 8px 0;
}

.aia-nav-full ul.sub-menu li a {
  font-size: 14px !important;
  font-weight: normal !important;
  padding-left: 5px;
  color: #999999; /* 🎨 Color gris claro para subítems inactivos */
  transition: color 0.3s ease;
}

/* ✅ Subítem ACTIVO por WordPress (páginas reales) */
.aia-nav-full ul.sub-menu li.current-menu-item a,
.aia-nav-full ul.sub-menu li.current_page_item a {
  font-weight: 700 !important; /* 🎨 Bold para subpágina activa */
  color: #A37854 !important;
}

/* 🎯 Ancla activa (detectada por JavaScript, sobreescribe WordPress) */
.aia-nav-full ul.sub-menu li.active-anchor a {
  color: #A37854 !important;
  font-weight: 700 !important; /* 🎨 Bold para ancla activa */
}

/* 🎨 Hover en subítems - Color especial + Bold */
.aia-nav-full ul.sub-menu li a:hover {
  color: #A37854 !important;
  font-weight: 700 !important; /* 🎨 Bold en hover */
}

/* =====================================================
   📌 FLECHAS EN EL MENÚ AIA
   ===================================================== */
.aia-nav-full .arrow-main {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  background: url("https://aia.whapruebas.com/wp-content/uploads/2025/09/flecha_aia.svg") no-repeat center center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.aia-nav-full li.open > a .arrow-main {
  transform: rotate(180deg);
}

.aia-nav-full .arrow-sub {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background: url("https://aia.whapruebas.com/wp-content/uploads/2025/09/flecha_aia.svg") no-repeat center center;
  background-size: contain;
}

/* Cambiar solo la flecha de "La Alpaca" */
#aiaNavFull #menu-item-2930 > a .arrow-main {
  background: url("https://aia.whapruebas.com/wp-content/uploads/2025/09/flecha_aia_alpaca.svg") no-repeat center center;
  background-size: contain;
  width: 16px;
  height: 16px;
}

#aiaNavFull #menu-item-2930.open > a .arrow-main {
  transform: rotate(180deg);
}

/* 🎨 Cambiar color de flecha cuando el ítem está activo */
.aia-nav-full > ul > li.current-menu-item > a .arrow-main,
.aia-nav-full > ul > li.current_page_item > a .arrow-main,
.aia-nav-full > ul > li.current-menu-ancestor > a .arrow-main {
  filter: brightness(0) saturate(100%) invert(54%) sepia(18%) saturate(1294%) hue-rotate(357deg) brightness(92%) contrast(84%);
  /* Este filtro convierte la flecha al color #A37854 */
}

/* =====================================================
   📱 RESPONSIVE - MÓVIL (max-width: 767px)
   ===================================================== */
@media (max-width: 767px) {
  /* Header */
  .aia-header-inner {
    padding: 5px 20px;
  }
  
  .aia-menu-toggle img {
    height: 20px;
    padding-top: 3px;
  }
  
  /* Menú fullscreen */
  .aia-nav-full {
    width: 70%;
    left: -70%;
    padding: 60px 30px;
  }
  
  .aia-nav-full ul li a {
    font-size: 16px;
  }
  
  .aia-nav-full ul.sub-menu li a {
    font-size: 12px !important;
  }
  
  .aia-menu-title {
    font-size: 24px;
  }
  
  .aia-close {
    right: 20px;
    font-size: 36px;
  }
  
  /* Flip boxes */
  .flip-box,
  .flip-boxm {
    height: 450px;
  }
  
  /* Tabs */
  .tab-buttons {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Texto vertical en móvil: horizontal */
  .vertical-text {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    transform: none;
    -webkit-transform: none;
  }
}

/* =====================================================
   📱 RESPONSIVE - TABLETS (768px - 1024px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Menú fullscreen */
  .aia-nav-full {
    width: 25%;
    left: -25%;
  }
  
  .aia-nav-full ul li a {
    font-size: 16px;
  }
  
  .aia-nav-full ul.sub-menu li a {
    font-size: 14px !important;
  }
  
  .aia-menu-title {
    font-size: 24px;
  }
  
  /* Flip boxes */
  .flip-box,
  .flip-boxm {
    width: 48%;
    margin: 1%;
  }
  
  /* Tabs */
  .tab-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   📱 RESPONSIVE - DESKTOP (min-width: 1025px)
   ===================================================== */
@media (min-width: 1025px) {
  /* Menú fullscreen */
  .aia-nav-full {
    width: 25%;
    left: -25%;
    padding: 60px 50px;
  }
  
  .aia-nav-full ul li a {
    font-size: 18px;
  }
  
  .aia-nav-full ul.sub-menu li a {
    font-size: 15px !important;
  }
  
  .aia-menu-title {
    font-size: 28px;
  }
  
  .aia-close {
    right: 30px;
  }
  
  /* Tabs */
  .tab-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}









/* =====================================================
   🌐 VISIBILIDAD POR IDIOMA (AIA)
   - ES (default): oculta los bloques .btn-en
   - EN (/en/):    oculta los bloques .btn-es
   ===================================================== */

/* Si el <html lang=""> cambia (ideal) */
html[lang^="es"] .btn-en { display: none !important; }
html[lang^="en"] .btn-es { display: none !important; }

/* Fallback si usamos clases en <body> (por JS) */
body.lang-es .btn-en { display: none !important; }
body.lang-en .btn-es { display: none !important; }







/* ===============================
   Submenú con animación suave
   =============================== */

/* Estado cerrado */
.aia-nav-full ul.sub-menu{
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  pointer-events: none;

  transition:
    max-height 520ms ease,
    opacity 320ms ease,
    transform 320ms ease;
}

/* Estado abierto (hover desktop o .open móvil) */
.aia-nav-full li.menu-item-has-children.open > ul.sub-menu,
.aia-nav-full li.menu-item-has-children:hover > ul.sub-menu{
  max-height: 800px;      /* ajusta si tu submenú es más largo */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Accesibilidad: respeta reduced motion */
@media (prefers-reduced-motion: reduce){
  .aia-nav-full ul.sub-menu{
    transition: none;
  }
}




/* =====================================================
   🔤 NORMALIZAR FONT-WEIGHT: Helvetica 300 → 400
   Cubre estilos inline que Elementor inyecta como style=""
   ===================================================== */
[style*="font-weight: 300"],
[style*="font-weight:300"] {
    font-weight: 400 !important;
}


/* =====================================================
   📝 BLOG ARCHIVE — shortcode [aia_blog]
   ===================================================== */

.aia-blog-wrapper {
    width: 100%;
}

/* ── Filtros por categoría ── */
.aia-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.aia-filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid #d8d8d8;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.aia-filter-btn:hover {
    border-color: #666;
    background: #666;
    color: #fff;
}

.aia-filter-btn.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

@media (max-width: 1024px) {
    .aia-blog-filters {
        gap: 8px;
        margin-bottom: 28px;
    }
    .aia-filter-btn {
        font-size: 11px;
        padding: 7px 14px;
    }
}

@media (max-width: 767px) {
    .aia-blog-filters {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }
    .aia-filter-btn {
        font-size: 11px;
        padding: 7px 14px;
        flex: 0 0 auto;
    }
}

/* ── Grid de posts ── */
.aia-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 50px 30px;
    align-items: stretch;
    transition: opacity 0.3s ease;
}

.aia-blog-grid.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Tarjeta ── */
.aia-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aia-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

/* Imagen */
.aia-post-card__img-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%; /* cuadrado 1:1 */
    overflow: hidden;
    background: #f0ece6;
}

.aia-post-card__no-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.aia-post-card__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: top !important;
    transition: transform 0.55s ease;
}

.aia-post-card:hover .aia-post-card__img {
    transform: scale(1.04);
}

.aia-post-card__no-img {
    background: #f0ece6;
}

/* Cuerpo */
.aia-post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 20px 20px;
    gap: 10px;
}

/* Categoría */
.aia-post-card__cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A37854;
}

/* Título */
.aia-post-card__title {
    font-family: 'Prata', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    color: #111;
}

.aia-post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aia-post-card__title a:hover {
    color: #A37854;
}

/* Extracto */
.aia-post-card__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

/* Footer (fecha + leer más) */
.aia-post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 0.5px solid #d8d8d8;
    margin-top: auto;
    flex-shrink: 0;
}

.aia-post-card__date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.05em;
}

.aia-post-card__more {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #A37854;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.aia-post-card__more:hover {
    opacity: 0.65;
}

/* ── Paginación ── */
.aia-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.aia-page-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    width: 42px;
    height: 42px;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    letter-spacing: 0.04em;
}

.aia-page-btn:hover {
    background: #666;
    border-color: #666;
    color: #fff;
}

.aia-page-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
    pointer-events: none;
}

.aia-page-prev,
.aia-page-next {
    font-size: 17px;
    letter-spacing: 0;
}

.aia-blog-empty {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #999;
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}

/* ── Responsive archive ── */
@media (max-width: 1024px) {
    .aia-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aia-blog-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 767px) {
    .aia-blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aia-blog-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .aia-post-card__title {
        font-size: 18px;
    }

    .aia-blog-pagination {
        margin-top: 40px;
    }
}




/* =====================================================
   📄 SINGLE POST — single.php
   ===================================================== */

.aia-single-post {
    min-height: 100vh;
    background: #fff;
}

/* Hero */
.aia-single-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    padding-top: 140px;
}

.aia-single-hero__img {
    width: 50%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    display: block;
}

@media (max-width: 767px) {
    .aia-single-hero__img {
        width: 100%;
        max-height: 55vh;
        object-fit: cover;
    }
}

/* Sin imagen destacada: espacio para el header fijo */
.aia-single-post.no-hero {
    padding-top: 110px;
}

/* Header siempre negro en el single post */
body.single .aia-header {
    background: #000 !important;
}

/* Contenedor de contenido */
.aia-single-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 40px 100px;
}

/* Meta (categoría · fecha) */
.aia-single-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aia-single-cat {
    color: #A37854;
    font-weight: 700;
}

.aia-single-sep {
    color: #ccc;
}

/* Título */
.aia-single-title {
    font-family: 'Prata', serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1.18;
    color: #111;
    margin: 0 0 36px;
}

/* Línea separadora */
.aia-single-divider {
    width: 56px;
    height: 2px;
    background: #A37854;
    margin-bottom: 44px;
}

/* Contenido del post */
.aia-single-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}

.aia-single-content p {
    margin-bottom: 26px;
}

.aia-single-content h2 {
    font-family: 'Prata', serif;
    font-size: 30px;
    font-weight: 400;
    color: #111;
    margin: 52px 0 20px;
    line-height: 1.25;
}

.aia-single-content h3 {
    font-family: 'Prata', serif;
    font-size: 23px;
    font-weight: 400;
    color: #111;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.aia-single-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 32px 0 12px;
}

.aia-single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 36px 0;
}

.aia-single-content a {
    color: #A37854;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.aia-single-content a:hover {
    opacity: 0.75;
}

.aia-single-content blockquote {
    border-left: 3px solid #A37854;
    padding: 4px 0 4px 24px;
    margin: 36px 0;
    font-style: italic;
    color: #555;
}

.aia-single-content ul,
.aia-single-content ol {
    padding-left: 22px;
    margin-bottom: 26px;
}

.aia-single-content li {
    margin-bottom: 8px;
}

/* ── Compartir ── */
.aia-single-share {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 52px;
    padding-top: 36px;
    border-top: 0.5px solid #d8d8d8;
}

.aia-single-share__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    flex-shrink: 0;
}

.aia-single-share__buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aia-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8d8d8;
    background: transparent;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    position: relative;
    padding: 0;
}

.aia-share-btn:hover {
    border-color: #111;
    color: #111;
}

.aia-share-btn.aia-share-facebook:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.aia-share-btn.aia-share-linkedin:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.aia-share-btn.aia-share-instagram:hover { background: #E1306C; border-color: #E1306C; color: #fff; }

/* Tooltip "Enlace copiado" */
.aia-share-instagram__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    white-space: nowrap;
    padding: 5px 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.aia-share-instagram__tooltip.visible {
    opacity: 1;
}

@media (max-width: 767px) {
    .aia-single-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* ── Navegación anterior / siguiente ── */
.aia-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 52px;
    border-top: 0.5px solid #d8d8d8;
    border-bottom: 0.5px solid #d8d8d8;
}

.aia-single-nav__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    text-decoration: none;
    color: #111;
    transition: color 0.2s ease;
}

.aia-single-nav__item:hover {
    color: #666;
}

.aia-single-nav__prev {
    padding-right: 30px;
    border-right: 0.5px solid #d8d8d8;
}

.aia-single-nav__next {
    padding-left: 30px;
    justify-content: flex-end;
    text-align: right;
}

.aia-single-nav__empty {
    border-right: 0.5px solid #d8d8d8;
}

.aia-single-nav__arrow {
    font-size: 22px;
    flex-shrink: 0;
    color: #111;
    transition: color 0.2s ease;
}

.aia-single-nav__item:hover .aia-single-nav__arrow {
    color: #666;
}

.aia-single-nav__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aia-single-nav__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
}

.aia-single-nav__title {
    font-family: 'Prata', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: inherit;
}

@media (max-width: 767px) {
    .aia-single-nav {
        grid-template-columns: 1fr;
    }

    .aia-single-nav__prev {
        padding-right: 0;
        padding-bottom: 24px;
        border-right: none;
        border-bottom: 0.5px solid #d8d8d8;
    }

    .aia-single-nav__next {
        padding-left: 0;
        padding-top: 24px;
        justify-content: flex-start;
        text-align: left;
    }

    .aia-single-nav__empty {
        display: none;
    }

    .aia-single-nav__title {
        font-size: 15px;
    }
}

/* Enlace volver */
.aia-single-back {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 0.5px solid #d8d8d8;
}

.aia-back-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aia-back-link:hover {
    color: #A37854;
}

/* ── Responsive single ── */
@media (max-width: 767px) {
    .aia-single-hero {
        height: 45vh;
        min-height: 240px;
        padding-top: 72px; /* solo compensar el header fijo en móvil */
    }

    .aia-single-post.no-hero {
        padding-top: 90px;
    }

    .aia-single-wrap {
        padding: 40px 20px 60px;
    }

    .aia-single-title {
        font-size: 30px;
    }

    .aia-single-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .aia-single-content h2 {
        font-size: 24px;
    }

    .aia-single-content h3 {
        font-size: 19px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .aia-single-wrap {
        padding: 56px 40px 80px;
    }

    .aia-single-title {
        font-size: 38px;
    }
}
