/*   -------------------------------ESTILOS COMUNES------------------------------------  */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Montserrat, sans-serif;
}

body {
  background-color: #f2f2f2;
  font-family: 'Georgia', serif;
  color: #7f7270;
  line-height: 1.6;
}

h1 {
  font-size: 44px;
  color: #7f7270;
}

h2 {
  font-size: 44px;
  line-height: 1.3;
  margin: 0;
  color: #7f7270;
}

.pre-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: #8a7e7c;
  margin-bottom: 10px;
}

section {
  /* max-width: 940px; */
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------HEADER----------------------------------------------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f2f2f2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #3d3d3d;
}

.container-logo {
  display: flex;
  align-items: center;
  width: 20%;
}

nav {
  width: 70%;
  text-align: center;
}

nav a {
  margin-left: 1.5rem;
  position: relative;
  text-decoration: none;
  color: #3d3d3d;
  font-weight: normal;
  transition: font-weight 0.3s ease;
}

nav a:hover {
  font-weight: bold;
  /* border-bottom: 3px solid #2b1f1f; */
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  /* ajusta según tu diseño */
  width: 100%;
  height: 3px;
  background-color: #2b1f1f;
  /* color de la línea */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}


.header-links {
  width: 20%;
  text-align: end;
}

.header-links img {
  width: 25px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}


/* ----------------------------------------MAIN SECTION---------------------------------------- */

.fondo-main {
  background: linear-gradient(to right, #f2f2f2 0% 70%, #95a7bf 0% 30%);
  margin-bottom: 40px;
}

.main-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.main-container {
  position: relative;
  z-index: 5;
  display: flex;
  max-width: 1200px;
  gap: 50px;
  margin: 50px 150px 50px 150px;
}

.main-container-text {
  position: relative;
  z-index: 2;
  display: flex;
  width: 50%;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: flex-start;
  gap: 17px;
  padding-top: 50px;

}

.main-container-image {
  align-items: center;
}


.grid {
  max-width: 940px;
  padding-top: 40px;
  padding-bottom: 40px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
}

/* -------------------------------------ABOUT SECTION--------------------------------------- */

.about-section {
  background-color: #fdfaf5;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  font-family: 'Georgia', serif;
  color: #4a3b38;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-subtitle {
  font-size: 18px;
  color: #9b8f8c;
  font-weight: 500;
}

.about-middle p,
.about-right p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #7a6f6d;
  text-align: justify;
}

.about-right ul {
  padding-left: 20px;
  list-style-type: square;
  color: #7a6f6d;
}

.about-right li {
  margin-bottom: 10px;
}

.dropcap {
  font-size: 30px;
  float: left;
  line-height: 1;
  padding-right: 4px;
  font-weight: bold;
  color: #4a3b38;
}

