/*  VARIABLES  */
:root {
  --color-principal: #ffffff;
  /* --color-secundary: #04b4e0; */
  --color-secundary: #aca59b;
  --color-o: #4d4f84;

  --color-background: #f2f7f9;
  --color-transparent: transparent;

  --color-icono: #b5b6b7;
  --color-title: #222;
  --color-subtitle: #888;
  --color-text: #555;

  --color-border-reviews: #e5e6e7;
  --color-border-company: #a5a6a7;
  --color-background-certificate: #f5f5f5;
  --color-background-contact: #fcfcfc;
}

/*ESTILOS GENERALES*/

html {
  /*62.5% corresponde a un 10px*/
  font-size: 10px;
}

body {
  width: 100%;
  height: 100%;
  font-family: "Poppins", Helvetica, sans-serif;
  font-size: 1.5rem;
  background-color: var(--color-background);
  color: var(--color-text);
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-title);
}

/*IMAGEN DE FONDO*/
body {
  /* background-image: url(../img/fondo-de-panmtalla.jpg); */
  background-color: rgba(172, 165, 155, 0.365);
  /* border-color: rgb(110, 109, 107); */
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position: -20px -120px; */
}

/*ESTRUCTURA PRINCIPAL*/

.layout {
  position: relative;
  min-width: 1100px;
  width: 80%;
  height: 70vh;
  min-height: 70vh;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10vh;

  /* overflow: hidden; */

  display: grid;
  grid-template-areas: "aside content";
  grid-template-columns: 30% 70%;

  /*Sombra detras del layuot*/
  border-radius: 4rem;
  box-shadow: 0 0 100px -5px rgba(0, 0, 0, 0.25);
}

/*BARRA LATERAL AZUL*/

.layout__aside {
  grid-area: aside;
  border-radius: 4rem 0 0 4rem;
  overflow: auto;
  overflow-x: hidden;
}

.aside__user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  min-width: 30rem;

  background-color: var(--color-secundary);
  color: var(--color-principal);
}

.user-info__container-imagen {
  position: relative;
  display: inline-block;
  width: 18rem;
  margin-top: 7rem;
  z-index: 1;
  margin-bottom: 2rem;
}

.user-info__image {
  width: 100%;
  background-color: var(--color-principal);
  border: 3px solid var(--color-principal);
  border-radius: 20rem;
}
/*sombra del circulo de la imagen*/
.user-info__container-imagen::after {
  content: "hola";
  position: absolute;
  top: 3%;
  left: 6%;
  z-index: -1;
  width: 100%;
  height: 100%;
  /*Esto es para crear el dibujo y luego le damos el tamaño*/
  background: radial-gradient(circle, rgba(250,250,250,0.6) 0%, rgba(225, 225, 225, 0.4) 100%);
  /* background-image: -moz-repeating-radial-gradient(
    center center,
    #fff,
    #fff 1px,
    transparent 0px,
    transparent 100%
  ); */
  background-size: 0.6rem 0.6rem;
  border-radius: 30rem;
  opacity: 0.3;
}

.user-info__name {
  font-size: 3.2rem;
  /* font-weight: 400; */
  letter-spacing: 0.1rem;
  color: var(--color-principal);
}
.user-info__job {
  font-size: 1.7rem;
  font-weight: 200;
  color: var(--color-principal);
  margin-bottom: 2rem;
}

.user-info__links {
  margin-bottom: 0.1rem;
}

.links__social {
  text-align: center;
  display: flex;
  flex-direction: row;
}

.social__option {
  height: 2rem;
  width: 3rem;
  margin: 0 1rem;
  margin-bottom: 5rem;
  font-size: 2.5rem;
  line-height: 3.5rem;
  opacity: 0.8;
}

.social__option:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 300ms ease-in-out;
}

/*BOTON*/
.user-info__btn {
  border: 2px solid var(--color-principal);

  padding: 0.8rem 3rem;
  border-radius: 3.2rem;
  font-size: 2rem;
  color: var(--color-principal);
  box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.8rem;
}

.user-info__btn:hover {
  background-color: var(--color-principal);
  color: var(--color-secundary);
  transition: all 300ms ease-in-out;
}

.user-info__footer {
  position: absolute;
  bottom: 2rem;
  font-size: 1.8rem;
}

/*CONTENEDOR PRINCIPAL*/

