/* Ancho máximo del bloque de texto para una lectura cómoda */
.maxw-520 {
    max-width: 520px;
}

/* Contenedor de solapado de imágenes */
.overlap-gallery {
    position: relative;
    min-height: 360px;         /* asegura altura en desktop para el solapado */
}

/* Imagen posterior (la “grande” del fondo) */
.overlap-gallery .photo-back {
    position: absolute;
	top: 120px;
	right: -40px;
	width: 380px;
	height: auto;
}

/* Imagen frontal (la “pequeña” que pisa por encima) */
.overlap-gallery .photo-front {
    position: absolute;
	bottom: -28px;
	left: 8%;
	width: 380px;
	height: auto;
}

/* Ajustes responsivos */
@media (min-width: 992px) {
    .overlap-gallery {
        min-height: 500px;
    }
}

/* En móvil (por debajo de md) deshacemos el posicionamiento absoluto
   para que las imágenes salgan una debajo de otra */
@media (max-width: 767.98px) {
    .overlap-gallery {
        min-height: 0;
    }
    .overlap-gallery .photo-back,
    .overlap-gallery .photo-front {
        position: static;
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }
    .overlap-gallery .photo-back {
        margin-bottom: 1rem;   /* separación entre las dos imágenes en móvil */
    }
}

.footer-texto-empresa {
    width: 100%;
    margin: 0 auto;           /* centrar */
}

@media (min-width: 992px) {   /* breakpoint lg de Bootstrap */
    .footer-texto-empresa {
        max-width: 80%;       /* ajusta aquí 50% o 60% */
    }
}

.bloque-home-fams div:nth-child(2n) {
	margin-top: 60px;
}

.bloque-home-fams a {
  font-size: 24px;
  font-weight: 500;
}

.bloque-home-fams-a-img {
  border: 1px solid #b0d366;
  padding: 6px;
  border-radius: 10px;
}

.bloque-home-fams-a-img img {
  border-radius: 6px;
}

@media (max-width: 767.98px) {
	.bloque-home-fams div:nth-child(2n) {
		margin-top: 0;
	}

	.bloque-home-fams div {
		margin-bottom: 25px;
	}
}

/* --- contenedor y cabecera --- */


.awards{
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) 16px;
}
.awards__head{
  text-align: center;
  margin-bottom: clamp(24px, 6vw, 72px);
}
.awards__head .eyebrow{
  margin: 0 0 6px;
  opacity: .7;
}
.awards__head h2{
  margin: 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- hito (grid responsive) --- */
.milestone{
  display: grid;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  margin-bottom: clamp(28px, 6vw, 80px);
}
.milestone__text .kicker{
  color: #514633;
  letter-spacing: .15em;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.milestone__text h3 {
  font-family: "Viaoda Libre", Georgia, serif;
  font-size: clamp(26px, 1.6vw, 40px);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 35px;
  margin-bottom: 20px;
}
.milestone__text .desc{
  max-width: 52ch;
  margin: 0;
  opacity: .85;
  line-height: 1.7;
}

/* imagen con ratio y recorte */
.milestone__media{
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #cfcfcf;
  border-radius: 6px;
}
.milestone__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- layout desktop --- */
@media (min-width: 992px){
  .milestone{
    grid-template-columns: 1fr 1fr;
  }
  .milestone--img-right .milestone__text{ order: 1; }
  .milestone--img-right .milestone__media{ order: 2; }

  .milestone--img-left .milestone__media{ order: 1; }
  .milestone--img-left .milestone__text{ order: 2; }
}

/* --- curva entre hitos --- */
.curve{
  position: relative;
  height: clamp(120px, 18vw, 220px);
  color: #7b8c6a;        /* color del trazo discontínuo */
  margin: -8px 0 clamp(20px, 5vw, 56px);
}
.curve svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* año sobre la curva */
.curve__year{
  position: absolute;
  top: 38%;
  right: 20%;
  transform: translate(50%, -50%);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  opacity: .8;
}

/* variante si quisieras una curva en sentido opuesto (para más hitos) */
.curve--left svg path{ d: path("M 20,0 C 30,35 50,50 70,65"); }
.curve--left .curve__year{ left: 20%; right: auto; transform: translate(-50%,-50%); }

/* --- móvil/tablet: apilar y centrar --- */
@media (max-width: 991.98px){
  .awards__head h2{ line-height: 1.15; }
  .milestone__text{ text-align: center; margin-inline: auto; }
  .milestone__text .desc{ margin-inline: auto; }
  .curve{
    height: 160px;
    margin: 10px 0 30px;
  }
  .curve svg path{
    /* curva más vertical para móvil */
    d: path("M 50,5 C 50,35 45,60 30,90");
  }
  .curve__year{
    top: 24%;
    right: 50%;
    transform: translate(50%,-50%);
  }
}


.page-title .heading {
  color: white;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.7);
  margin-bottom: 0;
}

.box-title-slider h2 {
  font-weight: 500;
}

.box-title-slider p {
  font-size: 24px;
}

#contactform a {
  text-decoration: underline;
  color: #5c8406;
}