/*
Theme Name: bajolastejas
Text Domain: bajolastejas
Version: 1.0
Description: Custom theme for bajolastejas
Author: Clara Harguindey
*/

/* ========== RESET Y BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
  cursor: url("./assets/images/cursor-2.png"), auto;
}

/* ========== FUENTES ========== */
@font-face {
  font-family: "PPTelegraf";
  src: url("./assets/fonts/PPTelegraf.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Clash Grotesk";
  src: url("./assets/fonts/ClashGrotesk-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
}

@font-face {
  font-family: "Clash Grotesk";
  src: url("./assets/fonts/ClashGrotesk-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Clash Grotesk";
  src: url("./assets/fonts/ClashGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Clash Grotesk";
  src: url("./assets/fonts/ClashGrotesk-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ========== VARIABLES ========== */
:root {
  /* Colores */
  --color-text: #2c2c2c;
  --color-background: #d86543;
  --color-dark: #29281f;
  --color-light: #ffe8d0;
  --color-accent: #e16237;
  --color-neutral: #504747;
  --color-blue-light: #a8d5e2;
  --color-yellow: #ffd966;
  --color-lime: #cbff96;

  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1200px;
}

/* ========== OCULTAR MENU ITEM ACTUAL ========== */
.home .menu-item-home,
.page-template-page-about .menu-item-about,
.page-template-page-tienda .menu-item-tienda,
.post-type-archive-proyecto .menu-item-proyectos,
.post-type-archive-encuentro .menu-item-encuentros,
.post-type-archive-recurso .menu-item-recursos {
  display: none;
}

/* ========== BODY ========== */
body {
  font-family: "PPTelegraf", serif;
  max-width: 100vw;
  background: var(--color-background);
  color: var(--color-text);
  font-size: 18px;
  min-height: 100vh;
}

.home *,
.page-template-page-about *,
.page-template-page-tienda *,
.post-type-archive-proyecto *,
.single-proyecto * {
  cursor: url("./assets/images/cursor-1.png"), auto;
}

.home a,
.home button,
.page-template-page-about a,
.page-template-page-about button,
.page-template-page-tienda a,
.page-template-page-tienda button,
.post-type-archive-proyecto a,
.post-type-archive-proyecto button,
.single-proyecto a,
.single-proyecto button {
  cursor: url("./assets/images/cursor-1.png"), pointer !important;
}

a {
  text-decoration: none;
  color: inherit;
}

p a {
  text-decoration: underline;
  color: var(--color-text);
}

p::selection {
  color: white;
  background-color: var(--color-text);
}

main {
  padding: 16px;
  margin-bottom: 60px;
}

/* ========== HEADER ========== */
header {
  padding: 20px;
  width: 100%;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-title,
.header-title {
  font-family: "Clash Grotesk";
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-light);
}

.home-subtitle,
.header-subtitle {
  font-family: "PPTelegraf", Sans-serif;
  font-size: 1.5rem;
  color: var(--color-neutral);
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu ul li {
  text-align: left;
}

.menu ul li a {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-neutral);
  transition: transform 0.3s ease;
  display: inline-block;
}

.menu ul li a::after {
  content: "\2197";
  font-size: 50px;
  line-height: 0;
  font-family: monospace;
  font-variant-emoji: text;
}

.menu ul li a:hover {
  transform: translateX(8px);
}

/* ========== FOOTER ========== */
.footer-content {
  font-family: "PPTelegraf";
  color: var(--color-neutral);
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  font-size: 16px;
  padding: 20px;
}

.footer-content-link,
.footer-content-link:visited {
  color: var(--color-neutral);
}

/* ========== FRONT PAGE ========== */
.front-page-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px;
}

.front-page-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.front-page-menu {
  display: flex;
  flex-direction: column;
}

.front-page-menu-item {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
  color: var(--color-light);
  text-transform: uppercase;
  transition: transform 0.3s ease;
  display: inline-block;
}

.front-page-menu-item::after {
  content: "\2197";
  font-size: 60px;
  line-height: 0;
  font-family: monospace;
  font-variant-emoji: text;
}

.front-page-menu-item:hover {
  transform: translateX(8px);
}

.front-page-news-title {
  color: var(--color-light);
  margin: 20px 0;
  font-size: 16px;
}

.front-page-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.front-page-news-item {
  color: var(--color-light);
}

.front-page-news-item h3 {
  color: #292929;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.front-page-news-item .news-excerpt {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--color-light);
}

.front-page-news-item time {
  font-size: 0.8rem;
}

/* ========== CUSTOM SLIDER ========== */
.custom-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
  background: rgba(255, 255, 255, 1);
}

/* ========== PAGE TITLES - UNIFIED ========== */
/* Aplicar a todas las páginas excepto single-proyecto */
.page-title-wrapper h1,
.page-about-title-wrapper h1,
.post-type-archive-encuentro .page-title-wrapper h1 {
  font-family: "Clash Grotesk", sans-serif;
  color: var(--color-neutral);
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-about-title-wrapper {
  text-align: left;
}

/* ========== ARCHIVE PAGES ========== */
.page-title-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 18px;
  margin-bottom: 32px;
  text-align: center;
  padding: 0 20px;
}

/* ========== ABOUT PAGE ========== */
.page-template-page-about {
  background-color: #fab7f4;
}

.page-template-page-about .header-title {
  color: var(--color-accent);
}

.page-template-page-about .header-subtitle {
  color: var(--color-neutral);
}

.page-template-page-about .menu ul li a {
  color: var(--color-neutral);
  font-weight: bold;
  text-transform: uppercase;
}

.about-page-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-page-right {
  display: flex;
  flex-direction: column;
}

.about-content {
  line-height: 1.6;
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 30px;
  filter: grayscale(1);
}

.collaborator-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.collaborator-item:hover {
  transform: translateY(-2px);
}

.collaborator-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.collaborator-item img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.collaborator-item a:hover img {
  opacity: 0.8;
}

/* ========== PROYECTOS ========== */
.post-type-archive-proyecto {
  background: #ffaf82;
}

.post-type-archive-proyecto .header-title {
  color: var(--color-accent);
}

/* ========== SINGLE PROYECTO ========== */
.single-proyecto .proyecto-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.single-proyecto .proyecto-left {
  position: relative;
}

.single-proyecto .proyecto-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header del proyecto */
.single-proyecto .proyecto-header {
  margin-bottom: 0;
  text-align: left;
}

.single-proyecto .proyecto-header h1 {
  font-family: "Clash Grotesk", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  color: var(--color-neutral);
}

.single-proyecto .proyecto-year {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-neutral);
}

.single-proyecto .proyecto-type {
  font-style: italic;
  margin-left: 0.5rem;
}

/* Contenido en dos columnas */
.single-proyecto .proyecto-content {
  column-count: 2;
  column-gap: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.single-proyecto .proyecto-content p {
  margin-bottom: 1rem;
  break-inside: avoid;
}

/* Video responsivo */
.single-proyecto .proyecto-left iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.single-proyecto .proyecto-featured-image img {
  width: 100%;
  height: auto;
}

/* ========== PROYECTOS GRID ========== */
.proyectos-list {
  padding: 20px 0;
}

.proyectos-list .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.proyectos-list .grid-item {
  display: flex;
}

.grid-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.3s ease;
}

.grid-link:hover {
  transform: translateY(-4px);
}

.grid-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 0.75rem;
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #666;
}

.grid-date {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.no-proyectos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* ========== ENCUENTROS PAGE ========== */
.post-type-archive-encuentro {
  background: #cabffb;
}

.post-type-archive-encuentro header {
  position: relative;
  z-index: 10;
}

.post-type-archive-encuentro .header-title {
  color: var(--color-accent);
}

.post-type-archive-encuentro .header-subtitle {
  color: var(--color-neutral);
}

.post-type-archive-encuentro .menu ul li a {
  color: var(--color-neutral);
  font-weight: bold;
  text-transform: uppercase;
}

.post-type-archive-encuentro .grid-title {
  color: var(--color-accent) !important;
}

.post-type-archive-encuentro .grid-date,
.post-type-archive-encuentro .grid-description,
.post-type-archive-encuentro .grid-description p {
  color: #000000 !important;
}

.encuentros-list .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.encuentros-list .grid-item {
  display: flex;
  flex-direction: column;
}

.grid-frame-encuentros .grid-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.grid-frame-encuentros .grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.encuentros-list .grid-title {
  font-size: 1.2rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.encuentros-list .grid-date {
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.encuentros-list .grid-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.no-encuentros {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* ========== RECURSOS GRID ========== */
.post-type-archive-recurso {
  background: var(--color-blue-light);
}

.post-type-archive-recurso .header-title {
  color: var(--color-accent);
}

.post-type-archive-recurso .header-subtitle {
  color: var(--color-neutral);
}

.post-type-archive-recurso .menu ul li a {
  color: var(--color-neutral);
  font-weight: bold;
  text-transform: uppercase;
}

.recursos-list {
  padding: 2rem 20px;
}

.recursos-list .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recursos-list .grid-item {
  display: flex;
}

.recurso-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.recurso-link:hover {
  transform: translateY(-4px);
}

.recurso-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.grid-frame-recursos {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 1rem;
}

.grid-frame-recursos .grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.recurso-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.recurso-link:hover .recurso-overlay {
  opacity: 1;
}

.download-icon {
  font-size: 3rem;
  color: white;
  font-weight: bold;
}

.recursos-list .grid-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  text-align: center;
}

.recursos-list .grid-date {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  text-align: center;
}

.no-recursos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* ========== TIENDA PAGE ========== */
.page-template-page-tienda {
  background: var(--color-lime);
}

.page-template-page-tienda .header-title {
  color: var(--color-accent);
}

.page-template-page-tienda .header-subtitle {
  color: var(--color-neutral);
}

.page-template-page-tienda .menu ul li a {
  color: var(--color-neutral);
  font-weight: bold;
  text-transform: uppercase;
}

.tienda-intro {
  line-height: 1.6;
}

.tienda-intro p {
  margin-bottom: 1rem;
}

/* Tienda */
.tienda-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 auto;
}

.tienda-grid-wrapper {
  margin-top: 2rem;
}

.tienda-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.tienda-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tienda-item.agotado {
  opacity: 0.7;
}

.tienda-item-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f5f5f5;
}

.tienda-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.tienda-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.tienda-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.tienda-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tienda-slider-prev,
.tienda-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tienda-slider-prev:hover,
.tienda-slider-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.tienda-slider-prev {
  left: 10px;
}

.tienda-slider-next {
  right: 10px;
}

.tienda-slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.tienda-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.tienda-slider-dot.active,
.tienda-slider-dot:hover {
  background: rgba(255, 255, 255, 1);
}

.agotado-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.agotado-overlay span {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
}

.tienda-item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tienda-item-title {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  color: var(--color-text);
}

.tienda-item-price {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1rem 0;
}

.tienda-item-description {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tienda-item-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: "Clash Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.3s;
  font-size: 1rem;
}

.tienda-item-button:hover {
  opacity: 0.8;
}

.no-productos {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--color-neutral);
}

/* ========== NEWSLETTER MODAL ========== */
.newsletter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.newsletter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.newsletter-modal-content {
  position: relative;
  background: #f5ebd9;
  padding: 16px;
  border-radius: 20px;
  border: 2px solid #e16237;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: zoomIn 0.4s ease-out;
  z-index: 1;
  background-image: url("./assets/images/fiesta.png");
  background-position: center;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
}

.newsletter-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #e16237;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  z-index: 10;
}

.newsletter-modal-close:hover {
  color: #d94a2e;
}

.newsletter-modal-header h2 {
  margin: 0 0 15px 0;
  font-family: "Clash Grotesk";
  font-size: 32px;
  font-weight: bold;
  color: #e16237;
  text-transform: uppercase;
}

.newsletter-modal-header h3 {
  margin: 0 0 30px 0;
  font-size: 3rem;
  color: #333;
  font-weight: normal;
}

.newsletter-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.newsletter-modal-form input[type="email"],
.newsletter-modal-form input[type="text"],
.newsletter-modal-form input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  margin: 0 0 20px 0;
  border: 1px solid #333;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  box-sizing: border-box;
}