.layout__content {
  grid-area: content;
  height: 100%;
  min-height: 100%;
  background-color: var(--color-secundary);
  border-radius: 0 10rem 10rem 0;
}

.content__page {
  min-height: 100%;
  background-color: var(--color-principal);
  border-radius: 0 3.2rem 3.2rem 0;
  border-left: 0.3rem solid var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* text-align: center; */
}

.page__logo {
  width: 50px;
  margin: 0 auto;
  transition: all 1500ms ease-in-out;
}
.content__page:hover .page__logo {
  opacity: 0.1;
  width: 90px;
}

.page__name--o,
.page__name--s,
.page__name--v {
  color: var(--color-secundary);
}

.page__name {
  font-size: 6rem;
  margin-bottom: 1rem;
  text-align: center;
  word-spacing: 1rem;
  transition: all 1500ms ease-in-out;
}
.page__name:hover {
  color: var(--color-secundary);
  text-shadow: 0px 5px 5px var(--color-title);
  opacity: 0.2;
}

.page__job {
  font-size: 2rem;
  font-weight: lighter;
  color: var(--color-subtitle);
  text-align: center;
}

.page__name:hover .page__job {
  color: var(--color-background-certificate);
  opacity: 0;
}

/*EL  MENU  LATERAL*/
/*
.layout__menu {
  display: block;
  position: absolute;
  top: 18rem;
  right: -11rem;
  min-width: 11rem;
  background-color: var(--color-transparent);
}*/
/*
.layout__menu {
  display: flex;
  position: absolute;
  align-content: center;
  right: -11rem;
  min-width: 11rem;
  background-color: var(--color-transparent);
}
*/
.layout__menu {
  display: block;
  position: absolute;
  top: 15rem;
  right: -11rem;
  min-width: 11rem;
  background-color: var(--color-transparent);
}

.menu__list {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--color-principal);
  width: 60%;
  min-height: 32rem;
  padding: 2rem 0;
  margin-left: 2.5rem;
  border-radius: 5rem;
  box-shadow: 0 0 3rem -0.5rem rgba(0, 0, 0, 0.15);
}

.menu__option {
  display: block;
  width: 100%;
  text-align: center;
}

.menu__icon {
  color: var(--color-icono);
  font-size: 2.8rem;
  transition: all 300ms ease-in-out;
}

.menu__overlay {
  position: absolute;
  right: 0;
  margin-top: -3rem;
  opacity: 0;
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-principal);
  background-color: var(--color-secundary);
  white-space: nowrap;
  transition: all 300ms ease-in;
}
.menu__option:hover .menu__icon,
.menu__link--active .menu__icon {
  color: var(--color-secundary);
}

.menu__option:hover .menu__overlay {
  opacity: 1;
  right: 100%;
}

/***********  ESTILOS GENRALES  SOBRE  MI  y CURRICULUM ******************************/

.content__about,
.content__resume,
.content__portfolio,
.content__blog,
.content__contact {
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: auto;
  padding: 6rem;
  padding-right: 3rem;
}

/*Para ajustar lo del scroll de los proyectos*/


.about__header,
.resume__header,
.portfolio__header,
.blog__header,
.contact__header {
  display: inline-block;
  margin-bottom: 4.5rem;
}

.about__title,
.resume__title,
.portfolio__title,
.blog__title,
.contact__title {
  font-size: 3.2rem;
  position: relative;
}

.title__color,
.subtitle__color {
  color: var(--color-secundary);
}

.title__color::after,
.resume__title::after,
.portfolio__title::after,
.blog__title::after,
.contact__title::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: -2.5rem;
  height: 3rem;
  width: 5rem;
  background-image: -webkit-radial-gradient(
    center center,
    var(--color-o),
    var(--color-o) 1px,
    transparent 0px,
    transparent 100px
  );
  background-size: 6px 6px;
  opacity: 0.5;
}

/**************   INFORMACION PERSONAL ***********/

.about__personal-info {
  display: flex;
  width: 100%;
  flex-direction: row;
  margin-bottom: 5rem;
}

.personal-info__bio {
  flex-basis: 55%;
}
.personal-info__description {
  font-size: 1.5rem;
  line-height: 2.4rem;
}

.personal-info__data {
  flex-basis: 45%;
  margin: 0 2.5rem;
  border-left: 5px dotted var(--color-o);
  padding-left: 2.4rem;
}

