/* ==============================================
   CARTOGRAFÍAS SOCIALES — CSS
   Usa la variable --page-margin definida en estilos.css:
     clamp(20px, 6vw, 120px)
   Todos los contenedores usan .carto-container
   para respetar el sistema de márgenes global.
   ============================================== */

/* ── Contenedor con márgenes estándar ── */
.carto-container {
  width: 100%;
  max-width: min(1440px, 100%);
  margin-left:  auto;
  margin-right: auto;
  padding-left:  var(--page-margin, clamp(20px, 6vw, 120px));
  padding-right: var(--page-margin, clamp(20px, 6vw, 120px));
  box-sizing: border-box;
}

/* ==============================================
   HERO
   ============================================== */
.cartografias-hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: clamp(40px, 8vw, 120px);
  padding-left: var(--page-margin, clamp(20px, 6vw, 120px));
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/assets/Imagenes de alta resolucion/cartografias-portada.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* El overlay del título hereda de estilos.css (.hero-title-overlay, .page-title) */
.cartografias-hero .hero-title-overlay {
  position: relative;
  z-index: 3;
}

/* ==============================================
   SECCIÓN INTRO — CARTOGRAFÍAS SOCIALES
   ============================================== */
.cartografias-content {
  padding: clamp(56px, 8vw, 140px) 0;
}

/* Título de sección */
.cartomathe-text-col .section-title {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 700;
  color: #142139;
  margin: 0 0 clamp(16px, 2vw, 24px) 0;
  line-height: 1.05;
}

/* Texto de la columna izquierda */
.cartomathe-text-col .content-text {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(15px, 1.6vw, 24px);
  color: #2D3139;
  line-height: 1.55;
  margin-top: clamp(24px, 4vw, 64px);
  margin-bottom: 0;
}

/* Columna de la imagen Cartomathe */
.cartomathe-col {
  display: flex;
  align-items: flex-end;
}

.section-imgder-cartografias {
  position: relative;
  width: 100%;
  max-width: clamp(260px, 38vw, 560px);
  aspect-ratio: 610 / 524;
  background: #092C44;
  border-radius: 20px;
  overflow: visible;
  margin: 0 auto;
}

.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 4px solid #092C44;
}

/* Etiqueta "Cartomathe" */
.content-btn {
  position: absolute;
  z-index: 30;
  bottom: -20px;
  left: -20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #F8AF40;
  border: 2px solid #092C44;
  color: #092C44;
  font-family: 'Switzer', sans-serif;
  font-size: clamp(14px, 1.4vw, 24px);
  font-weight: 600;
  padding: clamp(6px, 0.6vw, 10px) clamp(10px, 1vw, 16px);
  border-radius: 10px;
  box-shadow: 8px 8px 0 0 #092C44;
  pointer-events: none;
  cursor: default;
  white-space: nowrap;
}
.content-btn-static { transition: none; }

@media (max-width: 767.98px) {
  .section-imgder-cartografias {
    max-width: 90%;
    margin: 0 auto;
  }
  .content-btn {
    left: -10px;
    bottom: -14px;
  }
  .cartomathe-text-col .content-text { margin-top: 20px; }
}

/* ==============================================
   PÁRRAFO INTRO CENTRADO
   ============================================== */
.intro-fixed-text {
  padding: clamp(48px, 7vw, 140px) 0;
}

.intro-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

#introParagraph,
.intro-fixed-text .content-text-center {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(18px, 2.4vw, 40px) !important;
  font-weight: 600;
  color: #142139;
  text-align: center;
  line-height: 1.25;
  margin: 0 auto;
}

.intro-fixed-text .highlight-text {
  color: #134074 !important;
  font-weight: 700 !important;
}

/* Separador bajo el párrafo */
.section-separator {
  height: 2px;
  background: #072A40;
  width: min(1000px, 90%);
  margin: clamp(40px, 6vw, 100px) auto 0;
}

/* ==============================================
   DESCRIPTORES
   ============================================== */
.descriptores-section {
  padding: clamp(48px, 7vw, 100px) 0;
  background: transparent;
}

.descriptores-title {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 600;
  color: #142139;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 112px);
}

/* Grid responsive: 3 columnas en desktop, 1 en móvil */
.descriptores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
  justify-items: center;
}

