html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: #f5f3ef;
  color: #23415a;
}

/* TOPBAR */

.topbar {
  background-color: #7f9caf;

  color: white;

  font-size: 13px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 7%;

  letter-spacing: 0.3px;
}

/* NAV */

nav {
  position: sticky;
  top: 0;

  background-color: rgba(255,255,255,0.96);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 8px 7%;

  z-index: 999;

  backdrop-filter: blur(12px);

  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.logo img {
  width: 185px;
}

nav ul {
  display: flex;
  gap: 14px;

  list-style: none;

  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
}

nav ul li a {
  color: #23415a;

  font-size: 14px;
  font-weight: 600;

  padding: 10px 16px;

  border-radius: 40px;

  transition: 0.3s;
}

nav ul li a:hover {
  background-color: #edf1f4;
}

.nav-button {
  background-color: #23415a;

  color: white;

  padding: 12px 22px;

  border-radius: 50px;

  font-size: 14px;
  font-weight: 600;

  transition: 0.3s;
}

.nav-button:hover {
  transform: translateY(-2px);
}

/* HERO */

header {
  position: relative;

  height: 92vh;

  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;

  width: 100%;
  height: 100%;

  opacity: 0;

  animation: slider 18s infinite;
}

.slide img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 6s;
}

.slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes slider {

  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  38% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }

}

.hero-overlay {
  position: absolute;

  inset: 0;

  background-color: rgba(0,0,0,0.35);
}

.hero-content {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 90%;
  max-width: 900px;

  text-align: center;

  color: white;

  z-index: 5;
}

.hero-tag {
  display: inline-block;

  margin-bottom: 20px;

  padding: 10px 18px;

  border-radius: 40px;

  background-color: rgba(255,255,255,0.16);

  backdrop-filter: blur(8px);

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

h1 {
  font-family: 'Cormorant Garamond', serif;

  font-size: 92px;

  line-height: 0.92;

  margin-bottom: 24px;

  font-weight: 600;
}

.hero-content p {
  font-size: 20px;

  line-height: 1.45;

  max-width: 720px;

  margin: auto;

  color: rgba(255,255,255,0.92);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;

  margin-top: 40px;

  flex-wrap: wrap;
}

.hero-buttons a {
  text-decoration: none;

  padding: 16px 28px;

  border-radius: 50px;

  font-size: 15px;
  font-weight: 600;

  transition: 0.3s;
}

.hero-buttons a:first-child {
  background-color: white;
  color: #23415a;
}

.secondary-button {
  background-color: rgba(255,255,255,0.15);

  color: white;

  backdrop-filter: blur(8px);
}

.hero-buttons a:hover {
  transform: translateY(-2px);
}

/* GENERAL */

section {
  padding: 90px 8%;
}

.section-header {
  margin-bottom: 42px;
}

.section-tag {
  display: inline-block;

  margin-bottom: 12px;

  font-size: 12px;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: #7f9caf;

  font-weight: 700;
}

.white-tag {
  color: rgba(255,255,255,0.8);
}

h2 {
  font-family: 'Cormorant Garamond', serif;

  font-size: 58px;

  line-height: 0.95;

  margin: 0;
}

/* SOBRE MI */

.sobre-mi {
  background-color: white;
}

.sobre-grid {
  display: flex;
  gap: 60px;

  align-items: flex-start;
}

.sobre-texto {
  flex: 1;
}

.titulo-profesional {
  margin-bottom: 28px;
}

.titulo-profesional h3 {
  font-family: 'Cormorant Garamond', serif;

  font-size: 46px;

  margin: 0 0 8px 0;
}

.titulo-profesional h4 {
  font-size: 18px;

  margin: 0 0 12px 0;

  color: #52606d;

  font-weight: 500;
}

.matriculas {
  font-size: 13px !important;

  line-height: 1.4 !important;

  color: #7b8792 !important;

  margin-bottom: 0 !important;
}

.sobre-texto p {
  font-size: 17px;

  line-height: 1.55;

  color: #52606d;

  margin-bottom: 16px;
}

.sobre-image img {
  width: 390px;

  border-radius: 24px;

  object-fit: cover;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* DESTACADOS */

.destacados-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;

  margin-top: 35px;
}

.destacado-card {
  background-color: #f3f5f7;

  border-radius: 22px;

  padding: 24px;

  transition: 0.3s;
}

.destacado-card:hover {
  transform: translateY(-4px);
}

.destacado-card span {
  display: inline-block;

  margin-bottom: 12px;

  font-size: 20px;

  color: #7f9caf;
}

.destacado-card h4 {
  margin: 0;

  font-size: 15px;

  line-height: 1.35;

  color: #23415a;
}

/* CARDS */

.cards {
  display: flex;
  flex-wrap: wrap;

  gap: 24px;
}

.card {
  flex: 1;

  min-width: 260px;

  background-color: white;

  padding: 34px;

  border-radius: 24px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.05);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;

  font-size: 34px;

  margin-top: 0;
  margin-bottom: 18px;
}

