@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to bottom, #e0f2ff, #b3d9ff, #80bfff);
  background-attachment: fixed;
  color: #222;
}
.floating-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(57, 63, 121, 0.605);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 1000;
  color: white;
  flex-wrap: wrap;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: slideDown 0.8s ease-in-out;
}
.floating-menu .logo {
  display: flex;
  align-items: center;
  font-weight: bold;
}
.floating-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease-in-out;
  padding-right: 1.2rem;
}
.floating-menu li {
  display: inline;
}
.floating-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
    padding-right: 1.5rem;
  }
  .floating-menu ul {
    flex-direction: column;
    width: 100%;
    background-color: #393f79;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
  }
  .floating-menu ul.show {
    max-height: 400px;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .floating-menu ul li {
    text-align: center;
    padding: 0.5rem 0;
  }
}
main {
  padding: 6rem 1rem 6rem;
  max-width: 960px;
  margin: auto;
}
main > section {
  display: none;
}
main > section.active {
  display: block;
}
main h2 {
  animation: fadeInHeading 1s ease;
}
main p {
  animation: fadeInParagraph 1s ease;
}
main img {
  animation: fadeInImage 1.2s ease;
}
footer {
  background: rgba(57, 63, 121, 0.836);
  color: white;
  text-align: center;
  padding: .2rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  animation: fadeInFooter 1s ease-in-out;
}
footer a {
  color: white;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
footer a:hover {
  color: #a5d6ff;
}
#servicios ul {
  list-style: none;
  padding-left: 0;
}
#servicios > ul > li {
  background-color: #e6f0fa;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: #1a3e72;
  box-shadow: 0 2px 5px rgba(46, 134, 193, 0.15);
}
#servicios ul ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: #2c3e50;
  font-weight: 400;
}
#servicios ul ul li {
  margin-bottom: 0.3rem;
}
#contacto ul {
  list-style: none;
  padding: 0;
}
#contacto > ul > li {
  background-color: #e8f5e9;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 5px solid #388e3c;
  border-radius: 4px;
}
#contacto ul ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: #2e7d32;
}
#contacto ul ul li {
  margin-bottom: 0.3rem;
}

/* Animaciones */
@keyframes fadeInHeading {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInParagraph {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInImage {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-left {
  text-align: left;
  font-size: 50%;
  padding-left: 1.2rem;
}
.footer-right {
  text-align: right;
  padding-right: 1.2rem;
  font-size: 50%;
  
}

.inicio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.inicio-text {
  flex: 1 1 45%;
  text-align: left;
}

.inicio-img {
  flex: 1 1 45%;
}

.inicio-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Responsivo */
@media (max-width: 768px) {
  .inicio-container {
    flex-direction: column;
  }
  .inicio-text,
  .inicio-img {
    flex: 1 1 100%;
    text-align: center;
  }
}

#nombreInicio {
  font-size: 330%;
  font-weight: bold;
  color: #2c3e50 ;
  margin-bottom: 1rem;
  padding: 0rem;


}
#especialidadInicio {
  font-size: 115%;
  font-weight: 600;
  color: #2c3e50 ;
  margin-bottom: .1rem;
  padding: 0;

}

#detalleInicio{
  font-size: 80%;
  font-weight: bold;
  color: #2c3e50 ;
  margin-top: 0rem;
}
#perfil {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#perfil h2 {
  font-size: 1.8rem;
  color: #1a3e72;
  margin-bottom: 1rem;
  border-bottom: 2px solid #3e66a1;
  padding-bottom: 0.5rem;
}

#perfil h3, #perfil h4 {
  margin-top: 1rem;
  color: #2c3e50;
}

#perfil p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #333;
  font-weight: 400;
  font-size: 1rem;
  padding-left: 1rem;
  position: relative;
}

#perfil p::before {
  content: "•";
  color: #3e66a1;
  position: absolute;
  left: 0;
}