/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */
/*********************************************************************
 * 1. General HTML tags
 *
 */
:root {
  --bg-dark: #0a0a0a;
  --bg-light: #DADADA;
  --ticket-bg: #f4eee6;
  --text-light: #f5f5f5;
  --text-dark: #141414;
  --text-pink: #de88b7;  
  --text-ticket: #111;
  --font-display: "DM Sans", sans-serif; /*"Poppins", sans-serif;*/
  --font-ui: "Elms Sans", sans-serif;
  --font-mono: "Space Grotesk", sans-serif;
}

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

body {
  max-width: 100%; /* Permitimos ancho completo */
  margin: 0 auto;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-ui);
  /*overflow-x: hidden;*/
  cursor: auto;
}

body,
td,
input[type="text"],
textarea {
  /*font-family: "Quattrocento", serif;
  font-size: 105%;
  line-height: 1.8em;
  color: #444;*/
}

img {
  max-width: 100%;
}

h1 {
  margin: 3.4dvh auto 10dvh auto;
  /*font-size: 2.8rem;*/
  font-size: clamp(2.8rem, 3.7dvw, 4rem); /* Escala dinámica gigante */
  letter-spacing: -4px;
}

h2 {
  font-weight: normal;
}

h3 {
  /*border-top: 1px solid #eee;*/
  padding-top: 1em;
  color: #777;
}

a {
  /*color: #333;
  border-bottom: 1px solid #ccc;*/
  text-decoration: none;
}
a:hover,
.nav a:hover {
  color: #000;
  /*border-color: #aaa;*/
}

blockquote {
  margin-left: 0;
  padding-left: 1.5em;
  padding-right: 2em;
  border-left: 4px solid #ddd;
  font-style: italic;
  color: #777;
}

pre,
code {
  background: #eee;
  border: 1px solid #ddd;
}

pre {
  font-size: 14px;
  line-height: 1.4em;
  padding: 1em;
  border-left: 4px solid #ddd;
}

/*********************************************************************
 * 2. Masthead area
 *
 */

.topnav,
.topnav li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.topnav li {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}
.topnav a {
  padding: 0.25em 0.5em;
  text-decoration: none;
  display: block;
  background: #eee;
  color: #333;
  border: 1px solid #eee;
}
.topnav a:hover {
  background: #ddd;
  border-color: #ddd;
}
.topnav li.current a {
  background: #ccc;
  border-color: #ccc;
}
.topnav li.edit a {
  background: none;
}

form.search {
  float: right;
  margin: 0;
  width: 30%;
}
form.search input {
  margin: 0;
  padding: 0.25em 0.5em;
  border: 1px solid #ccc;
  width: 100%;
}

.breadcrumbs {
  clear: both;
  padding-top: 1em;
}
.breadcrumbs span:after {
  content: ">";
  color: #999;
  padding-left: 0.5em;
  padding-right: 0.25em;
}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
  border-top: 1px solid #eee;
  padding-top: 1em;
  margin-top: 1em;
  clear: both;
}

.main-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12dvh 5% 8dvh 5%; /* 12dvh arriba para despejar el header fijo, 5% a los lados */
}

#content {
  width: 65%;
  float: left;
  padding-bottom: 2em;
}

#sidebar {
  width: 35%;
  padding-left: 5%;
  float: left;
  padding-bottom: 2em;
}
/*
.nav {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
.nav .nav {
  padding-left: 1.5em;
  list-style: disc;
}
.nav li {
  margin: 1em 0;
}

.nav-tree li {
  margin-top: 0;
  margin-bottom: 0;
}

.nav a {
  font-weight: bold;
}

.nav-tree li a {
  color: #777;
}

.nav .current > a {
  color: #333;
}
*/
.align_left {
  /* for images placed in rich text editor */
  float: left;
  margin: 0 1em 0.5em 0;
  position: relative;
  top: 0.5em;
  max-width: 50%;
}