.personal-info__option {
  margin-bottom: 1rem;
}

.personal-info__title {
  display: inline-block;
  color: var(--color-secundary);
  font-weight: bold;
  margin-right: 0.5rem;
  width: 5.9rem;
  text-align: right;
}
.personal-info__value {
  transition: all 300ms ease-in-out;
}
.personal-info__value:hover {
  word-spacing: -5px;
}
/*Boton de cv*/
.cv__download{
  margin-top: 2rem;
  margin-bottom: 0;
}
.cv__btn{
  background-color: var(--color-secundary);
  color: var(--color-principal);
  text-align: center;
  border: 1px solid var(--color-title);
  border-radius: 1.8rem;
  line-height: 2.8rem;
  width: 70%;
  margin: 0 auto;
  box-shadow: 5px 5px 8px var(--color-secundary);
  transition: all 500ms ease-in-out;
}
.cv__btn:hover{
  background-color: var(--color-principal);
  color: var(--color-secundary);
  box-shadow: 3px 3px 5px var(--color-text);
  font-weight: bold;
}

/****************  LOS SERVICIOS , REVIEWS, CLIENTES ... COMPARTIDOS generales   ***************/
.about__services,
.about__reviews,
.about_why,
.about__clients,
.about__prices,
.about__extra,
.contact__form-header {
  width: 100%;
  margin-bottom: 3rem;
}

.services__header,
.reviews__header,
.why__header,
.clients__header,
.prices__header,
.extra__header,
.resume__subheader,
.form-header__title {
  display: inline-block;
  padding-right: 1.2rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.services__title,
.reviews__title,
.why__title,
.clients__title,
.prices__title,
.extra__title,
.resume__subtitle,
.form-header__title {
  font-size: 2.1rem;
}
.title__color-service,
.title__color-why {
  color: var(--color-secundary);
}
.services__title::after,
.reviews__title::after,
.why__title::after,
.clients__title::after,
.prices__title::after,
.extra__title::after,
.resume__subtitle::after,
.form-header__title::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 0;
  height: 2rem;
  width: 3rem;
  background-image: -webkit-radial-gradient(
    center center,
    var(--color-secundary),
    var(--color-secundary) 1px,
    transparent 0px,
    transparent 100px
  );
  background-size: 6px 6px;
  opacity: 0.5;
}

/*************   LOS SERVICIOS *********************/

.services__container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.services__service {
  width: 50%;
  padding: 0 3rem 2.5rem 0;
}

.service__real-icon {
  color: var(--color-secundary);
  font-size: 3.8rem;
}

