@import url('https://fonts.googleapis.com/css2?family=Flamenco:wght@300;400&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --azulTabla: rgb(32, 114, 184);
    --azulTabla2: rgb(29, 112, 183);
    --blancoTabla: rgb(238, 244, 249);
    --grisAnuncios: #756b6b;
    --rojo:      rgb(194, 19, 48);
    --rojoClaro: rgb(219, 5, 40);
    --negro:     rgb(63, 63, 62);
    --gris:      #757575;
    --grisClaro: #e8e8e8;
    --grisFondo: #d4d4d4;
    --blanco:    #fcfcfc;
    --transicion: 0.2s ease;
}


body {
    font-family: "Montserrat", sans-serif;
    /* max-width: 140rem; */
}

/*Elemento de Bienvenida*/
.BienvenidaSA {
    display: flex;
}

.BienvenidaSA div {
    flex-basis: 50%;
    align-self: center;
    justify-self: center;
}

@media (min-width: 721px) {
    .BienvenidaSA {
        flex-direction: row;
    }

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

    .MensajePrincipalSA {
        max-width: 50rem;
        margin: 0 2rem;
    }

    .mensajePrincipalSA__centrar {
        margin: auto;
        margin-bottom: 5rem;
        margin: 0 2rem;
    }

    .SeparacionPlantas {
        margin-top: 4rem;
    }
}

@media (max-width: 720px) {
    .BienvenidaSA {
        flex-direction: column;
    }

    .TituloSA {
        display: inline-flex;
        justify-content: start;
        align-items: center;
        margin-left: 3rem;
        margin-bottom: 5rem;
    }

    .mensajePrincipalSA__centrar p {
        margin-bottom: 3rem;
    }

    .mensajePrincipalSA__centrar {
        margin: 0 3rem;
    }

}

.tituloSA__centrar {
    font-size: 1.3em;
    line-height: 1.3;
}

.mensajePrincipalSA__centrar {
    font-size: 1.9rem;
    text-align: justify;
    /* font-weight: 300; */
}


/*Elemento de Separacion*/
.SeparacionPlantas {
    min-height: 15rem;
    margin-bottom: 6rem;
    background-image: url(../IMAGES/SolicitudAD/plantas.png);
}
/* ═══════════════════════════════════════════════
   SECCIÓN CONTENEDOR
═══════════════════════════════════════════════ */
.proyectos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 3rem 4rem;
  font-family: 'Montserrat', sans-serif;
  background: var(--blanco);
  color: var(--negro);
}
 
/* ── Título de sección ─── */
.proyectos__titulo-seccion {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 2.5rem;
}
 
/* ═══════════════════════════════════════════════
   TARJETA — estructura interna
═══════════════════════════════════════════════ */
.tarjeta-proyecto {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blanco);
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.2rem 1.2rem 1.4rem;
  transition: box-shadow 0.2s ease, outline 0.15s ease;
}
 
.tarjeta-proyecto:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--rojo);
    transform: translateY(-3px);
}
 
/* Cabecera: año + línea roja + tipo */
.tarjeta-proyecto__cabecera {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  min-height: 3.5rem;
}
 
.tarjeta-proyecto__anio {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--negro);
  white-space: nowrap;
  padding-top: 0.05rem;
  flex-shrink: 0;
  font-style: italic;
}
 
.tarjeta-proyecto__linea {
  width: 1px;
  background-color: var(--rojo);
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
 
.tarjeta-proyecto__tipo {
  font-size: 0.68em;
  color: var(--gris);
  line-height: 1.4;
  font-style: italic;
}
 
/* Imagen circular */
.tarjeta-proyecto__imagen-wrap {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--grisClaro);
  margin: 0 auto 1.2rem auto;
  flex-shrink: 0;
}
 
.tarjeta-proyecto__imagen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.tarjeta-proyecto__placeholder {
  width: 100%;
  height: 100%;
  background: var(--grisClaro);
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.tarjeta-proyecto__placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.3;
}
 
