/* ============================================
   PAINTER THEME - Minimalista para Pintores
   Solo Blanco y Negro
   ============================================ */

/* === RESET Y VARIABLES === */
:root {
  --color-primary: #000000;
  --color-background: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #cccccc;
  --color-gray-dark: #333333;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --max-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === TIPOGRAFÍA === */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-background);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

a:hover,
a:focus {
  border-bottom-color: var(--color-primary);
}

/* === ESTRUCTURA GENERAL === */
.layout-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.region {
  margin-bottom: var(--spacing-lg);
}

/* === HEADER === */
.region-header {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.site-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === NAVEGACIÓN === */
.region-primary-menu {
  margin: var(--spacing-md) 0;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.menu li {
  position: relative;
}

.menu a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--spacing-xs) 0;
}

/* === BREADCRUMBS === */
.region-breadcrumbs {
  padding: var(--spacing-sm) 0;
  font-size: 0.875rem;
  color: var(--color-gray-dark);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.breadcrumb li::after {
  content: "/";
  margin-left: var(--spacing-xs);
  color: var(--color-gray-medium);
}

.breadcrumb li:last-child::after {
  content: "";
}

/* === TÍTULO === */
.region-title {
  margin: var(--spacing-lg) 0 var(--spacing-md);
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

/* === CONTENIDO === */
.region-content {
  padding: var(--spacing-md) 0;
  min-height: 50vh;
}

.node {
  margin-bottom: var(--spacing-xl);
}

.node__content {
  line-height: 1.8;
}

/* === GALERÍAS === */
.region-gallery,
.view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.gallery-item,
.views-row {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-primary);
  padding: var(--spacing-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover,
.views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.views-row img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--color-gray-medium);
}

.gallery-item__title,
.views-field-title {
  margin-top: var(--spacing-sm);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  text-align: center;
}

.gallery-item__meta,
.views-field-field-year,
.views-field-field-technique {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  text-align: center;
  margin-top: var(--spacing-xs);
}

/* === IMÁGENES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*div.views-field-field-imagen {
    position: relative;
    width: 400px;
    height: 300px;
    overflow: hidden;
}

div.views-field-field-imagen  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.views-field-field-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
 
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0.8) 85%,
        white 100%
    );
    
    pointer-events: none;
    z-index: 1;
}





div.field--type-image-gallery > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    

    background: radial-gradient(
        circle farthest-side at center,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 65%,
        rgba(255, 255, 255, 0.6) 80%,
        white 100%
    );
    
    pointer-events: none;
    z-index: 1;
}*/





div.field--type-image-gallery > div {
    position: relative;
    width: 800px;
    height: auto;
    overflow: hidden;
}

div.field--type-image-gallery > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.field--type-image-gallery > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Creamos una máscara con bordes difuminados hacia dentro */
    background: 
        conic-gradient(white 0.09turn, #bbbbbb 0.09turn, #bbbbbb 0.27turn, #666666 0.27turn, #666666 0.54turn, black 0.54turn);
conic-gradient(white 0turn 0.09turn, #bbbbbb 0.09turn 0.27turn, #666666 0.27turn 0.54turn, black 0.54turn 1turn);
    
    /* Aplicamos una forma de transformación para hacerlo más cuadrado */
    -webkit-mask-image: 
        linear-gradient(to right, 
            black 15%, 
            white 15%, 
            white 15%, 
            black 15%),
        linear-gradient(to bottom, 
            black 15%, 
            white 15%, 
            white 15%, 
            black 15%);
    
    -webkit-mask-composite: multiply;
    mask-composite: intersect;
    
    pointer-events: none;
    z-index: 1;
}


.image-style-large,
.image-style-medium {
  margin: var(--spacing-md) auto;
  border: 1px solid var(--color-primary);
  padding: var(--spacing-sm);
  background: var(--color-background);
}

figure {
  margin: var(--spacing-md) 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  margin-top: var(--spacing-xs);
  text-align: center;
  font-style: italic;
}

/* === INFORMACIÓN DEL ARTISTA === */
.region-artist-info {
  background: var(--color-gray-light);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.artist-bio {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

/* === SIDEBAR === */
.region-sidebar-first {
  padding: var(--spacing-md);
  background: var(--color-gray-light);
  border-left: 2px solid var(--color-primary);
}

.sidebar-block {
  margin-bottom: var(--spacing-md);
}

.sidebar-block h2 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === FOOTER === */
.region-footer {
  border-top: 1px solid var(--color-primary);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-gray-dark);
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

/* === FORMULARIOS === */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-primary);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-gray-dark);
}

button,
.button,
input[type="submit"] {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-background);
  border: 1px solid var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  background: var(--color-background);
  color: var(--color-primary);
}

/* === LISTAS === */
ul, ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.item-list ul {
  list-style: none;
  margin-left: 0;
}

/* === TABLAS === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}

th, td {
  padding: var(--spacing-xs) var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-medium);
}

th {
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

/* === PAGINACIÓN === */
.pager {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-lg) 0;
  list-style: none;
}

.pager__item {
  border: 1px solid var(--color-primary);
}

.pager__item a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: none;
}

.pager__item--active {
  background: var(--color-primary);
  color: var(--color-background);
}

/* === MENSAJES === */
.messages {
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--color-primary);
  background: var(--color-gray-light);
}

.messages--error {
  border-color: var(--color-primary);
  background: var(--color-background);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  h1, .page-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .menu {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .region-gallery,
  .view-content {
    grid-template-columns: 1fr;
  }

  .layout-container {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1, .page-title {
    font-size: 1.75rem;
  }

  .site-name {
    font-size: 1.5rem;
  }
}

/* === UTILIDADES === */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.text-center {
  text-align: center;
}

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

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* === IMPRESIÓN === */
@media print {
  body {
    background: white;
    color: black;
  }

  .region-header,
  .region-primary-menu,
  .region-breadcrumbs,
  .region-sidebar-first,
  .region-footer {
    display: none;
  }

  a {
    text-decoration: underline;
    border: none;
  }
}