.newsletter-modal-form input[type="email"]:focus,
.newsletter-modal-form input[type="text"]:focus,
.newsletter-modal-form input[type="tel"]:focus {
  outline: none;
  border-color: #d94a2e;
}

.newsletter-modal-form label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 15px 0 20px 0;
}

.newsletter-modal-form input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
}

.newsletter-modal-form input[type="submit"] {
  background: #d94a2e;
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.newsletter-modal-form input[type="submit"]:hover {
  background: #b8391f;
}

.newsletter-modal-form .mc4wp-form label[style*="display: none"] {
  display: none !important;
}

/* ========== DECORACIONES ========== */
.decoration-top-right,
.decoration-top-right-small {
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: white;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== TEAM SECTIONS (COORDINADORAS Y COLABORADORAS) ========== */
.team-section {
  margin: 3rem 0;
  padding: 0 20px;
}

.team-section h2 {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
}

.team-member-image {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  background: #f5f5f5;
  flex-shrink: 0;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member-image a:hover img {
  transform: scale(1.1);
}

.team-member-name {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.team-member-name a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.team-member-name a:hover {
  color: var(--color-accent);
}

.team-member-bio {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

/* Logos de colaboradores debajo del equipo */
.collaborators-logos-section {
  margin: 3rem 0;
  padding: 0 20px;
}

.collaborators-logos-section h2 {
  font-family: "Clash Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-neutral);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ========== MEDIA QUERIES ========== */

/* TABLET: 768px */
@media (min-width: 768px) {
  /* Decoration */
  .decoration-top-right {
    width: 400px;
  }

  /* Header */
  .home-title,
  .header-title {
    font-size: 4rem;
  }

  .home-subtitle,
  .header-subtitle {
    font-size: 1.5rem;
  }

  .menu ul li a {
    font-size: 2rem;
  }

  .front-page-menu-item::after {
    font-size: 70px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Front page */
  .front-page-menu-item {
    font-size: 3rem;
  }

  .front-page-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Page titles */
  .page-title-wrapper h1,
  .page-about-title-wrapper h1,
  .post-type-archive-encuentro .page-title-wrapper h1 {
    font-size: 3rem;
  }

  .page-description {
    font-size: 24px;
    margin-bottom: 48px;
  }

  /* Grids - 2 columnas en tablet */
  .proyectos-list .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .encuentros-list .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recursos-list .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tienda-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Slider */
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  /* Collaborators */
  .collaborators-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 1.5rem;
  }

  /* Tienda items */
  .tienda-item-title {
    font-size: 1.75rem;
  }

  .tienda-item-price {
    font-size: 2rem;
  }

  /* Newsletter modal */
  .newsletter-modal-header h2 {
    font-size: 24px;
  }

  .team-section h2 {
    font-size: 1.75rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
  }

  .team-member-name {
    font-size: 1rem;
  }

  .team-member-bio {
    font-size: 0.9rem;
  }

  .collaborators-logos-section h2 {
    font-size: 1.75rem;
  }
}

/* DESKTOP: 1024px */
@media (min-width: 1024px) {
  /* Header desktop layout */
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .home-title,
  .header-title {
    font-size: 4.5rem;
  }

  .home-subtitle,
  .header-subtitle {
    font-size: 2rem;
  }

  .menu ul {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
  }

  .menu ul li {
    text-align: right;
  }

  .menu ul li a {
    font-size: 2rem;
    font-weight: 700;
  }

  .page-title-wrapper h1,
  .page-about-title-wrapper h1,
  .post-type-archive-encuentro .page-title-wrapper h1 {
    font-size: 3rem;
  }

  /* Front page */
  .front-page-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 20px 20px 0;
  }

  .front-page-menu-item {
    font-size: 3.5rem;
  }

  /* About page */
  .page-about-title-wrapper h1 {
    text-align: left;
  }

  .about-page-container {
    grid-template-columns: 1fr 1fr;
  }

  /* Single Proyecto */
  .single-proyecto .proyecto-container {
    grid-template-columns: 1fr 1fr;
  }

  .single-proyecto .proyecto-content {
    column-count: 2;
  }

  .single-proyecto .proyecto-header h1 {
    font-size: 2.5rem;
  }

  /* Grids desktop */
  .proyectos-list .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .encuentros-list .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .recursos-list .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .tienda-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Collaborators */
  .collaborators-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 80px));
  }

  /* Tienda intro */
  .tienda-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }

  /* Newsletter modal */
  .newsletter-modal-header h2 {
    max-width: 50%;
  }

  .team-section h2 {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
  }

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

  .collaborators-logos-section h2 {
    font-size: 2rem;
  }
}

/* BIG SCREEN: 1200px */
@media (min-width: 1200px) {
  /* Single proyecto */
  .single-proyecto .proyecto-header h1 {
    font-size: 2rem;
  }

  .single-proyecto .proyecto-content {
    font-size: 1.05rem;
  }

  /* Proyectos grid con offset vertical */
  .proyectos-list .grid-item:nth-child(5n + 1) .grid-link {
    margin-top: 0;
  }

  .proyectos-list .grid-item:nth-child(5n + 2) .grid-link {
    margin-top: 1.5rem;
  }

  .proyectos-list .grid-item:nth-child(5n + 3) .grid-link {
    margin-top: 0.75rem;
  }

  .proyectos-list .grid-item:nth-child(5n + 4) .grid-link {
    margin-top: 2rem;
  }

  .proyectos-list .grid-item:nth-child(5n + 5) .grid-link {
    margin-top: 0.5rem;
  }

  /* Encuentros grid con offset vertical */
  .encuentros-list .grid-item:nth-child(5n + 1) .grid-content {
    margin-top: 0;
  }

  .encuentros-list .grid-item:nth-child(5n + 2) .grid-content {
    margin-top: 1.5rem;
  }

  .encuentros-list .grid-item:nth-child(5n + 3) .grid-content {
    margin-top: 0.75rem;
  }

  .encuentros-list .grid-item:nth-child(5n + 4) .grid-content {
    margin-top: 2rem;
  }

  .encuentros-list .grid-item:nth-child(5n + 5) .grid-content {
    margin-top: 0.5rem;
  }

  /* Recursos - 6 columnas en pantallas grandes */
  .recursos-list .grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
  }

  .team-member-name {
    font-size: 1.05rem;
  }

  .team-member-bio {
    font-size: 0.95rem;
  }
}
