/*
Theme Name: Museo Wanderers
Author: Bruno Bonati
Description: Tema a medida para el museo histórico del club.
Version: 1.0.0
Text Domain: museo-theme
*/

/* =========================================
   1. CARGA DE FUENTES (Typography)
   ========================================= */


/* Textos de Cuerpo (Lectura) - Usaremos Poppins que se lee bien en web */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. VARIABLES GLOBALES (Design Tokens)
   ========================================= */
:root {
    /* Paleta de Colores */
    --color-primario: #08311f;   /* Un verde más oscuro*/
    --color-secundario: #c5a059; /* Dorado */
    --color-texto: #ffffff;
    --color-blanco: #ffffff;    
   
    --bg-capsula: rgba(70, 120, 90, 0.6); /* Verde claro visible */

    /* Tipografías */
    --font-titulo: 'Poppins', sans-serif; 
    --font-cuerpo: 'Poppins', sans-serif;
    
    /* Layout */
    --ancho-maximo: 1200px;
    --radio-borde: 8px;
}

/* =========================================
   3. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--color-texto);
    line-height: 1.6;
    position: relative;
    margin: 0;
    padding: 0;
    
    /* EL FONDO DEL SITIO */
    background-image: url('assets/images/bg_horizontal.webp');
    background-size: 101%; /* Escala la imagen un poco más para ocultar los bordes */
    background-position: center top;
    background-attachment: fixed; /* Efecto Parallax: el fondo se queda quieto al hacer scroll */
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Capa oscura sobre el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Negro con 40% de opacidad */
    pointer-events: none; /* No interfiere con los clics */
    z-index: -1; /* Detrás de todo el contenido */
}

/* Imágenes responsivas */
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Contenedor central */
.container {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* =========================================
   4.  NAVBAR 
   ========================================= */

header {
    background: linear-gradient(to right, #08311f 0%, #08311f 70%, #000000 100%);
    padding: 1.5rem 0; /* Espacio arriba y abajo para que respire */
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    /* Eliminamos el borde dorado inferior para ser fieles a tu diseño */
    /* border-bottom: 4px solid var(--color-secundario); */
}

/* Contenedor Flex: Logo (Izq) - Cápsula (Centro-Derecha) */
.header-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --- ESTILO DE LA CÁPSULA (El Óvalo) --- */
.navbar-capsula {
    background-color: var(--bg-capsula); /* El color verde claro transparente */
    border-radius: 50px; /* Bordes totalmente redondos (Pill shape) */
    padding: 0.8rem 2.5rem; /* Relleno interno */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1; /* Ocupa todo el espacio posible */
    backdrop-filter: blur(5px); /* Efecto vidrio (opcional, se ve moderno) */
}

/* --- TIPOGRAFÍA DEL TÍTULO (Arreglado) --- */
.site-title-text {
    font-family: var(--font-cuerpo) !important; /* Usamos Poppins */
    font-weight: 400 !important; /* Regular weight, más ligero */
    font-size: 1.4rem !important;
    color: var(--color-blanco) !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
    flex-shrink: 0; /* No se encoge */
    font-style: normal !important; /* Eliminar cursiva FORZADO */
}

/* --- MENÚ --- */
.main-nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--color-blanco);
    font-family: var(--font-cuerpo);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.95;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-secundario); /* Dorado al pasar mouse */
    opacity: 1;
}

/* --- LOGO GRANDE DERECHA --- */
.logo-container {
    flex-shrink: 0;
    margin-left: auto; /* Empuja el logo a la derecha */
}

.escudo-big {
    height: 90px; /* Tamaño grande del logo */
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); /* Sombra para que destaque */
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.escudo-big:hover {
    transform: scale(1.05); /* Efecto zoom sutil */
}