.approach-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.approach-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.approach-item {
  width: 250px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.approach-item img {
  height: 70px;
  margin-bottom: 15px;
}

.approach-item img:hover {
  animation: balanceo 0.6s ease-in-out infinite;
}

@keyframes balanceo {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

.approach-item .title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.approach-item .symbol {
  font-weight: bold;
  margin-left: 5px;
}

.approach-item .content {
  margin-top: 15px;
  font-size: 15px;
  color: #665e5e;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  text-align: justify;
}

.approach-item.open .content {
  max-height: 250px;
  opacity: 1;
}

.approach-item.open .symbol {
  content: "–";
}

/* --------------------------------------SERVICIOS SECTION------------------------------------- */
.servicios-section {
  font-family: 'Georgia', serif;
  color: #4a3b38;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  padding-bottom: 40px;
}

.s-tittle-left {
  width: 55%;
}

.fondo-servicios {
  background: linear-gradient(to right, #f2f2f2 0% 55%, #95a7bf 0% 45%);
}

.servicios-container {
  margin: 0;
}

.s-tittle-right {
  padding: 20px;
  margin-bottom: 30px;
  margin-left: 15px;
  font-size: 16px;
  line-height: 1.6;
  width: 45%;
  color: #f2f2f2;
}

.tarjetas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tarjeta {
  background-color: white;
  width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 4px;
}

.tarjeta:hover {
  .info {
    background-color: #8C0335;
    ;
  }
}

.tarjeta img {
  width: 100%;
  height: 80%;
  display: block;
}

.info {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: bold;
  height: 20%;
}

/* -------------------------------------BLOG SECTION----------------------------------- */
.blog-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.blog-title h2 {
  font-size: 44px;
  line-height: 1.3;
  margin: 0;
  color: #7f7270;
}

.blog-description {
  max-width: 500px;
  color: #5c4f4f;
  font-size: 15px;
  line-height: 1.7;
  height: 50%;
}

.blog-description p {
  margin-top: 15px;
  color: #7f7270;
  text-align: justify;
  font-size: 16px;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.post {
  /* background-color: #fdf9f4; */
  padding-bottom: 10px;
  border: 1px solid #2c1a1a;
}

.post img {
  width: 100%;
  height: 400px;
  display: block;
  margin-bottom: 20px;
}

.post .meta {
  font-size: 13px;
  color: #8a7e7e;
  font-style: italic;
  margin-bottom: 10px;
}

.post h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post .excerpt {
  font-size: 15px;
  color: #6e6363;
  line-height: 1.6;
  margin-bottom: 20px;
}

.link-blog {
  font-weight: 800;
  color: #8C0335;
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-block;
  background-color: #8C0335;
  color: white;
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
}

.btn:hover {
  transform: scale(1.08);
  /* ampliación suave */
  background-color: #a00000;
  /* tono más claro */
}

/* Añadir desplazamiento a la segunda tarjeta */
.blog-posts .post:nth-child(2) {
  transform: translateY(40px);
}

.content-blog {
  padding: 10px;
}

/* -------------------------------------TESTIMONIALS SECTION----------------------------------- */
.testimonials {
  text-align: center;
  padding: 50px;
  background-color: #95a7bf;
}

.testimonials h2 {
  font-size: 44px;
  margin-bottom: 10px;
  color: #f2f2f2;
}

.testimonials p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 40px;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}

.testimonial {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
}

.testimonial blockquote {
  font-size: 1em;
  color: #333;
  margin: 0;
}

.testimonial cite {
  display: block;
  margin-top: 20px;
  font-size: 0.9em;
  color: #999;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ---------------------------------------CONTACT SECTION----------------------------------- */

.contacto {
  padding: 0;
  margin: 80px auto;
}

.contenedor-contacto {
  display: flex;
}

.info-contacto {
  background-color: #95a7bf;
  padding: 40px 30px;
  margin: 40px 30px;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.etiqueta {
  color: #aaa;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 10px;
  font-size: 44px;
  font-weight: bold;
}

.nombre {
  margin: 10px 0 5px;
  font-weight: 500;
}

.colegiado {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

.punto {
  font-size: 20px;
  margin-bottom: 10px;
}

.info-contacto p,
.info-contacto a {
  font-size: 15px;
  margin: 5px 0;
  color: #f2f2f2;
  text-decoration: none;
}

.info-contacto a:hover {
  font-size: 15px;
  margin: 5px 0;
  color: #95a7bf;
  background-color: #f2f2f2;
  ;
  text-decoration: none;
}

.redes {
  margin: 15px 0;
}

.redes a {
  color: #000;
  margin: 0 8px;
  font-size: 18px;
}

.redes a:hover {
  color: #000;
  margin: 0 8px;
  font-size: 18px;
  background-color: transparent;
}

.boton-sesion {
  margin-top: 20px;
  /* background-color: #444; */
  color: #f2f2f2;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #f2f2f2;
}

.mapa {
  width: 50%;
}

/* ----------------------------------------ONLINE SECTION----------------------------- */

.online-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  font-family: 'Georgia', serif;
  color: #4a3b38;
}

.session-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.session-text {
  flex: 1;
}

.section-subtitle {
  font-size: 18px;
  color: #7f7270;
  margin-bottom: 30px;
}

.session-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.servicios-title {
  display: flex;
}

.session-icon img {
  width: 75px;
  height: 75px;
  /* border-radius: 50%; */
  background: #f2f2f2;
  margin-right: 20px;
}

.session-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #7f7270;
}

.session-info p {
  color: #8c7d7b;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.session-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.session-image img {
  max-width: 100%;
  border-radius: 20px;
}

.separador {
  height: 1px;
  background-color: #95a7bf;
  width: 50%;
  margin: 20px auto;
}

.prev-next {
  display: none;
  background: none;
  border: none;
}

.prev-next img {
  width: 75px;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.oculto {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}

.visible {
  animation: aparecer 1.5s ease forwards;
  visibility: visible;
}

#btnSubir {
  position: fixed;
  bottom: 70px;
  right: 10px;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
  z-index: 1000;
  user-select: none;
}

#btnSubir.visible {
  opacity: 1;
  visibility: visible;
}

#btnSubir:hover,
#btnSubir:focus {
  background-color: #fafafa;
  outline: none;
}


/** --------------------------------------BLOG PAGE----------------------------------- */

.blog {
  display: flex;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  flex-flow: wrap;
  align-items: stretch;
  margin-top: 25px;
  align-items: center;
}

.blog-container {
  display: flex;
  flex-flow: wrap;
  align-items: stretch;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.blog-card {
  width: 30%;
  border: 1px solid #e0e0e0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 20px auto;
  height: 600px;
}

.blog-card:hover {
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

.blog-image {
  width: 100%;
  height: auto;
  display: block;
  height: 45%;
}

.blog-content {
  padding: 20px;
  height: 55%;
}

.blog-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1a1a1a;
  height: 30%;
}

/* .blog-description-page {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
  height: 45%;
  p {
    font-size: 18px;
  }
} */

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  font-size: 14px;
  height: 20%;
}

.blog-date {
  color: #555;
}

.blog-link {
  color: #95a7bf;
  font-weight: bold;
  text-decoration: none;
}

.blog-link:hover {
  text-decoration: underline;
}

.post-header {
  margin-top: 2rem;
}

.post-header img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.meta {
  color: #777;
  font-size: 0.9rem;
  margin: 0.5rem 0 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-top: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 0.5rem;
}

ul {
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: 0.6rem;
}

        .blog-page {
            max-width: none;
            margin: 40px 40px 20px;
            display: flex;
        }

        .blog-left {
            width: 70%;
            padding-right: 20px;

            a {
                text-decoration: none;
                color: black;
                font-weight: bold;
            }

            a:hover{
                color: #8C0335;
            }
        }

        .blog-right {
            flex: 0 auto;
            align-self: auto;
            margin-left: 0;
            padding-left: 15px;
            width: 30%;

            a:hover {
                color: #8C0335;
            }
        }

        .last-blogs {
            margin-top: 150px;
            display: block;
            color: #363636;
            margin-top: 10px;
            margin-bottom: 5px;
            font-family: Helvetica neue roman, sans-serif;
            font-size: 20px;
            text-decoration: none;
            display: block;
        }

.callout {
  background: #dbd9d9;
  padding: 1rem;
  border-left: 4px solid #95a7bf;
  margin: 2rem 0;
}

/** ---------------------------------------FOOTER----------------------------------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid;
  padding-top: 20px;
  margin: 20px;
}

.footer p {
  font-size: small;
  margin: 0%;
}

.footer-info {
  width: 20%;
}

.footer-info a {
  text-decoration: none;
  color: #7f7270;
}

.footer-img {
  gap: 10px;
  text-align: end;
  width: 20%;
  
}

.footer-logo {
  width: 250px;
}
        .list-items {
            display: flex;
            flex-direction: column;
        }

        .list-items a {
            text-decoration: none;
            color: #95a7bf;
            margin-bottom: 10px;
        }
        .links-blog {
            justify-content: center;
            align-items: center;
            margin-top: 25px;
            display: flex;
            gap: 25px;
            
            img {
                width: 75px;
            }
        }

/**------------------------------RESPONSIVE DESIGN----------------------------------- */

@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: self-start;
    padding: 1rem;
    display: flex;
  }

  .container-logo,
  .header-links {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
  }

  nav {
    width: 100%;
    text-align: left;
    position: relative;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #f2f2f2;
    padding: 1rem;
    margin-top: 3rem;
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 18px;
  }

  .nav-links.active {
    display: flex;
  }

  .header-links img {
    margin: 0 10px;
  }

  .fondo-main {
    background: #f2f2f2;
    margin-bottom: 40px;
  }

  .main-container {
    margin: 50px 50px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-container img {
    width:350px;
    height: 466px;
  }

  .main-container-text {
    width: 100%;
    align-items: center;
    padding-top: 20px;
  }

  .about-container {
    display: block;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .servicios-section,
  .sobre-mi,
  .online-section,
  .blog-section {
    padding: 20px 20px;
    margin: 60px auto;
    font-size: 14px;
  }

  .blog-title h2,
  .section-title,
  .about-title {
    margin-top: 0;
    font-size: 28px;
    text-align: start;
  }

  .about-container p,
  .session-container p,
  .servicios-title p,
  .blog-description p,
  .testimonials p{
    font-size: 14px;
    color: #7f7270;
  }

  .contenedor-contacto {
    flex-direction: column;
  }

  .info-contacto,
  .mapa {
    width: 100%;
  }

  .footer-logo{
    width: 150px;
  }
   .footer {
        flex-direction: column;
        text-align: center;
      }

      .footer-info,
      .footer-img {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px
      }


  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonials h2 {
    font-size: 28px
  }

  .about-container {
    display: block;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .servicios-title {
    flex-direction: column;
  }

  .tarjetas {
    flex-direction: column;
    align-items: start;
  }

  .tarjeta {
    width: 80%;
    max-width: 90%;
  }

  .blog-header {
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-container {
    display: flex;
    overflow: hidden;
    width: 100%;
  }

  .testimonials {
    padding: 10px;
  }

  .testimonial {
    min-width: 100%;
    transition: transform 0.5s ease;
  }

  .testimonial p {
    font-size: 14px;
  }

  .session-container {
    flex-direction: column;
    gap: 30px;
  }

  .s-tittle-right,
  .s-tittle-left {
    text-align: start;
    color: #7f7270;
    padding: 0;
    width: 75%;
  }

  .blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: start;
  }

  .post {
    border: none;
  }

  .btn {
    width: 40%;
    text-align: center;
  }

  .info-contacto {
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .fondo-servicios {
    background: linear-gradient(to right, #f2f2f2 0% 75%, #95a7bfd1 0% 25%);
  }

      .blog-card {
        width: 90%;
      }

  .blog-page {
      flex-direction: column;
          padding: 20px 20px;
    margin: 0px auto;
    font-size: 14px;
  }

  .blog-left {
      width: 100%;
      padding-right: 0;
  }

  .blog-right {
      width: 100%;
      padding-left: 0;
      margin-left: 0;
  }

  .list-items a {
      text-decoration: none;
      color: #95a7bf;
  }

  .links-blog img {
    width: 50px;;
  }

  #btnSubir {
    display: none;
}

}

@media (max-width: 480px) {

  .container-logo {
    width: 50%;
  }
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .subtitulo {
    text-align: start;
  }

  .sobre-mi {
    margin: 80px auto;
    padding: 0 20px;
  }

  .approach-container {
    flex-direction: column;
    align-items: center;
  }

  .approach-item {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
  }



  .post img {
    height: auto;
  }

  .session-icon img {
    width: 60px;
    height: 60px;
    /* border-radius: 50%; */
  }

  .testimonial-container {
    display: flex;
    overflow: hidden;
    width: 100%;
  }

  .testimonial {
    min-width: 100%;
    transition: transform 0.5s ease;
  }

  .carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    flex-direction: unset;
  }

  .testimonial-container {
    transition: transform 0.5s ease;
  }

  .testimonial-container.moving {
    transition: transform 0.5s ease-in-out;
  }

  .blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: start;
  }

  .post {
    border: none;
  }

  .btn {
    width: 40%;
    text-align: center;
  }

  .prev-next {
    display: flex;
  }

    .prev-next img {
      width: 50px;
    }
  }