.align_right {
  /* for images placed in rich text editor */
  float: right;
  margin: 0 0 0.5em 1em;
  max-width: 50%;
}

.align_center {
  /* for images placed in rich text editor */
  display: block;
  margin: 1em auto;
  position: relative;
  top: 0.5em;
}

figure {
  display: table;
  width: 1px;
  margin: 1em 0;
}

figure img {
  display: table-row;
  margin-bottom: 0.5em;
}

figure figcaption {
  display: table-row;
  font-size: smaller;
  color: #777;
  line-height: 1.4em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
  clear: both;
  border-top: 1px solid #eee;
  font-size: 80%;
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
  /* mobile layout */

  body,
  td,
  textarea {
    font-size: 100%;
  }
  #content,
  #sidebar {
    float: none;
    width: 100%;
    padding: 0;
  }
  form.search {
    float: none;
    width: 100%;
  }
  #content {
    width: 100%;
  }
  #sidebar {
    border-top: 1px solid #eee;
    padding-top: 1em;
  }
  .align_left,
  .align_right,
  .align_center {
    display: block;
    float: none;
    margin: 1em auto;
    max-width: 100%;
  }
}

@media only screen and (min-width: 1200px) {
  /* extra-wide desktop layout */

  body,
  td,
  textarea {
    font-size: 115%;
  }
}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
  clip: auto;
  overflow: visible;
  height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #333;
  color: #fff;
}

/* ==================================================== */
/* SECCIÓN FOOTER INSTITUCIONAL */
/* ==================================================== */
.site-footer {
  clear: both; /* Rompe el float:left de las columnas de contenido superiores */
  width: 100%;
  display: block;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-ui);
  padding: 14dvh 5% 2dvh 5%; /* 8dvh de aire arriba/abajo, y 5% a los lados para alinear con el main */
  /*border-top: 1px dashed rgba(255, 255, 255, 0.15);*/
  position: relative;
  z-index: 20;
}

.footer-container {
  max-width: 1500px;
  margin: 1em auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

/* Lado Izquierdo: Textos */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.footer-email {
  color: var(--text-light);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.footer-email:hover {
  opacity: 0.7;
}

.footer-credits p {
  margin-bottom: 0.2rem;
}

.footer-credits strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-year {
  font-family: var(--font-display);
  font-weight: 700;
}

/* Lado Derecho: Logos */
.footer-partners {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: nowrap;  /* Cambiado de wrap a nowrap */
  flex-shrink: 1;
  min-width: 0;
}

/* ==================================================== */
/* SUB-FOOTER / CREDITO DESARROLLO */
/* ==================================================== */
.footer-socket {
  width: 100%;
  margin-top: 1dvh; /* Separación con el bloque de logos de arriba */
  padding-top: 1dvh;
}

.socket-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end; /* Alineado al mismo eje izquierdo de tus textos */
}

.developer-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4); /* Un tono gris tenue para discreción */
}

.developer-credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.developer-credit a:hover {
  color: var(--text-light); /* Enciende a blanco al pasar el cursor */
}

/* Ajuste responsive para pantallas pequeñas */
@media (max-width: 1024px) {
  .footer-socket {
    margin-top: 2dvh;
  }
}

.partner-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-light);
  opacity: 0.85;
  user-select: none;
  flex-shrink: 1;     /* ← Permite que cada logo se encoja */
  min-width: 0;       /* ← Clave para que flex-shrink funcione con imágenes */
}

.partner-logo img {
  width: 100%;
  height: auto;
  max-width: 110px; /* Ajusta este valor al tamaño que prefieras */
  object-fit: contain;
}

/* Estilización tipográfica de placeholders (en caso de no usar imágenes aún) */
.logo-ariyanu {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 2px;
}
.logo-ariyanu .yanu {
  font-weight: 700;
  letter-spacing: 0px;
}