/* Ajuste Responsive (Móvil) - Básico por ahora */
@media (max-width: 768px) {
    .header-layout {
        flex-direction: column;
    }
    .navbar-capsula {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
        gap: 1rem;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   5. FOOTER
   ========================================= */

.site-footer {
    background: linear-gradient(to right, #000000 0%, #000000 30%, #08311f 100%);
    color: var(--color-blanco);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-section {
    flex: 1;
}

/* Sección de Redes Sociales */
.footer-social {
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: transparent; /* Sin fondo */
    border-radius: 8px;
    padding: 0; /* Sin padding para que el SVG ocupe todo */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2); /* Efecto brillo al hover */
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Sección de Información */
.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-address,
.footer-phone,
.footer-email {
    opacity: 0.9;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        max-width: 100%;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* =========================================
   6. GALERÍA PRINCIPAL (Home)
   ========================================= */

.galeria-principal {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Header de la Galería */
.galeria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.galeria-titulo {
    font-family: var(--font-titulo);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-blanco);
    margin: 0;
}

.btn-subir {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radio-borde);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-subir:hover {
    background-color: #d4b06a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* Barra de Búsqueda */
.search-bar {
    background-color: var(--color-primario); /* Verde de la página */
    padding: 1.5rem;
    border-radius: var(--radio-borde);
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radio-borde);
    font-family: var(--font-cuerpo);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-blanco);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-secundario);
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-buscar {
    background-color: var(--color-secundario); /* Botón dorado */
    color: var(--color-blanco);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--radio-borde);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buscar:hover {
    background-color: #d4b06a;
    transform: translateY(-2px);
}

.btn-buscar:hover {
    background-color: #004d2a;
    transform: translateY(-2px);
}

/* Grid de Obras */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carta de Obra */
.obra-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radio-borde);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.obra-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.obra-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Imagen de la Obra */
.obra-imagen {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obra-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Marco superpuesto sobre la imagen */
.obra-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/marco-1200x900.png');
    background-size: 100% 100%; /* Estira el marco para que cubra toda el área */
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Permite hacer clic a través del marco */
    z-index: 2;
    opacity: 95%;
}

/* Título en la plaquita del marco */
.obra-plaquita {
    position: absolute;
    bottom: 5%; /* Bajado más */
    left: 50%;
    transform: translateX(-50%);
    width: 50%; /* Reducido para que no se salga */
    max-width: 180px;
    text-align: center;
    z-index: 3; /* Por encima del marco */
    padding: 0.3rem 0.5rem;
    
    /* Texto */
    font-family: var(--font-titulo);
    font-size: 0.7rem; /* Ligeramente más pequeño */
    font-weight: 500;
    color: var(--color-blanco); /* Blanco como los demás textos */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra más fuerte para legibilidad sobre dorado */
    
    /* Truncar texto largo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    pointer-events: none; /* No interfiere con clics */
}

.obra-card:hover .obra-imagen img {
    transform: scale(1.02); /* Reducido a 1.02 para evitar completamente que sobresalga del marco */
}

.sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-size: 0.9rem;
}

/* Información de la Obra */
.obra-info {
    padding: 1.5rem;
    text-align: center;
}

.obra-titulo {
    font-family: var(--font-titulo);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-texto);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.obra-autor {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Sin Obras */
.no-obras {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radio-borde);
}

.no-obras p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Responsive Galería */
@media (max-width: 768px) {
    .galeria-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .galeria-titulo {
        font-size: 1.5rem;
    }
    
    .obras-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .search-bar form {
        flex-direction: column;
    }
}

/* =========================================
   7. VISTA DE OBRA INDIVIDUAL (single-obra.php)
   ========================================= */

.single-obra-container {
    padding: 3rem 0;
    min-height: 60vh;
}

.obra-detalle {
    background-color: transparent; /* Sin fondo blanco */
    border-radius: var(--radio-borde);
    padding: 2rem;
    margin-bottom: 4rem;
}

/* Layout de 2 Columnas */
.obra-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Imagen Grande (Sin Marco) */
.obra-imagen-grande {
    width: 100%;
    background-color: #f5f5f5;
    border-radius: var(--radio-borde);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.obra-imagen-grande img {
    width: 100%;
    height: auto;
    display: block;
}

.sin-imagen-grande {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-size: 1.2rem;
}

/* Información de la Obra */
.obra-info-detalle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.obra-titulo-detalle {
    font-family: var(--font-titulo);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-blanco);
    margin: 0;
    text-transform: uppercase;
}

.obra-contenido {
    color: var(--color-blanco);
    font-size: 1rem;
    line-height: 1.8;
}

.obra-autor {
    color: var(--color-blanco);
}

.obra-autor strong {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.obra-autor p {
    margin: 0;
    font-size: 1.1rem;
}

/* Botones de Votación */
.votos-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-voto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-cuerpo);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.icono-voto-svg {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.btn-voto:hover:not(:disabled) .icono-voto-svg {
    transform: scale(1.1);
}

.btn-like {
    color: var(--color-blanco);
}

.btn-dislike {
    color: var(--color-blanco);
}

.btn-voto:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contador-voto {
    color: var(--color-blanco);
    font-weight: 600;
}

/* Etiquetas de la Obra */
.etiquetas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.etiqueta-badge {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.etiqueta-badge:hover {
    background-color: #d4b06a;
    transform: translateY(-2px);
}

/* Sección Otras Obras */
.otras-obras-section {
    margin-top: 4rem;
}

.otras-obras-titulo {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-blanco);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Responsive Vista Individual */
@media (max-width: 768px) {
    .obra-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .obra-titulo-detalle {
        font-size: 1.5rem;
    }
    
    .votos-container {
        flex-direction: column;
    }
    
    .btn-voto {
        justify-content: center;
    }
}

/* =========================================
   8. PÁGINA SUBIR OBRA (page-subir-obra.php)
   ========================================= */

.subir-obra-container {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Mensajes de Estado */
.mensaje-estado {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radio-borde);
    font-weight: 500;
    text-align: center;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Formulario */
.form-subir-obra {
    margin-bottom: 4rem;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Columna Izquierda: Campos */
.form-campos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campo-label {
    font-family: var(--font-titulo);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-blanco);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campo-input,
.campo-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radio-borde);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
    font-family: var(--font-cuerpo);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.campo-input::placeholder,
.campo-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.campo-input:focus,
.campo-textarea:focus {
    outline: none;
    border-color: var(--color-secundario);
    background-color: rgba(255, 255, 255, 0.15);
}

.campo-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón POST */
.btn-post {
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radio-borde);
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-post:hover {
    background-color: #d4b06a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* Columna Derecha: Upload */
.form-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-area {
    width: 100%;
    aspect-ratio: 4/3;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radio-borde);
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--color-secundario);
    background-color: rgba(255, 255, 255, 0.1);
}

.input-file {
    display: none;
}

.upload-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--color-blanco);
    font-size: 1.1rem;
    font-weight: 500;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campo-input-small {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radio-borde);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-blanco);
    font-family: var(--font-cuerpo);
    font-size: 0.9rem;
}

.campo-input-small::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Subir Obra */
@media (max-width: 768px) {
    .form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .btn-post {
        width: 100%;
    }
}

/* =====================================================
   9. PÁGINA MODERACIÓN (page-moderacion.php)
   ===================================================== */

.obras-moderacion-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.obra-moderacion-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--color-primario);
    border-radius: 12px;
    align-items: start;
}