.service__title {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.service__description {
  font-size: 1.5rem;
}

/**********  REVIEWS  **********************/
.reviews__container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.reviews__review {
  flex-basis: calc(50% - 2.5rem);
  margin-right: 2.5rem;
  border: 2px solid var(--color-border-reviews);
  border-radius: 2rem;
  padding: 0 2.5rem 1.5rem 2.5rem;
  margin-top: 4.5rem;
  margin-bottom: 1rem;
}

.review__image-container {
  width: 100%;
}
.review_image {
  max-width: 9rem;
  max-height: 9rem;
  border-radius: 9rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: -4.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 10px -6px rgba(0, 0, 0, 0.25);
}

.review__description {
  margin-bottom: 1rem;
}

.review__text {
  font-size: 1.5rem;
  line-height: 2.4rem;
}

.review__author {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.review__name {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.review__company {
  color: var(--color-border-company);
  font-weight: 30rem;
  font-size: 1.3rem;
}

.review__icon {
  font-size: 4rem;
  opacity: 0.5;
  color: var(--color-secundary);
}

/***********  CLIENTES    ***************/
.about__clients {
  width: 100%;
  margin-bottom: 2rem;
}

.clients__header {
  margin-bottom: 3rem;
}

.clients__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.clients__link {
  display: block;
  width: 100%;
  opacity: 0.7;
  transition: all 300ms linear;
}

.clients__link:hover {
  opacity: 1;
}

.clients__image {
  width: 14.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/***************   PRECIOS    *****************/

.prices__container {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: row;
}

.prices__box {
  flex-basis: 50%;
  height: 100%;
  margin-right: 3rem;
  padding: 3rem;
  border: 2px solid var(--color-border-company);
  border-radius: 2rem;
  text-align: center;
  transition: all 300ms ease-in-out;
}

.prices__box:last-child {
  margin-right: 0rem;
}

.prices__box:hover,
.extra__info:hover {
  box-shadow: 0 18px 24px -10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1rem);
}

.prices__subtitle {
  margin-bottom: 3rem;
}

.prices__text {
  position: relative;
  display: inline-block;
}

.prices__box:hover .prices__text::after {
  content: "";
  height: 2px;
  background-color: var(--color-secundary);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
}

.prices__price {
  margin-bottom: 1rem;
}

.prices__number {
  display: block;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--color-title);
}

.prices__advice {
  display: block;
  color: var(--color-subtitle);
}

.prices__buy {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.prices__btn {
  display: inline-block;
  border: 2px solid var(--color-border-reviews);
  box-shadow: 0 10px 10px -8px var(--color-border-reviews);
  border-radius: 3rem;
  padding: 1.2rem 3.1rem;
  transition: all 300ms ease-in-out;
}

.prices__btn:hover {
  border: 2px solid var(--color-secundary);
  background-color: var(--color-secundary);
  color: var(--color-principal);
}

.prices__reward {
  font-size: 1.4rem;
  padding: 0.4rem 0;
}

/***************   INFORMACION   EXTRA   ************************/

.extra__container {
  display: flex;
  margin-bottom: 1.5rem;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.extra__info {
  flex-basis: 30%;
  padding: 2.5rem 1rem;
  border: 2px solid var(--color-border-reviews);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0px 10px 10px -8px rgba(0, 0, 0, 0.15);
  transition: all 300ms ease-in-out;
}

.extra__info:hover {
  transform: translateY(-3px);
}

.extra__icon {
  font-size: 3.3rem;
  color: var(--color-secundary);
  margin-bottom: 1rem;
}

.extra__subtitle {
  font-size: 1.5rem;
  margin: 1.5rem;
}

.extra__quantity {
  display: block;
  margin-top: 1.5rem;
  font-size: 3.6rem;
  line-height: 5rem;
  color: var(--color-subtitle);
}

/******************** ESTILOS PARA CURRICULUM ******************* */

.resume__container {
  width: 100%;
  display: flex;
  flex-direction: row;
}

/* *********  CURRICULUM   IZQUIERDA ************* */
.resume__left {
  flex-basis: 58%;
  margin-right: 1.5rem;
}

.resume__timelines {
  margin-bottom: 5rem;
}

.timeslines__timeline {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
}

.timeline__header {
  flex-basis: 30%;
  text-align: right;
  padding-right: 2.5rem;
}

.timeline__year {
  margin: 0.3rem 0;
  line-height: 1.9rem;
  font-size: 1.4rem;
}

.timeline__company {
  display: block;
  font-size: 1.3rem;
  font-weight: lighter;
  color: var(--color-border-company);
}

.timeline__description {
  width: 70%;
  padding-left: 2.5rem;
  padding-right: 1.5rem;
}

.timeline__title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.timeline__text {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.timeline__divider {
  position: absolute;
  top: 0;
  left: 30%;
  bottom: -1.8rem;
  width: 1px;
  background-color: var(--color-icono);
}

.timeline__divider::before {
  content: "";
  position: absolute;
  margin-top: 0.4rem;
  margin-left: -0.8rem;
  width: 1.7rem;
  height: 1.7rem;
  background-color: var(--color-secundary);
  border-radius: 1rem;
  opacity: 0.25;
}

.timeline__divider::after {
  content: "";
  position: absolute;
  margin-top: 0.8rem;
  margin-left: -0.4rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-principal);
  border: 2px solid var(--color-secundary);
  border-radius: 1rem;
  opacity: 1;
}

/* *********  CURRICULUM   DERECHA ************* */
.resume__right {
  flex-basis: 41%;
  padding: 0 1.5rem;
}

.resume__skills {
  width: 100%;
  margin-bottom: 3rem;
}

.skills__title {
  display: flex;
  justify-content: space-between;
}

.skills__text {
  font-size: 1.3rem;
  line-height: 1.4rem;
  margin-bottom: 0.4rem;
}

.skills__number {
  font-size: 1.1rem;
  line-height: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--color-subtitle);
}

.skills__progressbar {
  width: 100%;
  height: 1rem;
  border: 1px solid var(--color-secundary);
  border-radius: 1rem;
  background-color: var(--color-principal);
  margin-bottom: 1.5rem;
}

.skills__percentage {
  width: 40%;
  height: 0.8rem;
  background-color: var(--color-secundary);
  border: 2px solid var(--color-principal);
  border-radius: 1rem;
}
.skills__percentage--90 {
  width: 90%;
}
.skills__percentage--80 {
  width: 80%;
}
.skills__percentage--70 {
  width: 70%;
}
.skills__percentage--60 {
  width: 60%;
}

.knowledges__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.knowledges__option {
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  background-color: var(--color-secundary);
  border-radius: 0.3rem;
  color: var(--color-principal);
}
/* Certificados */
.certificates__container {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-around;
}

.certificates__certificate {
  flex-basis: calc(30%);
  text-align: center;
  border: 2px solid var(--color-border-reviews);
  border-radius: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.certificate__logo {
  flex-basis: 1;
  width: 15rem;
  height: 100%;
  padding: 2.5rem;
  background-color: #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 500ms ease-in-out;
}

.certificate__logo:hover{
  background-color: var(--color-secundary);
  scale: 95%;
  border-radius: 30px;
}

.certificate__image {
  width: 100%;
}
.certificate__content {
  flex-basis: 2;
  padding: 2rem 2.5rem;
}

.certificate__title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.certificate__id {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  color: var(--color-subtitle);
}

.certificate__date {
  font-size: 1.2rem;
  color: var(--color-subtitle);
  opacity: 0.9;
}

.certificate__btn {
  display: inline-block;
  width: 14rem;
  border: 2px solid var(--color-border-reviews);
  box-shadow: 0 10px 10px -8px var(--color-border-reviews);
  border-radius: 3rem;
  padding: 0.5rem 2.5rem;
  transition: all 300ms ease-in-out;
}

.certificate__btn:hover {
  border: 2px solid var(--color-secundary);
  background-color: var(--color-secundary);
  color: var(--color-principal);
}

.certificate__pdf {
  display: block;
  width: 300px;
  padding: 1rem;
  transition: transform 5s ease-in-out;
}

.certificate__img img {
  width: 200px;
  height: auto;
  transition: ransform 5s ease-in-out;
}
.certificate__btn:hover .certificate__pdf > img {
  /* position: fixed; */
  /* top: 50%;
  left: 50%; */
  transform: translate(-50%, -50%) scale(2);
  z-index: 2;
}

/*********       P O R T F O L I O       ***************************/

.portfolio__navbar {
  margin-bottom: 3rem;
}

.portfolio__menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio__option {
  font-size: 1.3rem;
  opacity: 0.7;
}

.portfolio__option--active {
  opacity: 1;
}

.portfolio__link {
  cursor: pointer;
}

.portfolio__link:hover {
  color: var(--color-secundary);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}

.portfolio__gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.gallery__item {
  position: relative;
  flex-basis: 33%;
  padding: 0.7rem;
}

.gallery__container--image {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 10px 10px 10px 0px rgba(217, 213, 217, 1);
  padding: 1rem;
  transition: box-shadow 300ms ease-in-out;
}
.gallery__item:hover .gallery__container--image {
  box-shadow: 15px 15px 15px 0px rgba(217, 213, 217, 0.8);
}

.gallery__image {
  transition: all 300ms ease-in-out;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.1);
}

.gallery__title {
  font-size: 1.6rem;
  padding: 1.5rem 0;
  font-weight: bold;
  text-align: center;
  transition: all 1s linear;
}
.gallery__item:hover .gallery__title {
  font-weight: 700;
  color: var(--color-o);
}

.gallery__icon {
  opacity: 0;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.6rem;
  text-align: center;
  line-height: 3rem;
  background-color: var(--color-principal);
  color: var(--color-secundary);
  transition: all 500ms ease-in-out;
}
.gallery__git {
  display: block;
  text-align: center;
}

.gallery__category {
  opacity: 0;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.2rem 0.7rem;
  font-size: 1.1rem;

  background-color: var(--color-principal);
  color: var(--color-text);
  transition: all 500ms ease-in-out;
}

.gallery__item:hover .gallery__icon,
.gallery__item:hover .gallery__category {
  opacity: 1;
}

/*******************     BLOG  *************************/

.blog__articles {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.articles__article {
  flex-basis: 50%;
  padding: 0 1.5rem 3.5rem 1.5rem;
}

.article__top {
  position: relative;
  overflow: hidden;
}

.article__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.1rem;
  line-height: 1.5rem;
  padding: 0.1rem 0.7rem;
  background-color: var(--color-principal);
  color: var(--color-subtitle);
  z-index: 10;
}

.article__mask {
  width: 100%;
  height: 18.5rem;
  overflow: hidden;
}

.article__image {
  display: block;
  transition: all 300ms ease-in-out;
}

.article__top:hover .article__image {
  transform: scale(1.1);
}

.article__logo {
  transition: all 300ms ease-in-out;
  opacity: 0;
}
.article__icon {
  position: absolute;
  top: calc(50% - 2.2rem);
  left: calc(50% - 2.2rem);
  width: 4.4rem;
  text-align: center;
  font-size: 4.4rem;
  color: var(--color-principal);
}

.article__top:hover .article__logo {
  opacity: 0.8;
}

.article__botom {
  margin: 0;
  padding: 2.1rem;
  padding-top: 1.5rem;
  border: 0.1rem solid var(--color-border-reviews);
  border-top: 0;
}
.article__date {
  display: block;
  font-size: 1.1rem;

  font-weight: 300;
  color: var(--color-subtitle);
}

.article__title {
  font-size: 1.8rem;
}

/*********************   CONTACTO     *****************************/

.contact__container {
  display: flex;
  flex-direction: row;
}

.contact__info {
  flex-basis: 33%;
  padding: 0 2.5rem;
}

.contact__data {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 2rem 1rem;
  text-align: center;
  background-color: var(--color-background-contact);
  border: 1px solid var(--color-border-reviews);
}

.contact__icon {
  font-size: 3.3rem;
  color: var(--color-secundary);
}

.contact__subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
}

/*Formulario*/

.contact__form-box {
  flex-basis: 66%;
  padding: 0 1.5rem;
}

.form__container {
  display: flex;
  flex-direction: row;
}

.form__left {
  flex-basis: 47%;
  margin-right: 1.5rem;
}

.form__group {
  position: relative;
  margin-bottom: 2.5rem;
}

.form__input,
.form__input--textarea {
  position: relative;
  width: 100%;
  height: 4.2rem;
  display: block;
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-border-reviews);
  border-radius: 0.5rem;
  outline: none;
  box-shadow: 0 1rem 1rem -0.8rem rgba(0, 0, 0, 0.1);
  background-color: transparent;
  line-height: 2.1rem;
}

.form__input:focus {
  border: 0.2rem solid var(--color-secundary);
}
.form__input::placeholder {
  color: transparent;
}
.form__label {
  position: absolute;
  top: 1rem;
  left: 1.6rem;
  color: var(--color-border-company);
  transition: all 300ms ease-in-out;
  pointer-events: none;
}

.form__input:focus ~ label,
.form__input:not(:placeholder-shown) ~ label {
  /*con la virulilla seleciono al elemento hermano*/
  /* al poner el :not --> niego la accion y luego el :placeholder-shown --> muestra lo que hay en el placeholder*/
  top: -2rem;
  left: 0;
  z-index: 1;
  font-size: 1.3rem;
  color: var(--color-secundary);
}

.form__input::-webkit-input-placeholder,
.form__input::-moz-placeholder {
  color: transparent;
}

.form__right {
  flex-basis: 50%;
  max-width: 50%;
  max-height: 100%;
}

.form__group--textarea {
  height: 100%;
}
.form__input--textarea {
  display: block;
  resize: none;
  height: 100%;
}

/* El boton */

.form__button {
  padding: 1rem 3rem;
  font-size: 1.5rem;
  border: 2px solid var(--color-secundary);
  border-radius: 3rem;
  color: var(--color-title);
  background-color: var(--color-principal);
  box-shadow: 0 1rem 1rem -0.8rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 300ms ease-in-out;
}

.form__button:hover {
  background-color: var(--color-secundary);
  color: var(--color-principal);
}

/*EL mapa iframe*/
.contact__map {
  width: 100%;
  min-height: 15rem;
  margin-bottom: 3.5rem;
  overflow: hidden;
}
.contact__iframe {
  width: 100%;
  height: 14rem;
}


/* Estilo general del diálogo */
.dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog__content {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.dialog__image {
  max-width: 100%;
  max-height: 80vh;
}

/* Estilo para el botón */
.btn-show-dialog {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}