@font-face {
    font-family: "normal";
    src: url('../fuentes/AlteHaasGrotesk_Bold.woff') format('woff');
}
@font-face {
    font-family: "etheris";
    src: url('../fuentes/TARSICARegular.woff') format('woff');
} 
body{
    margin: 0;
    padding: 0;
    font-family: normal;
    background-color: #f6eee6;
    color: #3E5C76;
    font-size: 20px;
}
.salud{
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
}
.salud img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.texto {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #f6eee6;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  z-index: 5;
}
.salud svg,
#fam svg,
.recom svg,
.crianza svg,
.embarazo svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.texto h2 {
  font-size: 40px;
  margin-bottom: 0.3em;
  color: #E27D60;
  font-family: etheris;
}

.texto p {
  font-size: 20px;
  margin-bottom: 1em;
  max-width: 500px;
}

.texto a {
  padding: 7px 15px;
  font-size: 20px;
  background-color: #f8c98b;
  font-family: normal;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  text-shadow: none;
}
.texto a{
  color: #E27D60;
  text-decoration: none;
}
.texto a:hover {
  background-color: #F3B562;
}
#fam{
    position: relative;
    padding-bottom: 300px;
    margin-bottom: 0;
}
.fam{
    background-color: #A3C4BC;
    color: #3E5C76;
    padding: 50px 30px;
    margin: 30px auto 0;
    max-width: 900px;
    border-radius: 16px; 
    width: 80%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}
#fam h1{
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-family: etheris;
    color: #E27D60;
    text-align: center;
}
#fam h1:first-of-type {
    margin-top: 0;
}