/* Imagen con marco */
.obra-imagen-moderacion {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.obra-imagen-moderacion:hover {
    transform: scale(1.02);
}

.obra-imagen-moderacion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Marco sobre la imagen */
.obra-imagen-moderacion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/marco-1200x900.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* Columna derecha: Info + Controles */
.obra-moderacion-info {
    margin-bottom: 1.5rem;
}

.obra-moderacion-titulo {
    font-size: 1.8rem;
    color: var(--color-secundario);
    margin: 0 0 1rem 0;
    font-family: 'Poppins-Medium', sans-serif;
}

.obra-moderacion-descripcion {
    font-size: 1rem;
    color: var(--color-blanco);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.obra-moderacion-meta {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-blanco);
}

.obra-moderacion-meta p {
    margin: 0.3rem 0;
}

.obra-moderacion-meta strong {
    color: var(--color-secundario);
}

/* Controles: Formulario de etiquetas + Botones */
.obra-moderacion-controles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.obra-moderacion-form-tags {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.obra-moderacion-form-tags label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-secundario);
}

.obra-moderacion-form-tags input[type="text"] {
    padding: 0.8rem;
    border: 2px solid var(--color-primario);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
    font-size: 1rem;
    font-family: 'Poppins-Regular', sans-serif;
}

.obra-moderacion-form-tags input[type="text"]:focus {
    outline: none;
    border-color: var(--color-secundario);
    background: rgba(255, 255, 255, 0.15);
}