.mincap-placeholder {
  font-size: 0.45rem;
  border: 1px solid var(--text-light);
  padding: 6px;
  max-width: 140px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.logo-pace {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 0.85;
  text-align: center;
}
.logo-pace .pace-bot {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.mun-placeholder {
  text-align: center;
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
}
.mun-top {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.mun-bot {
  font-size: 0.45rem;
  font-family: var(--font-mono);
  display: block;
  opacity: 0.7;
}

/* ==================================================== */
/* RESPONSIVE DESIGN FOR FOOTER */
/* ==================================================== */
@media (max-width: 1175px) and (min-width: 1025px) {
  .footer-partners {
    gap: 1.5rem;
  }

  .partner-logo img {
    max-width: 95px;
  }
}

@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer-partners {
    justify-content: flex-start;
    width: 100%;
    gap: 1.5rem;
	flex-wrap: nowrap;
  }
  
  .partner-logo img {
    max-width: 100px;  /* Logos aún más pequeños */
  }
}

@media (max-width: 560px) {
  .footer-partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: left;
  }
}

/* --- TICKER INFERIOR --- */
.ticker-wrap-bottom {
  position: absolute;
  top: 6dvh;
  left: 0;
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 30;
}
.ticker {
  display: flex;
  animation: ticker 25s linear infinite;
}
.ticker__item {
  white-space: nowrap;
  padding: 0 1rem;
  font-weight: normal;
  font-size: 2.4rem;
  color: var(--text-light);
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==================================================== */
/* SINGLE EXHIBITION ITEM VIEW */
/* ==================================================== */
.single-exhibition-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* Hero Sección Completa */
.exhibition-hero-header {
  position: relative;
  width: 100vw;
  height: 70dvh;
  margin-left: -5%; /* Contrarresta el padding lateral del main-content */
  margin-top: -12dvh; /* Compensa el despeje superior para tocar el borde */
  margin-bottom: 8dvh;
  overflow: hidden;
  background-color: #000;
}

.hero-image-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(15%) contrast(1.05);
}

.hero-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.3) 100%
  );
  z-index: 1;
}

.hero-header-content {
  position: absolute;
  bottom: 4dvh;
  left: 5%;
  z-index: 2;
}

.single-exhibition-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 1rem;
}

.single-exhibition-title {
  font-family: var(--font-display);
  font-size: clamp(
    2rem,
    5dvw,
    4rem
  ) !important; /* Fuerza la escala sobre el h1 base */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0 !important; /* Anulamos los márgenes genéricos del h1 */
}

/* Distribución de la Ficha Técnica y Contenido */
.exhibition-body-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 4rem;
  padding-bottom: 12dvh;
}

/* Ficha Técnica */
.exhibition-metadata-sidebar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metadata-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metadata-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.metadata-value {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Cuerpo del Texto */
.exhibition-main-text {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.2dvw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.exhibition-main-text p {
  margin-bottom: 1.5rem;
}

.text-placeholder {
  font-style: italic;
  opacity: 0.5;
}

/* ==================================================== */
/* RESPONSIVE RESPONSIVO */
/* ==================================================== */
@media (max-width: 768px) {
  .exhibition-hero-header {
    height: 50dvh;
    margin-left: -5%;
    margin-top: -12dvh;
  }

  .exhibition-body-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .exhibition-main-text {
    font-size: 1.05rem;
  }
}

/* =========================================
   BASE: Grilla y Utilidades Compartidas
   ========================================= */
.grid-editorial {
  display: grid;
  grid-template-columns: 1fr;
  color: #000;
  width: 100%;
}

.grid-celda {
  padding: 3rem 4rem;
  box-sizing: border-box;
}

/* Título principal de páginas (Compartido) */
.page-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 2.8rem);
  line-height: normal;
  letter-spacing: -1px;
  margin: 0;
}

@media (max-width: 991px) {
  .page-title {
    font-weight: 500;
  }
}

/* =========================================
   TIPOGRAFÍA GENERAL Y "SOMOS"
   ========================================= */
.img-ojo {
  max-width: 100%;
  height: auto;
  /*mix-blend-mode: multiply;*/
}