/* Título del proyecto */
.tarjeta-proyecto__titulo {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}
 
/* Meta: label + texto */
.tarjeta-proyecto__meta-label {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 0.2rem;
}
 
.tarjeta-proyecto__meta-texto {
  font-size: 0.72em;
  color: var(--gris);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
 
/* El último bloque de texto crece y empuja el botón */
.tarjeta-proyecto__meta-texto:last-of-type {
  flex: 1;
}
 
/* Enlace-wrapper del botón */
.enlace-btn {
  margin-top: auto;
  align-self: center;
  flex-shrink: 0;
}
 
/* Botón Ver más */
.tarjeta-proyecto__btn {
  display: inline-block;
  padding: 0.55rem 1.5rem;
  background-color: var(--blanco);
  color: var(--rojo);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  font-style: italic;
  border: 1px solid var(--rojo);
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transicion), transform 0.15s ease, color var(--transicion);
}
 
.tarjeta-proyecto__btn:hover {
  background-color: var(--rojoClaro);
  transform: translateY(-1px);
  color: var(--blanco);
  border-color: var(--rojoClaro);
}
 
/* ═══════════════════════════════════════════════
   PANELES PAGINADOS (escritorio)
═══════════════════════════════════════════════ */
.proyectos__panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  animation: fadeIn 0.35s ease;
}
 
.proyectos__panel.activo {
  display: grid;
}
 
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
 
/* ═══════════════════════════════════════════════
   PAGINACIÓN (escritorio)
═══════════════════════════════════════════════ */
.proyectos__paginacion {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
}
 
.proyectos__pagina-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 0.15rem solid var(--grisClaro);
  background: white;
  color: var(--negro);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transicion), background var(--transicion), color var(--transicion);
}
 
.proyectos__pagina-btn:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}
 
.proyectos__pagina-btn.activo {
  background: var(--rojo);
  border-color: var(--rojo);
  color: white;
}
 
/* ═══════════════════════════════════════════════
   CARRUSEL MÓVIL/TABLET — oculto por defecto
═══════════════════════════════════════════════ */
.proyectos__carrusel-movil { display: none; }
.proyectos__nav-movil      { display: none; }
 
/* ═══════════════════════════════════════════════
   TABLET  (650px – 1049px)
   → carrusel grid 2 columnas, 2 tarjetas activas
═══════════════════════════════════════════════ */
@media (max-width: 1049px) {
 
  .proyectos {
    padding: 3rem 2rem 4rem;
  }
 
  /* Ocultar paneles y paginación de escritorio */
  .proyectos__panel,
  .proyectos__panel.activo,
  .proyectos__paginacion { display: none !important; }
 
  /* Activar carrusel */
  .proyectos__carrusel-movil {
    display: block;
    position: relative;
    padding: 4px;
  }
 
  /* Cada tarjeta oculta por defecto */
  .proyectos__carrusel-movil .tarjeta-proyecto {
    display: none;
    animation: fadeIn 0.3s ease;
  }
 
  .proyectos__carrusel-movil .tarjeta-proyecto.activa {
    display: flex;
  }
 
  /* Barra de navegación */
  .proyectos__nav-movil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }
 
  .proyectos__nav-btn {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 0.15rem solid var(--rojo);
    background: white;
    color: var(--rojo);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transicion), color var(--transicion);
    flex-shrink: 0;
  }
 
  .proyectos__nav-btn:hover {
    background: var(--rojo);
    color: white;
  }
 
  .proyectos__nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }
 
  .proyectos__nav-btn svg {
    width: 1.2rem;
    height: 1.2rem;
  }
 
  .proyectos__nav-contador {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--gris);
    min-width: 4rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
  }
}
 
/* Tablet: 2 columnas */
@media (min-width: 650px) and (max-width: 1049px) {
  .proyectos__carrusel-movil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4px;
  }
 
  .proyectos__carrusel-movil .tarjeta-proyecto.activa {
    display: flex;
  }
}
 
