@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* --------------
       RESETS
   -------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------
    CUSTOM PROPERTIES
   -------------------- */

:root {
  /* Colors */
  --azul: 219, 100%, 19%;
  --celeste: 230, 58%, 85%;
  --negro: 0, 0%, 0%;
  --blanco: 0, 0%, 100%;
  --turquesa: 188, 79%, 47%;
  --hueso: 48, 100%, 98%;
  --amarillo: 50, 98%, 77%;

  /* Font Sizes */
  --fs-900: clamp(1.5rem, 4vw + 1.7rem, 4.5rem);
  --fs-800: 2.5rem;
  --fs-700: 2rem;
  --fs-600: clamp(1.7rem, 3vw + 0.7rem, 3rem);
  --fs-500: 1.5rem;
  --fs-400: 0.9375rem;
  --fs-300: 1rem;
  --fs-200: 0.875rem;

  /* Font Families */
  --ff-serif: serif;
  --ff-sans: "Poppins", sans-serif;
}

/* COLOR PALETTE */

.bg-principal {
  background-color: hsl(var(--azul));
}
.bg-secundario {
  background-color: hsl(var(--celeste));
}
.bg-acento {
  background-color: hsl(var(--amarillo));
}
.bg-base {
  background-color: hsl(var(--hueso));
}

.text-principal {
  color: hsl(var(--azul));
}
.text-secundario {
  color: hsl(var(--celeste));
}
.text-acento {
  color: hsl(var(--amarillo));
}
.text-base {
  color: hsl(var(--hueso));
}
.text-negro {
  color: hsl(var(--negro));
}
.text-blanco {
  color: hsl(var(--blanco));
}

/* TYPOGRAPHY */

.ff-serif {
  font-family: var(--ff-serif);
}
.ff-sans-normal {
  font-family: var(--ff-sans-normal);
}

.letter-spacing-1 {
  letter-spacing: 4.75px;
}
.letter-spacing-2 {
  letter-spacing: 2.7px;
}
.letter-spacing-3 {
  letter-spacing: 2.35px;
}

.uppercase {
  text-transform: uppercase;
}

.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-500 {
  font-size: var(--fs-500);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-300 {
  font-size: var(--fs-300);
}
.fs-200 {
  font-size: var(--fs-200);
}

@media (min-width: 35rem) {
  :root {
    --fs-800: 5rem;
    --fs-700: 2.5rem;
    --fs-600: clamp(1.7rem, 3vw + 0.7rem, 3rem);
    --fs-500: 1.25rem;
    --fs-400: 1rem;
  }
}

/* ----------------------
       COMPONENTS
   ---------------------- */

.button {
  display: inline-flex;
  border-radius: 100vmax;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  border: 0;
  text-align: center;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  font-size: var(--fs-200);
  color: hsl(var(--blanco));
  background-color: hsl(var(--azul));
}

.button:hover,
.button:focus-visible {
  background-color: hsl(var(--celeste));
  color: hsl(var(--azul));
  border: 1px solid hsl(var(--azul));
}

.logo {
  margin-block: 2rem;
}

.primary-header {
  align-items: center;
  justify-content: space-between;
  margin-inline: 1rem;
}

.mobile-nav-toggle {
  display: none;
}

.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  padding-top: 0.5rem;
}

@media (max-width: 35em) {
  .primary-navigation {
    --gap: 2em;

    font-size: var(--fs-600);
    align-items: center;

    position: fixed;
    z-index: 1000;
    inset: 0 0 0 0%;

    flex-direction: column;
    padding: min(30vh, 10rem) 2em;
    background: hsl(var(--hueso));
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }

  @supports (backdrop-filter: blur(1rem)) {
    .primary-navigation {
      background: hsl(var(--hueso), 0.97);
      backdrop-filter: blur(1rem);
    }
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 9999;
    background: transparent; /* Cambia a transparente */
    border: 0;
    width: 2rem;
    height: 2rem; /* Asegúrate de que tenga altura */
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger,
  .close {
    font-size: 2rem; /* Ajusta el tamaño según sea necesario */
    color: hsl(var(--azul)); /* Cambia el color si es necesario */
  }

  .close {
    display: none; /* Oculta el icono de cerrar por defecto */
  }
}

@media (min-width: 35em) {
  .primary-navigation {
    --gap: clamp(2.5vw, 3.5vw, 4vw);
    padding-block: 2rem;
    padding-inline: clamp(1rem, 10vw, 2rem);
    align-items: center;
  }

  header {
    justify-content: space-around;
    align-items: baseline;
  }
}

/* --------------------------
      UNDERLINE INDICATORS
   -------------------------- */

.underline-indicators > * {
  cursor: pointer;
  border: 0;
  padding-bottom: 0.5rem;
  border-bottom: 0.2rem solid hsl(var(--azul), 0);
}

.underline-indicators > *:hover,
.underline-indicators > *:focus {
  border-color: hsl(var(--azul), 0.5);
}

.underline-indicators > .active {
  border-color: hsl(var(--azul), 1);
}

/* -----------------
       SECTIONS
   ----------------- */

/*  Hero */

section.hero {
  background: linear-gradient(
    180deg,
    rgba(160, 182, 241, 1) 0%,
    rgba(228, 232, 242, 1) 78%,
    rgba(229, 233, 242, 0) 100%
  );
}

section.hero div {
  max-width: 78rem;
  width: 100%;
  height: 70dvh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

/*  Doctores */

.card {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;

}

.container-card {
  background-color: hsl(var(--blanco));
  border: 1px solid hsl(var(--azul));
  border-radius: 2rem;
  padding: 2rem;
  max-width: 80rem;
}

.card ul {
  list-style-type: none;
  padding-left: 0;
}

.card ul li {
  margin-bottom: 1.5rem;
  padding-left: 3rem;
line-height: 1.7rem;
}

#ginecologo ul li:nth-child(1) {
background: url('Assets/Asclepius.png') no-repeat left center;
}

#ginecologo ul li:nth-child(2), #ginecologo ul li:nth-child(4)  {
  background: url('Assets/Certificate.png') no-repeat left center;
  }

  #ginecologo ul li:nth-child(3) {
    background: url('Assets/uterus.png') no-repeat left center;
    }



.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.intro h3 {
  font-weight: 600;
}

.intro figure {
  flex-grow: 1;
  flex-basis: 150px;
}

.intro div {
  flex-grow: 2;
  flex-basis: 300px;
}

.intro img {
  border-radius: 1rem;
  overflow: hidden;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}

.intro figcaption {
  margin-top: 0.5rem;
  font-size: 0.6rem;
}

/* ----------------------
       Utility Classes
   ---------------------- */

.flex {
  display: flex;
  gap: var(--gap, 1rem);
}

.grid {
  display: grid;
  gap: var(--gap, 1rem);
}

.flow > * + * {
  margin-top: 1rem;
}

.container {
  padding-inline: 2em;
  max-width: 80rem;
  margin-inline: 80rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.display-sm-none {
  display: none;
}

@media (min-width: 50em) {
  .display-md-inline-flex {
    display: inline-flex;
  }
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
img {
  margin: 0;
}

h1 {
  font-weight: 600;
}

h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-200);
  color: hsl(var(--azul));
  background-color: hsl(var(--hueso));
  line-height: 1.5;
  min-height: 100vh;
}

img,
figure {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* REMOVE ANIMATIONS FOR PEOPLE WHO'VE TURNED THEM OFF*/

@media (prefer-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
