/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #333;
}

.header {
  background: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: bold;
  color: #d94f6a;
  font-size: 1.5rem;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  text-align: center;
  background: #f7f7f7;
  padding: 2rem 1rem;
  background-image: url(./img/portada-blatam\ \(2\).svg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 600px;
  text-shadow: 1px 1px 2px gray;

}

.hero h1 {
  font-size: 14dvw;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 15px;
  line-height: 0.6;
  color: #194479;
  display: inline-block;
  animation-duration: 2s;
}

.subtitulo {
  font-size: 3dvw;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 5px;
  color: #4C4C50; 
}

.btn {
  padding: 0.7rem 1.5rem;
  background-color: #d94f6a;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  width: 15rem;
  height: 3.5rem;
  font-size: 1.5rem;
  font-family: "Inter", sans-serif;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;

}
.btn:hover {
  background-color: #E60023;
}
h2 {
  font-family: "Alfa Slab One", serif;
  font-size: 2.5rem;
  font-weight: 200;
  font-style: normal;
  color: #4C4C50;
}

.info {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 2rem 1rem;
  gap: 1rem;
}

.card-izq, .card-der {
  background: #d94f6a;
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  width: 50%;
  animation-timeline: view();
  animation-range: entry 50% contain 10%;
  animation-fill-mode: both;
  animation-duration: 10s;
  font-size: 1.3rem;
  font-family: "Inter", sans-serif;

  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

}
.card-der {
  position: relative;
  animation-name: entrada-der;
}

.card-izq {
  position: relative;
  animation-name: entrada-izq;  
}

@keyframes entrada-der {
  from   {left: -560px;}
  to  {left: 0px;}
}

@keyframes entrada-izq {
  from   {right: -560px;}
  to  {right: 0px;}
}

.quote {
  padding: 2rem 1rem;
  text-align: center;
}

.quote h2 {
  margin-bottom: 1rem;
}

.medico {
  display: flex;
  width: 600px;
  height: 430px;
  justify-content: center;
  margin: auto;

}

.medico img {
  width: 0;
  flex-grow: 1;
  object-fit: cover;
  opacity: .8;
  transition: .5s ease;
}

.medico img:hover{
  cursor: crosshair;
  width: 300px;
  opacity: 1;
  filter: contrast(120%);
}

.doctors img {
  width: 100%;
  border-radius: 8px;
}


/*Equipo*/

.equipo {
  display: flex;
  justify-content: center;
  gap: 25px;
}

figure {
  display: grid;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;

}
figure > * {
  grid-area: 1/1;
  transition: .4s;
}
figure figcaption {
  display: grid;
  align-items: end;
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  padding: .75rem;
  background: var(--c,#0009);
  clip-path: inset(0 var(--_i,100%) 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0),
    linear-gradient(#000 0 0);
  -webkit-mask-clip: text, padding-box;
  margin: -1px;
}

figure:hover figcaption{
  --_i: 0%;
}
figure:hover img {
  transform: scale(1.2);
}
@supports not (-webkit-mask-clip: text) {
  figure figcaption {
   -webkit-mask: none;
   color: #fff;
  }
}
/*Fin Equipo*/

.accordion-section {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  align-items: stretch;
}

.text-box {
  background-color: #d94f6a;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.accordion {
  font-size: 1.3rem;
  font-family: "Inter", sans-serif;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}
.accordion details {
  background: #eee;
  padding: 1rem;
  border-radius: 5px;
}

.accordion summary {
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;

}

footer {
  background: #d94f6a;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.map {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.map i {
  font-size: 1rem;
}
.derechos {
  font-size: 0.8rem;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;

}
.social-icons a {
  color:  #eee;
  font-size: 1.5rem;
}

/* Responsive ajustes mayores */
@media(min-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: left ;
    padding: 4rem;
  }

  .info {
    flex-direction: row;
    justify-content: space-around;
  }

  .accordion-section {
    flex-direction: row;
  }

  .text-box {
    flex: 1;
  }

  .accordion {
    flex: 2;
  }
  .img-desplegable {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media(min-width: 768px) {
  .card {
    width: 100%;
  }
}

@media(max-width: 768px) {
  .card-izq, .card-der {
   width: 100%;
  }
  .info {
    align-items: center;
  }
  .equipo {
    flex-direction: column;
    align-items: center;
  }
  .hero {
    background-image: url(./img/portada-blatam\ \(768\ x\ 768\ px\)\ \(1\).svg);
    background-size: cover;
  }
}

@media(max-width: 560px) {
  .hero {
    background-image: url(./img/portada-blatam\(350\ x\ 600\ px\).svg);
    background-size: cover;
  }
  .hero-text {
    margin-top: 60%;
  }
  nav a {
    font-size: 0.8rem;
  }
}

