.obras-section { padding: 60px 0; }
.obras-title { font-size: 32px; margin-bottom: 30px; }

.obra-item a { text-decoration: none; color: #000; }
.obra-thumb { width: 100%; height: 240px; overflow: hidden; }
.obra-thumb img { width: 100%; height: 100%; object-fit: cover; }

.obras-button-wrapper { text-align: center; margin-top: 30px; }
.obras-button {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.artistas-section { padding: 80px 0; }
.artistas-thumb img { width: 100%; height: 220px; object-fit: cover; }

/* --- TITULOS SUPERIORES --- */
.artistas-section {
    padding: 60px 0 100px;
    text-align: center;
}

.artistas-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #777;
}

.artistas-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 50px;
}

/* --- CONTENEDOR DE CADA ARTISTA --- */
.artista-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 35px;
}

.artista-img {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.artista-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- INFO DEBAJO DE LA FOTO --- */
.artista-info {
    text-align: left;
    width: 100%;
    padding: 20px 10px 0;
}

.artista-disciplina {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.artista-nombre {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
}

.artista-link {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
}

/* --- SWIPER FLECHAS --- */
.artistas-prev,
.artistas-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    top: 45%;
}

.artistas-prev::after,
.artistas-next::after {
    font-size: 16px;
    color: #111;
}

/* --- PAGINACIÓN --- */
.artistas-pagination {
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #111;
}

/* ==========================
   BUSCADOR OBRAS
========================== */
.obras-search {
    margin: 40px 0 50px;
    display: flex;
    justify-content: center;
}

.obras-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.obras-input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    background: #fff;
    min-width: 240px;
    font-size: 14px;
    cursor: pointer;
}

.obras-text {
    min-width: 300px;
}

.obras-btn {
    padding: 12px 26px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
    font-style: italic;
    transition: .2s ease-in-out;
}

.obras-btn:hover {
    background: #000;
    color: #fff;
}

/* ========================
   GRID DE OBRAS
======================== */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 40px;
    gap: 10px;
}

/* ITEM */
.obra-item {
    position: relative;
    overflow: hidden;
}

/* IMAGEN */
.obra-thumb {
    width: 100%;
    height: 420px;
    position: relative;
}

.obra-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

/* ========================
   OVERLAY
======================== */
.obra-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    transition: opacity .4s ease, transform .4s ease;
    padding: 20px;
    transform: translateY(10px);
}

.obra-overlay-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Línea blanca (opcional, igual al sitio institucional) */
.obra-overlay-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #fff;
    margin: 12px auto 0 auto;
}

/* BOTÓN */
.obra-btn {
    padding: 12px 32px;
    background: none;
    border: 1px solid #fff;
    color: #fff !important;
    text-decoration: none;
    transition: 0.3s;
}

.obra-btn:hover {
    background: #fff;
    color: #000 !important;
}

/* HOVER EFECTOS */
.obra-item:hover .obra-overlay {
    opacity: 1;
    transform: translateY(0);
}

.obra-item:hover img {
    transform: scale(1.06);
}

/* ========================
   OVERLAY AJUSTADO
======================== */
.obra-overlay-title {
    font-size: 22px !important;              /* antes 30px */
    font-weight: 600 !important;
    margin-bottom: 16px !important;          /* más compacto */
    line-height: 1.2 !important;
    max-width: 85% !important;               /* evita desbordes */
}

/* línea inferior del título */
.obra-overlay-title::after {
    width: 40px !important;                  /* antes 60px */
    height: 2px !important;
    margin-top: 10px !important;
}

/* Botón más pequeño */
.obra-btn {
    padding: 8px 22px !important;            /* antes 12px 32px */
    font-size: 14px !important;              /* para que no desborde */
    border-width: 1px !important;
}

/* Fuerza a que el overlay siempre esté centrado */
.obra-overlay {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 0 !important;
}