.titulo-cinemiradas {
  color: var(--text-pink);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.punto-rosa {
  color: var(--text-pink);
}

.titulo-mision-vision {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 1px;
  margin: 0;
}

.texto-somos {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.15rem;
  width: 100%;
}

/* Ajustes tipográficos generales para Desktop */
@media (min-width: 992px) {
  .texto-somos {
    width: 85%;
  }
  .titulo-mision-vision {
    line-height: 1.4;
  }
}

/* =========================================
   LAYOUT ESPECÍFICO: "Somos"
   ========================================= */
@media (min-width: 992px) {
  .layout-somos {
    grid-template-columns: 1fr 1.8fr;
  }
  .layout-somos .celda-0-izq {
    border-bottom: 3px solid white;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.4em;
  }
  .layout-somos .celda-0-der {
    border-bottom: 3px solid white;
  }
  .layout-somos .celda-top-left {
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .layout-somos .celda-top-right {
    border-bottom: 3px solid white;
  }
  .layout-somos .celda-bottom-left {
    border-right: 3px solid white;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .layout-somos .grid-celda {
    border-bottom: 2px solid white;
    padding: 2rem 0;
  }
  .layout-somos .celda-bottom-left {
    text-align: center;
  }
  .layout-somos .celda-bottom-right {
    padding: 2rem 1rem;
  }
}

/* =========================================
   LAYOUT ESPECÍFICO: "Contacto"
   ========================================= */
@media (min-width: 992px) {
  .layout-contacto {
    grid-template-columns: 0.9fr 2.1fr;
  }
  .layout-contacto .celda-0-izq {
    border-bottom: 3px solid white;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.4em;
  }
  .layout-contacto .celda-0-der {
    border-bottom: 3px solid white;
  }
  .layout-contacto .celda-1-izq {
    border-right: 3px solid white;
    overflow: visible;
    position: relative;
  }
  .layout-contacto .celda-2-izq {
    border-right: 3px solid white;
  }
  .layout-contacto .celda-2-der {
    border-bottom: 3px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
  }
  .layout-contacto .celda-3-izq {
    border-right: 3px solid white;
    min-height: 15vh;
  }
}

@media (max-width: 991px) {
  .layout-contacto .grid-celda {
    padding: 2rem 0;
  }
  /* Ocultamos las celdas estructurales vacías en móvil */
  .layout-contacto .celda-1-der,
  .layout-contacto .celda-2-izq,
  .layout-contacto .celda-3-izq,
  .layout-contacto .celda-3-der {
    display: none;
  }
  /* Solo las celdas con contenido llevan línea divisoria horizontal */
  .layout-contacto .celda-0-izq,
  .layout-contacto .celda-1-izq {
    border-bottom: 2px solid white;
  }
}

/* =========================================
   COMPONENTES: Textos de Contacto
   ========================================= */
.contacto-preguntas {
  font-family: "DM Sans", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: #000;
  width: max-content;
  max-width: 90vw;
  position: relative;
  z-index: 5;
}

.contacto-cta {
  display: inline-block;
  background-color: #161616;
  color: #fff;
  padding: 0.1rem 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -1px;
  float: right;
  width: max-content;
  position: relative;
  z-index: 5;
}

.contacto-redes {
  padding-left: 1rem;
}

.contacto-redes p {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 1rem 0;
  color: #000;
  text-transform: uppercase;
}

.contacto-redes a {
  color: var(--text-pink, #de88b7);
  text-decoration: none;
}

.contacto-redes a:hover {
  text-decoration: underline;
}

/* Ajustes tipográficos de contacto para Móvil */
@media (max-width: 991px) {
  .contacto-preguntas,
  .contacto-cta {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  .contacto-preguntas {
    font-size: 1.4rem;
  }
  .contacto-cta {
    font-size: 1.5rem;
    float: none; /* Evita que el botón flote a la derecha en móviles donde falta espacio */
  }
  .contacto-redes p {
    font-size: 1.2rem;
    word-break: break-word;
  }
}