.card ul {
  padding-left: 18px;

  margin: 0;
}

.card li {
  margin-bottom: 9px;

  color: #52606d;

  line-height: 1.35;

  font-size: 15px;
}

/* SECCIONES */

.especialidades {
  background-color: #f8f9fb;
}

.patologias {
  background-color: white;
}

.estudios {
  background-color: #f8f9fb;
}

.formacion {
  background-color: white;
}

/* PATOLOGIAS */

.patologias-destacadas {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.patologia-card {
  background:
    linear-gradient(135deg, #7f9caf, #a6bcc9);

  color: white;

  padding: 34px 28px;

  border-radius: 24px;

  font-size: 18px;

  font-weight: 600;

  line-height: 1.25;

  box-shadow: 0 10px 25px rgba(127,156,175,0.25);

  transition: 0.3s;
}

.patologia-card:hover {
  transform: translateY(-5px);
}

/* TIMELINE */

.timeline {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.timeline-item {
  background-color: #f7f8fa;

  padding: 20px 24px;

  border-radius: 18px;

  font-size: 14px;

  line-height: 1.35;

  color: #52606d;
}

.memberships-title {
  margin-top: 80px;
}

/* CONTACTO */

.contacto {
  background-color: #23415a;

  color: white;

  text-align: center;
}

.contacto h2 {
  color: white;
}

.contact-grid {
  display: flex;
  justify-content: center;

  gap: 24px;

  flex-wrap: wrap;

  margin-top: 40px;
}

.contact-box {
  background-color: rgba(255,255,255,0.08);

  padding: 36px;

  border-radius: 24px;

  min-width: 280px;

  max-width: 360px;

  backdrop-filter: blur(8px);
}

.contact-box h3 {
  font-family: 'Cormorant Garamond', serif;

  font-size: 32px;

  margin-top: 0;
  margin-bottom: 18px;
}

.contact-box p {
  line-height: 1.45;

  color: rgba(255,255,255,0.85);

  margin-bottom: 10px;
}

.contact-button {
  display: inline-block;

  margin-top: 40px;

  background-color: white;

  color: #23415a;

  text-decoration: none;

  padding: 18px 30px;

  border-radius: 50px;

  font-weight: 700;

  transition: 0.3s;
}

.contact-button:hover {
  transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 1000px) {

  .patologias-destacadas {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 900px) {

  .topbar {
    flex-direction: column;

    gap: 6px;

    text-align: center;
  }

  nav {
    flex-direction: column;

    gap: 18px;
  }

  nav ul {
    flex-wrap: wrap;

    justify-content: center;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
  }

  .sobre-grid {
    flex-direction: column;
  }

  .sobre-image img {
    width: 100%;
    max-width: 380px;
  }

  .destacados-grid {
    grid-template-columns: 1fr;
  }

  .patologias-destacadas {
    grid-template-columns: 1fr;
  }

}