/* ═══════════════════════════════════════════════
   MÓVIL  (< 650px)
   → 1 tarjeta, contador numérico (igual que tablet)
═══════════════════════════════════════════════ */
@media (max-width: 649px) {
 
  .proyectos {
    padding: 2.5rem 1.2rem 3rem;
  }
 
  .proyectos__carrusel-movil {
    display: block;
  }
 
  .proyectos__carrusel-movil .tarjeta-proyecto.activa {
    display: flex;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }
 
  /* Contador visible en móvil */
  .proyectos__nav-contador {
    display: block;
  }
 
  /* Dots siempre ocultos */
  .proyectos__nav-dots {
    display: none;
  }
}
 
/* =====================================================
   SECCIÓN REPORTAJES — Estilos completos
   Añadir al final del archivo CSS principal
   ===================================================== */
 
/* ── Contenedor general de la sección ── */
.seccion-reportajes {
    padding: 50px 0;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}
 
/* ── Encabezado ── */
.reportajes-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 32px;
    padding: 0 20px;
}
 
.reportajes-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--grisOscuro);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
 
.reportajes-tag {
    color: #7b68ee;
    font-weight: 500;
    font-size: 15px;
    font-style: italic;
    white-space: nowrap;
}
 
 
/* ── Wrapper del carrusel escritorio ── */
.reportajes-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}
 
.reportajes-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 12px 20px 20px;
    flex: 1;
}
 
 
/* ── TARJETA DE REPORTAJE ── */
.tarjeta-reportaje {
    /* Tamaño fijo: independiente al contenido */
    flex: 0 0 calc(33.333% - 16px);
    width: calc(33.333% - 16px);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    /* Transición del efecto hover */
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
    box-sizing: border-box;
}
 
/* Hover: contorno rojo + leve elevación */
.tarjeta-reportaje:hover {
    border-color: #a51d2d;
    box-shadow: 0 4px 18px rgba(165, 29, 45, 0.14);
    transform: translateY(-3px);
}
 
/* Imagen superior de la tarjeta */
.tarjeta-reportaje__imagen {
    width: 100%;
    height: 180px;
    background-color: #d4d4d4;
    flex-shrink: 0;
    /* Cuando tengas imágenes reales usa: */
    /* background-image: url('../images/reportaje1.jpg');
       background-size: cover;
       background-position: center; */
}
 
/* Cuerpo inferior de la tarjeta */
.tarjeta-reportaje__cuerpo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;   /* título arriba, fecha abajo */
    padding: 16px 16px 14px;
}
 
/* Título */
.tarjeta-reportaje__titulo {
    font-size: 15px;
    font-weight: 700;
    color: var(--grisOscuro, rgb(63, 63, 62));
    line-height: 1.45;
    margin: 0 0 12px 0;
}
 
/* Fecha — siempre pegada al fondo derecho */
.tarjeta-reportaje__fecha {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    text-align: right;
    display: block;
    padding-top: 10px;
    border-top: 1px solid #ebebeb;
    margin-top: auto;
}
 
 
/* ── Botones de flechas del carrusel escritorio ── */
/* .btn-flecha ya definido globalmente; estos solo ajustan
   posición si la sección necesita variantes propias. */
.reportajes-nav--desk {
    flex-shrink: 0;
    z-index: 5;
}
 
 
/* ════════════════════════════════════════
   VISIBILIDAD POR BREAKPOINT
   ════════════════════════════════════════ */
 
/* Escritorio: muestra carrusel horizontal, oculta el móvil */
@media (min-width: 801px) {
    .reportajes-wrapper { display: flex; }
    .reportajes-movil   { display: none; }
}
 
/* Tablet / Móvil: oculta el horizontal, muestra el de 1 en 1 */
@media (max-width: 800px) {
    .reportajes-wrapper { display: none; }
    .reportajes-movil   { display: block; }
 
    .seccion-reportajes {
        padding: 30px 20px;
    }
 
    .reportajes-header {
        flex-direction: column;
        gap: 4px;
        padding: 0;
        margin-bottom: 24px;
    }
 
    .reportajes-header h2 {
        font-size: 28px;
    }
 
    .reportajes-tag {
        font-size: 13px;
    }
}
 
