/*
COLORES
LILA: #CDAACA
GRIS: #8B8B8B
*/
body {
  font-family: "Montserrat", "Lora", "Lobster", "Playfair", Arial, sans-serif;
  padding: 0;
  margin: 0;
  height: 100%;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}
/*Pagina Inicio*/
/*Menu*/
.menu nav {
  background: white;
  height: 80px;
  width: 100%;
}
.menu img {
  position: absolute;
  padding: 20px 50px;
}
.logo {
  height: 60px;
}
.menu nav ul {
  float: right;
  margin-right: 20px;
}
.menu nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}
.menu nav ul li a {
  color: #8b8b8b;
  font-size: 18px;
  padding: 7px 13px;
  text-decoration: none;
}
.menu li a:hover {
  color: #cdaaca;
  text-decoration: underline;
}
.checkbtn {
  font-size: 30px;
  color: #8b8b8b;
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}
#check {
  display: none;
}
/*Pagina inicio*/
/*Eslogan*/
.tagline img {
  width: 100%;
  filter: brightness(50%);
}
.tagline {
  font-family: "Lora";
  font-size: 40px;
  text-align: center;
  position: absolute;
}
.text-eslog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}
#underline-eslog {
  border-bottom: 4px solid #cdaaca;
  display: inline-block;
}
.redes-sociales{
  margin-top: 800px;
  display: block;
  align-items: center;
}
.redes-sociales img {
  width: 350px;
}
/*Pagina Nosotros*/
/*Acerca de Nosotros*/
.about-us {
  display: flex;
  position: relative;
  gap: 40px;
  width: fit-content;
  padding: 40px;
}
.about-us h2 {
  border-bottom: 4px solid #cdaaca;
  display: inline-block;
  color: #8b8b8b;
}
.about-us img {
  height: 700px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.about-us-text {
  text-align: left;
  font-size: 18px;
  padding-right: 20px;
}
/*Por que elegirnos*/
.why-us {
  display: flex;
  position: relative;
  gap: 40px;
  width: fit-content;
  padding: 40px;  
  flex-direction: row-reverse;
}
.why-us h2{
  border-bottom: 4px solid #cdaaca;
  display: inline-block;
  color: #8b8b8b;  
}
.why-us img{
  height: 700px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);  
}
.why-us-text {
  text-align: left;
  font-size: 18px;
  padding-right: 20px;  
}
/*Nuestro Equipo*/
.our-professionals {
  text-align: center;
  border-bottom: 4px solid #cdaaca;
}
.our-professionals h2 {
  font-size: 30px;
  color: #8b8b8b;
}
/*info Karla*/
#karla {
  display: flex;
  position: relative;
  gap: 40px;
  width: fit-content;
  padding: 40px;
}
#karla img {
  height: 500px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.about-karla h2,
h3 {
  border-bottom: 2px solid #cdaaca;
  display: inline-block;
}
/*info David*/
#david {
  display: flex;
  position: relative;
  gap: 40px;
  width: fit-content;
  padding: 40px;
  border-top: 2px solid #cdaaca;
}
#david img {
  height: 500px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.about-david h2,
h3 {
  border-bottom: 2px solid #cdaaca;
  display: inline-block;
}
/*Convenios*/
.agreetments {
  text-align: center;
  border-bottom: 4px solid #cdaaca;
}
.agreetments h2 {
  font-size: 30px;
  color: #8b8b8b;
}
.agreetments-imgs {
  display: flex;
  gap: 50px;
  justify-content: center;
}
#logo_cacel {
  height: 300px;
  width: 300px;
}
#logo_confiamed {
  height: 300px;
  width: 300px;
}
#logo_proassismed {
  height: 300px;
  width: 350px;
}
/*Footer*/
.contact-info {
  text-align: center;
  background-color: #8b8b8b;
  color: white;
  margin-bottom: 0;
}
/*Pagina Tratamientos*/
/*Info Tratamientos*/
.our-treatments-info {
  position: relative;
  width: fit-content;
  padding: 40px;
}
.our-treatments-info h2 {
  color: #8b8b8b;
  border-bottom: 4px solid #cdaaca;
  flex-direction: column;
  font-size: 25px;
}
.our-treatments-info p {
  font-size: 20px;
}
/*Explora nuestros servicios*/
.treatments {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}
.treatments h2 {
  color: #8b8b8b;
  border-bottom: 4px solid #cdaaca;
  width: 25%;
}
.treatments p {
  font-size: 20px;
}
/* Servicios */
.about-services-title{
  width: 100%;
  padding-left: 20px;
  box-sizing: border-box;  
}
.about-services-title h2 {
  color: #8b8b8b;
  border-bottom: 4px solid #cdaaca;
  width: 25%;
}
.about-services-info p{
  padding-left: 20px;
  font-size: 20px;
}
.services-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px;
  max-width: 100%;
  color: #8b8b8b;
}
.treatment {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.treatment:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.treatment img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.treatment h3 {
  font-size: 20px;
  color: #555;
  margin: 15px 0;
}
/*Pagina faqs*/
.faqs-section{
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}
.faqs-section h2{
  color: #8b8b8b;
  border-bottom: 4px solid #cdaaca;
  width: 19%;  
}
.faqs-section p{
  padding-left: 20px;
  font-size: 20px;  
}
.faqs-list {
  max-width: 100%;
  padding: 20px;
}
/*Preguntas frecuentes*/
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #666;
  padding-bottom: 10px;
}