@media (max-width: 991.98px) {
  .descriptores-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .descriptores-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  .descriptor-card-wrapper:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 420px;
    width: 100%;
  }
}

.descriptor-card-wrapper { width: 100%; }

.descriptor-card {
  background: #FFFFFF;
  width: 100%;
  border-radius: 12px;
  padding: clamp(24px, 3vw, 42px) clamp(16px, 2vw, 26px) clamp(32px, 4vw, 62px);
  text-align: center;
  position: relative;
  border: 2px solid #DD8908;
  box-shadow: 8px 8px 0 0 #DD8908;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}
.descriptor-card:hover {
  transform: translateY(-6px);
  box-shadow: 12px 12px 0 0 #DD8908;
}

.descriptor-icon {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 3vw, 40px);
}

/* Iconos */
.circle-icon {
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  border-radius: 50%;
}
.orange-circle { background-color: #F8AF40; }

.yellow-triangle {
  display: block;
  width: 0;
  height: 0;
  border-left:  clamp(50px, 8vw, 100px) solid transparent;
  border-right: clamp(50px, 8vw, 100px) solid transparent;
  border-bottom: clamp(80px, 13vw, 164px) solid #F8AF40;
}

.rect-icon {
  width:  clamp(130px, 20vw, 256px);
  height: clamp(80px, 12vw, 164px);
  border-radius: 20px;
}
.orange-rect { background-color: #F8AF40; }

.descriptor-title {
  font-family: 'Switzer', sans-serif !important;
  font-size: clamp(18px, 2vw, 32px) !important;
  font-weight: 600 !important;
  color: #2D3139 !important;
  margin-bottom: clamp(16px, 2vw, 40px) !important;
}

.descriptor-text {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 400;
  color: #2D3139;
  line-height: 1.5;
  text-align: left;
}

.descriptor-text-bold {
  font-weight: 600;
}

/* ==============================================
   TIPOS DE TEJIDOS
   ============================================== */
.tejidos-section {
  background: #ECF1F8;
  padding: clamp(48px, 7vw, 100px) 0;
}

.tejidos-title {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 600;
  color: #142139;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 80px);
}

.tejido-card {
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
  min-height: clamp(80px, 9vw, 120px);
  border: 4px solid;
  box-sizing: border-box;
}
.tejido-card:hover { transform: translateY(-4px); }

.amarillo-card { border-color: #FFB800; background-color: #FFF9E6; }
.azul-card     { border-color: #2196F3; background-color: #E3F2FD; }
.verde-card    { border-color: #4CAF50; background-color: #E8F5E8; }
.rojo-card     { border-color: #F44336; background-color: #FFEBEE; }
.marron-card   { border-color: #8D6E63; background-color: #F3E5F5; }

.tejido-icon { flex-shrink: 0; }

.diamond-icon {
  width:  clamp(28px, 3vw, 40px);
  height: clamp(28px, 3vw, 40px);
  transform: rotate(45deg);
}
.yellow-diamond { background-color: #FFB800; }
.blue-diamond   { background-color: #2196F3; }
.green-diamond  { background-color: #4CAF50; }
.red-diamond    { background-color: #F44336; }
.brown-diamond  { background-color: #8D6E63; }

.tejido-title {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 600;
  color: #142139;
  margin-bottom: 4px;
}
.tejido-text {
  font-family: 'Switzer', sans-serif;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;
  color: #2D3139;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 575.98px) {
  .tejido-card {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 20px;
  }
  .tejido-icon { margin-bottom: 8px; }
}

/* ==============================================
   SECCIÓN VIDEO
   ============================================== */
.video-section {
  background: #9AD1F5;
  padding: clamp(48px, 7vw, 100px) 0;
}

.video-description-banner {
  margin-bottom: clamp(24px, 4vw, 48px);
  text-align: center;
}

.video-description-banner .video-description {
  font-family: 'Switzer', sans-serif !important;
  font-size: clamp(20px, 3.5vw, 52px) !important;
  font-weight: 600 !important;
  color: #2D3139 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-align: center !important;
}

.video-description-banner .highlight-text {
  color: #0D8135 !important;
  font-weight: 700 !important;
}

/* Wrapper del embed: ocupa todo el ancho del carto-container */
.video-embed-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #092C44;
  box-shadow: 8px 8px 0 #092C44;
}

.video-embed-wrapper .ratio iframe {
  border-radius: 12px;
  display: block;
}