@media (max-width: 480px) {
    .reportajes-header h2 {
        font-size: 24px;
    }
}
 
 
/* ════════════════════════════════════════
   CARRUSEL MÓVIL / TABLET
   ════════════════════════════════════════ */
 
.reportajes-movil {
    width: 100%;
    box-sizing: border-box;
}
 
.reportajes-movil__track {
    position: relative;
    min-height: 300px;
}
 
/* Tarjeta en modo móvil: oculta por defecto */
.tarjeta-reportaje--movil {
    display: none;
    flex-direction: column;
    width: 100%;
    min-height: 320px;
    box-sizing: border-box;
    animation: fadeInReportaje 0.32s ease;
}
 
/* Solo la tarjeta activa se muestra */
.tarjeta-reportaje--movil.activa {
    display: flex;
}
 
@keyframes fadeInReportaje {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}
 
/* Imagen más pequeña en móvil */
.tarjeta-reportaje--movil .tarjeta-reportaje__imagen {
    height: 200px;
}
 
/* Título ligeramente más pequeño en móvil */
.tarjeta-reportaje--movil .tarjeta-reportaje__titulo {
    font-size: 16px;
}
 
/* ── Barra de navegación móvil ── */
.reportajes-movil__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
 
/* ── Dots específicos para reportajes ── */
.reportajes-movil__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.dot-r {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d4d4d4;
    transition: background-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    cursor: pointer;
}
 
.dot-r.activo {
    background-color: #a51d2d;
    transform: scale(1.3);
}

/* Tamaño explícito al SVG para que no colapse a 0×0 */
.btn-flecha svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    /* currentColor hereda el blanco del botón */
    stroke: currentColor;
}

/* =====================================================
   Estilo de flechas de REPORTAJES — círculo blanco con
   borde rojo (igual que .proyectos__nav-btn)
   Añadir al final del archivo CSS principal.
   ===================================================== */
 
.reportajes-nav--desk,
.reportajes-nav {
    width: 2rem;
    height: 2rem;
    background: white;
    color: var(--rojo, rgb(194, 19, 48));
    border: 0.12rem solid var(--rojo, rgb(194, 19, 48));
    border-radius: 50%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
 
.reportajes-nav--desk:hover,
.reportajes-nav:hover {
    background: var(--rojo, rgb(194, 19, 48));
    color: white;
}
 
.reportajes-nav--desk svg,
.reportajes-nav svg {
    width: 0.85rem;
    height: 0.85rem;
    stroke: currentColor;
    stroke-width: 2;
}

/* =====================================================
   PARCHE REPORTAJES
   Pegar al final del CSS principal (sobreescribe
   los estilos originales de la sección de reportajes)
   ===================================================== */
 
/* ── 1. Hover tarjeta: solo contorno rojo + alzado,
        sin difuminado (igual que .tarjeta-proyecto) ── */
.tarjeta-reportaje:hover {
    border-color: var(--rojo);
    box-shadow: 0 0 0 1px var(--rojo);   /* refuerza el contorno sin halo */
    transform: translateY(-3px);
}
 
/* ── 2. Flechas: mismo estilo que .proyectos__nav-btn ── */
.reportajes-nav--desk,
.reportajes-nav {
    width: 2.8rem;
    height: 2.8rem;
    background: white;
    color: var(--rojo);
    border: 0.15rem solid var(--rojo);
    border-radius: 50%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transicion), color var(--transicion);
}
 
.reportajes-nav--desk:hover,
.reportajes-nav:hover {
    background: var(--rojo);
    color: white;
}
 
.reportajes-nav--desk svg,
.reportajes-nav svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* Imagen dentro del placeholder gris */
.tarjeta-reportaje__imagen img,
.tarjeta-reportaje__foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}