.obra-item,
.obra-thumb {
    padding: 0 !important;
    margin: 0 !important;
}

.obra-overlay-title {
    font-size: 22px !important;
    margin-bottom: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.obra-overlay-title::after {
    width: 36px !important;
    height: 2px !important;
    margin: 10px auto 0 !important;
    color: #fff !important;
}

.obra-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
}

/* ===============================
   GRID 2–3–2–3
================================*/
.obras-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
}

/* Las de patrón 2 ocupan 1.5 columnas */
.patron-2 {
    grid-column: span 1.5;
}

/* Las de patrón 3 ocupan 1 columna normal */
.patron-3 {
    grid-column: span 1;
}

/* Responsive para móviles */
@media (max-width: 900px) {
    .obras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .patron-2,
    .patron-3 {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .obras-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ARTISTAS - SWIPER CLEAN (VERTICAL)
   Objetivo: carrusel vertical 3 visibles, cards consistentes
========================================================== */

.artistas-section{
  padding: 70px 0 90px;
  text-align: center;
}

.artistas-section .artistas-subtitle{
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #777;
}

.artistas-section .artistas-title{
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* === Swiper contenedor === */
.artistas-section .artistasSwiperClean{
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 56px; /* espacio para flechas */
  overflow: hidden;
}

/* Altura necesaria para vertical (3 cards) */
@media (min-width: 992px){
  .artistas-section .artistasSwiperClean{
    height: 980px; /* AJUSTABLE: 3 cards */
  }
}

/* En móvil: horizontal y altura normal */
@media (max-width: 991px){
  .artistas-section .artistasSwiperClean{
    height: auto;
    padding: 0 42px;
  }
}

/* === Wrapper: Swiper normal === */
.artistas-section .artistasSwiperClean .swiper-wrapper{
  display: flex !important;
}

/* === Wrapper forzado a vertical en escritorio === */
@media (min-width: 992px){
  .artistas-section .artistasSwiperClean.is-vertical .swiper-wrapper{
    flex-direction: column !important;
  }
}

/* === Slide: ancho correcto === */
.artistas-section .artistasSwiperClean .swiper-slide{
  height: auto !important;
  width: 100% !important;
  display: flex;
  justify-content: center;
}

/* === Card === */
.artistas-section .artista-card{
  width: 100%;
  max-width: 420px;  /* 🔥 esto arregla el “angosto horrible” */
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* === Imagen === */
.artistas-section .artista-img{
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.artistas-section .artista-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Texto === */
.artistas-section .artista-info{
  padding: 16px 16px 18px;
}

.artistas-section .artista-disciplina{
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
}

.artistas-section .artista-nombre{
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.1;
}

.artistas-section .artista-link{
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-decoration: underline;
}

/* === Flechas === */
.artistas-section .artistas-prev,
.artistas-section .artistas-next{
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,0,0,0.18);
  top: 50%;
  transform: translateY(-50%);
}

.artistas-section .artistas-prev{ left: 0; }
.artistas-section .artistas-next{ right: 0; }

.artistas-section .artistas-prev::after,
.artistas-section .artistas-next::after{
  font-size: 16px;
  color: #111;
  font-weight: 900;
}

/* === Paginación === */
.artistas-section .artistas-pagination{
  position: relative;
  margin-top: 18px;
}

.artistas-section .artistas-pagination .swiper-pagination-bullet{
  width: 9px;
  height: 9px;
  background: #ccc;
  opacity: 1;
}

.artistas-section .artistas-pagination .swiper-pagination-bullet-active{
  background: #111;
}

/* ==========================================================
   FIX: Centrado real del título en overlay de obras
   - Evita que el theme cargue a la izquierda los h4
========================================================== */

.obra-overlay .obra-overlay-title{
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block !important;
}

/* Si el theme le mete estilos raros al h4 (line-height / transform / position) */
.obra-overlay .obra-overlay-title{
  transform: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}