
/* =========================================================================
   AMPLIACIONES 2026 — mCarmen Torres
   1) Imágenes de proyecto a ancho completo (full-bleed)
   2) Grid interactivo de isotipos (solo proyecto CLM, solo escritorio)
   3) Bloque "Siguiente proyecto"
   4) Banner de cookies + enlaces legales de footer
   5) Tipografía de páginas legales
   ========================================================================= */

/* Evita scroll horizontal provocado por los elementos a 100vw (full-bleed) */
html, body {
  overflow-x: hidden;
}

/* --- 0) Reducir el hueco en blanco de la cabecera de la home ----------- */
/* El .header-component original de Webflow tiene una altura explícita de
   300vh en escritorio (992px+) y 250vh en tablet (768-991px) para fijar
   ("pin") la cabecera mientras se hace scroll. Eso deja 2-2.5 pantallas
   de espacio en blanco antes de llegar a "Sobre mí". Se reduce a un
   "pin" más corto mantenendo algo del efecto. En mobile (<=767px) ya
   era 100vh (sin espacio extra) y se deja como estaba. */
@media screen and (min-width: 992px) {
  .header-component {
    height: 140vh;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .header-component {
    height: 120vh;
  }
}

/* --- 1) Imágenes de proyecto a ancho completo ------------------------- */
.section-project-showcase .gallery-component {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.section-project-showcase .gallery-component img:not(.isotipo-grid-mobile-image) {
  width: 100%;
  display: block;
}

/* Imagen de cabecera ("hero") de cada proyecto, también a ancho completo */
.main-wrapper > img {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: block;
  height: auto;
}

/* --- 2) Grid interactivo de isotipos (proyecto CLM) -------------------- */
.isotipo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  width: 100%;
  aspect-ratio: 1 / 1;
}

.isotipo-grid-item {
  background-image: url("../images/6a9a8530c2a59f1a668f456e_branding-red-de-areas-protegidas-de-clm-isotipos-mcarmentorres.jpg");
  background-size: 700% 700%;
  background-repeat: no-repeat;
  opacity: 0.2;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.isotipo-grid-item:hover,
.isotipo-grid-item:focus-visible {
  opacity: 1;
}

.isotipo-grid-mobile-image {
  display: none;
}

@media screen and (max-width: 991px) {
  .isotipo-grid {
    display: none;
  }
  .isotipo-grid-mobile-image {
    display: block;
  }
}

/* --- 3) Bloque "Siguiente proyecto" ------------------------------------ */
.section-next-project {
  background-color: var(--black);
  overflow: hidden;
}

.next-project-link {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 4rem 5%;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.next-project-link:hover {
  background-color: #141414;
}

.next-project-link:hover .next-project-title {
  transform: translateX(12px);
}

.next-project-link:hover .next-project-arrow {
  transform: translateX(8px);
}

.next-project-label {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

.next-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.next-project-title {
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  transition: transform 0.3s ease;
}

.next-project-arrow {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

@media screen and (max-width: 767px) {
  .next-project-title {
    font-size: 1.6rem;
  }
  .next-project-link {
    padding: 2.5rem 6%;
  }
}

/* --- 4) Banner de cookies + enlaces legales ---------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--black);
  color: var(--white);
  padding: 1.25rem 5%;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-text {
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 56rem;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--orange);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  border: 1px solid var(--white);
  background-color: transparent;
  color: var(--white);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  opacity: 0.8;
}

.cookie-btn.is-primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #000;
}

@media screen and (max-width: 767px) {
  .cookie-banner {
    flex-flow: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* Grupo izquierdo del footer: copyright + tagline juntos, enlaces legales a la derecha */
.footer-left {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 4px 12px;
  flex: 1;
}

.footer-left .footer-text {
  flex: none;
  order: 0;
}

.footer-left .footer-text.rigth {
  text-align: left;
  justify-content: flex-start;
  order: 0;
}

.footer-legal-links {
  order: 1;
  flex: none;
  display: flex;
  flex-flow: row wrap;
  gap: 4px 16px;
  font-size: 12px;
}

.footer-legal-links a {
  color: var(--black);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .footer-legal-links {
    order: 0;
  }
}

/* --- 5) Páginas legales ------------------------------------------------- */
.legal-content {
  padding: 6rem 0 5rem;
}

.legal-content h1 {
  color: var(--black);
  font-family: Inter, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-content h2 {
  color: var(--orange);
  font-family: Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--black);
  font-family: Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--orange);
}

.legal-updated {
  color: var(--dark-grey);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal-back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--black);
  text-decoration: underline;
  font-family: Inter, sans-serif;
}

.section-legal,
.not-found-section {
  background-color: var(--white);
}

/* --- 6) Ocultar el badge "Made in Webflow" ------------------------------ */
.w-webflow-badge {
  display: none !important;
}

.not-found-section {
  min-height: 60vh;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 5%;
}