.faq-item dt {
  cursor: pointer;
  font-weight: bold;
  padding: 10px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.faq-item dt.active {
  background-color: #cdaaca;
  color: white;
}

.faq-item dd {
  margin: 0;
  padding: 10px 10px 10px 20px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.faq-item dd.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/*Contactanos*/
/* ===== SECCIÓN DE CONTACTO ===== */
#contacto {
  background-color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

#contacto h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #000;
}

/* FORMULARIO */
#contacto form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* CAMPOS DEL FORMULARIO */
#contacto input[type="text"],
#contacto input[type="email"],
#contacto textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  outline: none;
  background-color: rgba(255, 255, 255, 0.95);
  color: #000;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
#contacto input::placeholder,
#contacto textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
/* EFECTO FOCUS */
#contacto input:focus,
#contacto textarea:focus {
  border-color: #888;
}
/* BOTÓN */
#contacto button[type="submit"] {
  background-color: #000;
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  align-self: center;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

#contacto button[type="submit"]:hover {
  background-color: #333;
}

/* ===== MAPA UBICACIÓN ===== */
#ubicacion {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

#ubicacion h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #000;
}

.mapa iframe {
  width: 100%;
  max-width: 1000px;
  height: 550px;
  border: none;
  border-radius: 8px;
}
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

#ubicacion {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

#ubicacion h2 {
  font-size: 32px;
  color: #000;
  margin-bottom: 40px;
  font-weight: bold;
}

/* MAPA */
.mapa {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mapa iframe {
  width: 100%;
  max-width: 1000px;
  height: 550px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* EFECTO HOVER SUAVE EN EL MAPA */
.mapa iframe:hover {
  transform: scale(1.01);
}

/*Celulares*/
@media (max-width: 480px) {
  /* ========== INICIO ========== */
  .tagline {
    font-size: 24px;
    position: relative;
  }
  .text-eslog {
    font-size: 18px;
    padding: 0 10px;
  }
  .redes-sociales {
    margin-top: 40px;
    text-align: center;
  }
  .redes-sociales img {
    width: 200px;
  }
  @media (max-width: 480px) {
  .checkbtn {
    display: block;
    font-size: 28px;
    color: #8b8b8b;
    cursor: pointer;
    margin-right: 20px;
  }

  .menu nav ul {
    position: fixed;
    top: 80px; /* debajo del header */
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 50px;
    gap: 30px;
    transition: all 0.5s ease;
    z-index: 999; /* Para que quede encima */
  }

  .menu nav ul li {
    display: block;
  }

  .menu nav ul li a {
    font-size: 20px;
    color: #8b8b8b;
    transition: color 0.3s;
  }

  .menu nav ul li a:hover {
    color: #cdaaca;
  }

  /* Cuando se activa el checkbox */
  #check:checked ~ ul {
    left: 0;
  }

  /* Ajustar el logo para que no tape */
  .menu img.logo {
    position: relative;
    height: 50px;
    margin-left: 20px;
    z-index: 1000;
  }

  /* ========== NOSOTROS ========== */
  .about-us,
  .why-us,
  #karla,
  #david {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
    width: 100%;
  }

  .about-us img,
  .why-us img,
  #karla img,
  #david img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
  }

  .about-us-text,
  .why-us-text {
    font-size: 16px;
    padding: 0;
    text-align: justify;
  }

  .agreetments-imgs {
    flex-direction: column;
    gap: 20px;
  }
  #logo_cacel,
  #logo_confiamed,
  #logo_proassismed {
    width: 200px;
    height: auto;
  }
  /* ========== CONTÁCTANOS ========== */
  #contacto {
    padding: 30px 15px;
  }

  #contacto h2 {
    font-size: 24px;
  }

  #contacto form {
    width: 100%;
    padding: 0 10px;
  }

  #contacto input,
  #contacto textarea {
    font-size: 14px;
    padding: 12px;
  }

  #contacto button {
    font-size: 14px;
    padding: 12px 20px;
  }

  /* Ubicación */
  #ubicacion h2 {
    font-size: 24px;
  }

  .mapa iframe {
    height: 300px;
  }
}
}