.obra-moderacion-form-tags input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Botones de acción SVG */
.obra-moderacion-acciones {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.btn-accion {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.btn-accion:hover {
    transform: scale(1.15);
}

.icono-accion-svg {
    width: 50px;
    height: 50px;
    display: block;
    opacity: 0.85;
}

.btn-accion:hover .icono-accion-svg {
    opacity: 1;
}

/* Responsive Moderación */
@media (max-width: 768px) {
    .obra-moderacion-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .obra-imagen-moderacion {
        max-width: 100%;
    }
    
    .obra-moderacion-acciones {
        justify-content: center;
    }
    
    .icono-accion-svg {
        width: 40px;
        height: 40px;
    }
}

/* =====================================================
   10. PÁGINA BÚSQUEDA (search.php)
   ===================================================== */

/* Barra de búsqueda en resultados */
.barra-busqueda {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0;
}

.barra-busqueda form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-busqueda {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-primario);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
    font-size: 1rem;
    font-family: 'Poppins-Regular', sans-serif;
    transition: all 0.3s ease;
}

.input-busqueda:focus {
    outline: none;
    border-color: var(--color-secundario);
    background: rgba(255, 255, 255, 0.15);
}

.input-busqueda::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-buscar {
    padding: 1rem 2rem;
    background: var(--color-secundario);
    color: var(--color-primario);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins-Medium', sans-serif;
    white-space: nowrap;
}

.btn-buscar:hover {
    background: var(--color-blanco);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

.titulo-resultados {
    font-size: 2rem;
    color: var(--color-blanco);
    margin: 2rem auto 3rem auto;
    text-align: center;
    font-family: 'Poppins-Medium', sans-serif;
    max-width: 1400px;
}

/* Responsive Búsqueda */
@media (max-width: 768px) {
    .barra-busqueda form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-buscar {
        width: 100%;
    }
    
    .titulo-resultados {
        font-size: 1.5rem;
        margin: 1.5rem 0 2rem 0;
    }
}

/* =====================================================
   11. COMENTARIOS (comments.php / single-obra.php)
   ===================================================== */

.comentarios-section {
    max-width: 1400px;
    margin: 4rem auto 0 auto;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-primario);
    border-radius: 12px;
}

/* Título de comentarios */
.comments-title,
.comment-reply-title {
    font-size: 1.8rem;
    color: var(--color-secundario);
    margin-bottom: 2rem;
    font-family: 'Poppins-Medium', sans-serif;
}

/* Botón cancelar respuesta */
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(220, 53, 69, 0.8);
    color: var(--color-blanco);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: 'Poppins-Regular', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid rgba(220, 53, 69, 1);
}

#cancel-comment-reply-link:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Lista de comentarios */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--color-secundario);
}

.comment-author {
    font-weight: bold;
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.comment-content {
    color: var(--color-blanco);
    line-height: 1.6;
}

.comment-content p {
    margin: 0.5rem 0;
}

/* Formulario de comentarios */
.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-secundario);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    padding: 1rem;
    border: 2px solid var(--color-primario);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
    font-size: 1rem;
    font-family: 'Poppins-Regular', sans-serif;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-secundario);
    background: rgba(255, 255, 255, 0.15);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin: 0;
}

.submit {
    padding: 1rem 2.5rem;
    background: var(--color-secundario);
    color: var(--color-primario);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins-Medium', sans-serif;
}

.submit:hover {
    background: var(--color-blanco);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* Mensaje cuando no hay comentarios */
.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-style: italic;
}

/* Responsive Comentarios */
@media (max-width: 768px) {
    .comentarios-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
    
    .comments-title,
    .comment-reply-title {
        font-size: 1.5rem;
    }
    
    .comment {
        padding: 1rem;
    }
}