#fam p{
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 25px auto;
    color: #f6eee6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.errores{
    z-index: 5;
    margin-top: 0;
    margin: auto;
    align-content: center;
}
.errores h1{
    font-size: 40px;
    text-align: center;
    color: #E27D60;
    font-family: etheris;
}
.pareja{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.info{
    height: 500px;}
.causas{
    height: 500px;
    background-color: #BFD8D2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}
.lol{
    margin-top: 0;
}
.error{
    padding: 10px;
    background-color: #F3B562;
    width: 300px;
    height: auto;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 5;
    border-radius: 20px;
}
.error:hover{
    transform: translateY(-5px);
}
.error h2{
    color: #E27D60;
    font-family: etheris;
    font-size: 30px;
}
.dos{
    background-color: #A3C4BC;
}
.error img{
    padding: 20px;
    width: 100px;
}
div.error{
    transition: opacity 0.8s ease-out;
}
.pareja:has(.error:hover)>:not(:hover){
    opacity: 0.4;
}

.com{
    display: flex;
    gap: 50px;
    float: left;
    margin-left: 20px;
    width: 1000px;
    height: 250px;
    line-height: 20px;
    border-radius: 20px;
}
.tip{
    background-color: #F3B562;
    align-content: center;
}
.two{
    background-color: #A3C4BC;
}
.com img{
    float: left;
    height: 150px;
}
.derecha{
    margin-top: 50px;
    float: right;
    margin-right: 20px;
}


.recom{
    background-color: #E27D60;
    position: relative;
    height: auto;
}
.recom h1{
    z-index: 5;
    background-color: #E27D60;
    font-size: 40px;
    text-align: center;
    color: #3E5C76;
    font-family: etheris;
}
.reco {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    background-color: #E27D60;
    margin-bottom: 0;
    padding-bottom: 300px;
}

.rec article {
    position: relative;
    cursor: pointer;
    width: 350px;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.rec .cont-imagenes {
    width: 100%;
    height: 100%;
}

.rec .cont-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rec article:hover .cont-imagenes img {
    transform: scale(1.1);
}

.rec .cont-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    font-family: "normal", sans-serif;
}

.rec article:hover .cont-text {
    opacity: 1;
}

.cont-text h2 {
    font-family: "etheris", sans-serif;
    font-size: 30px;
    margin: 0 0 10px;
    color: #F3B562;
}

.cont-text p {
    font-size: 18px;
    margin: 0;
}
.crianza{
    background-color: #A3C4BC;
    z-index: 5;
    padding-bottom: 200px;
}
.cri{
  background-color: #3E5C76;
    color: #f6eee6;
    padding: 50px 30px;
    margin: 30px auto 0;
    max-width: 1300px;
    border-radius: 16px; 
    width: 80%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 100px;
}
.crianza h1{
    margin-top: 20px;
    z-index: 5;
    font-family: etheris;
    font-size: 40px;
}
.crianza, .embarazo {
  text-align: center;
  padding: 1px ;
  color: #3E5C76;
  position: relative;
    padding-bottom: 200px;
}

.crianza h1, .embarazo h1 {
    position: relative;
    z-index: 5;
  font-size: 40px;
  margin-bottom: 20px;
  color: #E27D60;
  z-index: 5;
  font-family: etheris;
}

.crianza p, .embarazo p {
  font-size: 20px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.crianza-cajas, .embarazo-cajas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
}

.caja {
  background-color: #F3B562;
  padding: 20px;
  border-radius: 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caja.dos {
  background-color: #A3C4BC;
}

.caja img {
  width: 80px;
  margin-bottom: 15px;
}

.caja h2 {
  color: #E27D60;
  margin-bottom: 10px;
  font-family: etheris;
}

.caja p {
  font-size: 20px;
  color: #3E5C76;
}

.caja:hover {
  transform: translateY(-8px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}
.flip-card {
  background-color: transparent;
  width: 280px;
  height: 400px;
  perspective: 1000px;
  padding: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.flip-card-front {
  background-color: #A3C4BC;
  color: #3E5C76;
}

.flip-card-back {
  background-color: #A3C4BC;
  color: #3E5C76;
  transform: rotateY(180deg);
}

.embarazo-cajas .caja.flip-card {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.embarazo-cajas .caja.flip-card:hover {
    transform: none;
    box-shadow: none;
}

.flip-card-back p {
    font-size: 20px;
    color: #3E5C76;
    margin: 0;
}

.flip-card-front img {
    width: 80px;
    margin-bottom: 15px;
}

.flip-card-front h2 {
    color: #E27D60;
    margin-bottom: 10px;
    font-family: etheris;
}

.contac{
    background-color: #f6eee6;
    margin-top: -60px;
}
.contac h1{
    color: #E27D60;
    margin-top: 120px;
    font-size: 40px;
    text-align: center;
    font-family: etheris;
}
.contactos h2{
    font-family: etheris;
    font-size: 30px;
}
.contactos {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px;
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease-in-out;
}
.columna {
    background-color: #F3B562;
    padding: 20px;
    width: 550px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    animation: slideUp 1s ease-in-out;
}

.columna h4 {
    color: #E27D60;
    text-align: center;
    margin-bottom: 25px;

}
.persona img{
    width: 20px;
    float: left;
    margin-top: 5px;
    padding-right: 5px;
}
.persona {
    background-color: #A3C4BC;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.8s ease-in-out;
    }

.persona:hover {
    transform: scale(1.03);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    }

/* ==== Responsive tablets grandes (max-width: 1200px) ==== */
@media (max-width: 1200px) {
  .container .menu a {
    font-size: 24px;
    padding: 8px;
  }
}

/* ==== Responsive tablets medianos (max-width: 1100px) ==== */
@media (max-width: 1100px) {
  .container .menu a {
    font-size: 20px;
    padding: 6px;
  }
}

/* ==== Responsive tablets pequeños (max-width: 1000px) ==== */
@media (max-width: 1000px) {
  .container .btn-menu {
    display: block;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 24px;
  }
}

/* ==== Responsive tablets (max-width: 992px) ==== */
@media (max-width: 992px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Mostrar botón menú, ocultar menú horizontal */
  .container .btn-menu {
    display: block;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 24px;
  }

  .logo h1 {
    font-size: 32px;
  }

  .logo img {
    height: 40px;
  }

  /* Ajustes para sección hero */
  .salud {
    height: 80vh;
    min-height: 500px;
  }

  .texto h2 {
    font-size: 2.5em;
  }

  .texto p {
    font-size: 18px;
  }

  /* Ajustes para tarjetas */
  .contenedor {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 20px;
  }

  .persona {
    padding: 20px;
  }

  .persona h3 {
    font-size: 1.5em;
  }

  .persona p {
    font-size: 16px;
  }
}

/* ==== Responsive móviles (max-width: 768px) ==== */
@media (max-width: 768px) {
    .pareja {
        display: block;
    }
    .error {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }

.recom{
    background-color: #E27D60;
    position: relative;
}
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Mostrar botón menú, ocultar menú horizontal */
  .container .btn-menu {
    display: block;
    font-size: 28px;
  }

  .container .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .container .menu.active {
    display: flex;
  }

  .container .menu a {
    display: block;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(243, 181, 98, 0.3);
    font-size: 20px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .logo img {
    height: 30px;
  }

  /* Ajustes para sección hero */
  .salud {
    height: 70vh;
    min-height: 400px;
  }

  .texto {
    left: 5%;
    right: 5%;
    bottom: 15%;
    max-width: 90%;
  }

  .texto h2 {
    font-size: 2em;
    text-align: center;
  }

  .texto p {
    font-size: 16px;
    text-align: center;
    max-width: 100%;
  }

  /* Ajustes para tarjetas */
  .contenedor {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 30px 15px;
  }

  .persona {
    padding: 15px;
  }

  .persona h3 {
    font-size: 1.3em;
  }

  .persona p {
    font-size: 14px;
  }

  /* Ajustes SVGs */
  .curvaarriba svg,
  .curva2 svg,
  .curva3 svg {
    width: 100%;
    height: auto;
    display: block;
  }
}

.persona p {
    margin: 5px 0;
    color: black;
    }