body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
}

html {
  scroll-behavior: smooth;
}

h2 {
  color: #009E9B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.topbar {
  background-color: #009E9B;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed !important;
  width: 100%;
  top: 0;
}

.topbar .logo img {
  height: 40px;
}

.topbar nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-weight: 600;
}

.topbar nav a {
  color: white;
  text-decoration: none;
}

.topbar nav a:hover {
  opacity: 0.8;
}

.topbar .contacto {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar .contacto i {
  color: white;
}






.hero-text h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.2rem;
}



.form-section {
  background-color: #009E9B;
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
}

.form-container {
  background: white;
  border-radius: 25px;
  padding: 3rem;
  width: 100%;
  max-width: 850px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.form-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  height: 120px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row input {
  flex: 1;
}

.whatsapp-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.submit-btn {
  background: #009E9B;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  float: right;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

footer {
  background-color: #222;
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  background: #111;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

.footer-bottom {
  color: white;
}

h1,
h2,
h3,
h4,
h5,
h6,
.submit-btn,
.hero-text a {
  font-family: 'Montserrat', sans-serif;
}

.hero-header {
  position: relative;
  height: clamp(300px, 90vh, 700px);
  overflow: hidden;
  background-image: url('../assets/img/eyeBg.avif');
  background-size: cover;
  background-position: center;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)),
    url('../assets/img/eyeBg.avif') no-repeat center center / cover;
  z-index: 0;
}
.hero-text h1,
.hero-text p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



.hero-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 2;
}


.map-wrapper {
  width: clamp(250px, 40vw, 400px);
}

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 10px;
}



.hero-text h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.hero-text a {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: white;
  border-radius: clamp(20px, 3vw, 25px);
  text-decoration: none;
  margin-right: 1rem;
  display: inline-block;
}



.hero-text a {
  transition: all 0.1s ease;
  margin-top: 1rem;
}


main {
  padding: 3rem 2rem;
}

.info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


.location,
.contact,
.email {
  display: flex;
  align-items: center;
  gap: 1rem;
}

section h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1rem;
}

section p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

section ul li {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.nav-toggle {
  display: none;
}

.nav-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  padding-right: 2rem;
}

.nav-icon span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navegacion nav {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  overflow: hidden;
}

@media (max-width: 570px) {
  .navegacion nav {
    display: flex;
    flex-direction: column;
    background-color: #009E9B;
    padding: 0;
    max-height: 0;
    opacity: 0;
  }

  .nav-toggle:checked+.nav-icon+.navegacion nav {
    padding: 1rem;
    max-height: 500px;
    opacity: 1;
  }

  .nav-icon {
    display: flex;
  }


  .topbar {
    min-height: 8vh;
  }

  .navegacion{
    width: 10rem;
    margin: 0 auto;
  }
  .buttons{
    >a {
      >button{
        height: 47px;
      }
    }
  }
}



@keyframes fadeIn {
  to {
    opacity: 1;
  }
}



.section-card {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
  background-color: #f8f8f8;
  border-radius: 20px;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-card h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  text-align: center;
  color: #00B89F !important;
}

.section-card .divider {
  width: 60px;
  height: 4px;
  background-color: #00B89F;
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

.section-card p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  text-align: left;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.navegacion nav a {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 500;
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}


.navegacion nav a:hover {
  opacity: 0.8;
}

.logoInstagram i {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

@media (max-width: 460px) {
  .navegacion nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .buttons{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .logoAndTitle h3 {
    text-align: center;
  }

  .logoAndTitle{
    align-items: center;
  }

  .hero-header::before {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url('../assets/img/eyeBg.avif') no-repeat center center / cover;

  }
}

.masInfo {
  overflow: hidden;
}

@media (min-width: 1200px){
  .masInfo{
    display: flex;
      gap: 1rem;
      align-items: center;
  }
}

@media (min-width: 1700px){
  .nosotros{
    max-width: 40rem;
  }
}

.button {
  font-size: clamp(1rem, 1.8vw, 0.9rem);
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding: clamp(0.2rem, 1.2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: clamp(20px, 3vw, 25px);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  cursor: pointer;
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}

.button:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.button:hover .icon {
  transform: translate(4px);
}

.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}

.buttons{
  a>button{
    background-color: #009E9B;
  }
}

#especialidades {
  padding: clamp(2rem, 5vw, 4rem);
  background-color: #f8f8f8;
}

#especialidades h2 {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 3rem;
}

.especialidad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.especialidad .texto {
  flex: 1;
  min-width: 280px;
}

.especialidad h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: #009e9b;
  margin-bottom: 0.5rem;
}

.especialidad hr {
  width: 3rem;
  height: 4px;
  background: #009e9b;
  border: none;
  margin-bottom: 1rem;
}

.especialidad p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: #333;
}


.especialidad img {
  flex: 1;
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .especialidad {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .especialidad img {
    max-width: 200px;
    margin-top: 1rem;
  }
}

@media (max-width: 330px) {
  .especialidad .texto {
    min-width: unset;
  }
  
}
  

.footer-bottom {
  background-color: #111;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-bottom a {
  color: #00b89f;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.horarios{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 17px;
}


.logoAndTitle img {
  width: clamp(263px, 19vw, 25rem);
  height: auto;
}

.logoAndTitle{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logoAndTitle{
  >p{
    margin: 1rem 0 1rem 0;
  }
}

.logoAndTitle h3 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

.topbar .logo {
  width: 10%;
}
