/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsade - Creditos
 * copyright 2024 DaniRomero
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --light-steel-blue: hsl(218, 33%, 77%);
  --royal-blue-light: #f7c590;
  --flickr-blue_30: hsla(225, 68%, 53%, 0.3);
  --carolina-blue: hsl(201, 92%, 47%);
  --oxford-blue-1: hsl(218, 70%, 18%);
  --oxford-blue-2: hsl(217, 100%, 12%);
  --oxford-blue-3: #f7c590;
  --gainsboro_50: hsla(0, 0%, 85%, 0.5);
  --lavender-web: hsl(225, 67%, 91%);
  --sonic-silver: hsl(0, 0%, 47%);
  --light-gray: hsl(0, 0%, 84%);
  --cultured: hsl(0, 0%, 97%);
  --black_10: hsla(0, 0%, 0%, 0.1);
  --black_8: hsla(0, 0%, 0%, 0.08);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --jet: hsl(0, 0%, 20%);

  /**
   * gradient color
   */

   --gradient: linear-gradient(135deg, #f7c590 0%, #f9e3c8 100%);

  /**
   * typography
   */

  --ff-roboto: "Roboto", sans-serif;
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 4rem;
  --fs-2: 3.6rem;
  --fs-3: 3.2rem;
  --fs-4: 2.4rem;
  --fs-5: 2.2rem;
  --fs-6: 1.8rem;
  --fs-7: 1.6rem;

  --fw-800: 800;
  --fw-700: 700;
  --fw-600: 600;
  --fw-500: 500;

  /**
   * spacing
   */

  --section-padding: 120px;

  /**
   * shadow
   */

  --shadow-1: 4px 4px 15px var(--black_10);
  --shadow-2: 0 10px 15px var(--black_10);
  --shadow-3: 0px 20px 60px var(--black_8);
  --shadow-4: 0px 10px 30px var(--flickr-blue_30);
  --shadow-5: 0px 2px 60px 0px var(--black_10);

  /**
   * border radius
   */

  --radius-6: 6px;
  --radius-4: 4px;

  /**
   * transition
   */

  --transition: 0.25s ease;
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
}

a,
img,
span,
input,
button,
ion-icon { display: block; }

img { height: auto; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-roboto);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--sonic-silver);
  font-size: 1.5rem;
  padding-top: 150px; /* Ajusta este valor según la altura de tu header */
}
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff; /* O el color de fondo que prefieras */
}




/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 25px; }

.section { padding-block: var(--section-padding); }

.section-subtitle {
  color: #f7c590;
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  margin-block-end: 10px;
}

.h1,
.h2,
.h3 {
  font-family: var(--ff-poppins);
  line-height: 1.2;
  font-size: calc(var(--fs-10) + 4px); /* Aumenta el tamaño de la fuente */
}

.h1 {
  color: #ee8c91;
  font-size: var(--fs-2);
}

.h2 { color: #ee8c91; }
.h3 { color: var(--oxford-blue-2); }

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-10); }

.btn {
  background-color: #ee8c91; /* Cambia el gradiente por un color sólido */
  color: var(--white); 
  font-size: var(--fs-8);
  text-transform: uppercase;
  padding: 20px 30px;
  text-align: center;
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-4);
}

.btn:is(:hover, :focus) { --deg: -90deg; }

.w-100 { width: 100%; }

.text-center { text-align: center; }

.card-text,
.section-text { line-height: 1.7; }

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-cover1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-cover2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header-top,
.header-bottom .btn { display: none; }

.header-bottom {
  position: fixed;
  top: 0; /* Ajusta esto según lo necesario */
  left: 0;
  width: 100%;
  padding-block: 10px; /* Reduce este valor */
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Añade esto para compensar el espacio ocupado por el header fijo */
body {
  padding-top: calc(15px * 2 + 1em); /* Ajusta este valor según la altura de tu header */
}
.header-bottom.active {
  position: fixed;
  top: -81px;
  background-color: var(--white);
  box-shadow: var(--shadow-2);
  animation: slideIn 0.5s var(--cubic-out) forwards;
}

@keyframes slideIn {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.header-bottom > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  color: var(--oxford-blue-1);
  font-family: var(--ff-poppins);
  font-size: 3.4rem;
  font-weight: var(--fw-800);
}
.logo-img img {
  max-height: 110px; /* Ajusta según necesites */
  width: auto;
}

.nav-toggle-btn {
  color: var(--black);
  font-size: 30px;
  border: 1px solid var(--black);
  padding: 5px;
}

.nav-toggle-btn.active .menu-icon,
.nav-toggle-btn .close-icon { display: none; }

.nav-toggle-btn .menu-icon,
.nav-toggle-btn.active .close-icon { display: block; }

.navbar {
  position: absolute;
  top: calc(100% + 5px);
  left: 25px;
  right: 25px;
  background-color: var(--white);
  padding-inline: 0;
  box-shadow: var(--shadow-1);
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  transition: 0.25s var(--cubic-out);
}

.navbar.active {
  visibility: visible;
  max-height: 244px;
  transition-duration: 0.5s;
}

.navbar-list > li:not(:last-child) { border-block-end: 1px solid var(--gainsboro_50); }

.navbar-link {
  color: var(--jet);
  text-transform: uppercase;
  font-weight: var(--fw-600);
  padding: 15px;
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-block-end: calc(var(--section-padding) / 2);
}

.hero-content { margin-block-end: 50px; }

.hero-title { margin-block: 15px 30px; }

.hero-text {
  font-size: var(--fs-6);
  line-height: 1.45;
  margin-block-end: 40px;
  text-align: justify;
}

.hero-form {
  background-color: var(--white);
  max-width: 95%;
  padding: 15px;
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-3);
}

.hero-form .email-field {
  background-color: var(--cultured);
  color: var(--black);
  min-height: 70px;
  padding-inline: 15px;
  border-radius: var(--radius-4);
  margin-block-end: 15px;
}

.hero-form .btn { width: 100%; }





/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service-banner { display: none; }

.service { padding-block-end: 0; }

.service .section-title { margin-block-end: 50px; }

.service-list {
  display: grid;
  gap: 15px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 100%;
  border: 1px solid var(--light-gray);
  border-radius: 15px; /* Bordes más redondeados */
  padding: 25px;
  background: linear-gradient(135deg, #f7c590 0%, #f9e3c8 100%); /* Fondo degradado suave */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card.active { /* Añade .active para la animación en móviles */
  transform: translateY(-5px); /* Efecto de elevación */
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.15); /* Sombra más intensa */
}

.service-card .card-icon {
  width: 100px; /* Tamaño del icono */
  height: 100px; /* Mantén el icono cuadrado */
  flex-shrink: 0;
  border-radius: 50%; /* Formato circular */
  overflow: hidden;
  border: 3px solid #f7c590; /* Borde más grueso */
}

.service-card .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra completamente el contenedor */
}

.service-card .card-title {
  margin-block-end: 10px;
  font-size: 1.4rem; /* Tamaño del título más grande */
  color: #333; /* Color del título más oscuro para mejor legibilidad */
}

.service-card .card-text {
  color: #555;
  font-size: 1.4rem; /* Tamaño del texto más grande */
  line-height: 1.5; /* Mejor espaciado entre líneas */
  text-align: justify;
}






/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about { padding-block-end: 0; }

.about-banner { margin-block-end: 50px; }

.about .section-text-1 {
  margin-block: 25px 15px;
  text-align: justify;
}


.about .btn {
  font-size: unset;
  max-width: max-content;
  margin-block-start: 30px;
  padding-inline: 15px;
}



/*-----------------------------------*\
  #DOCTOR
\*-----------------------------------*/

.doctor .section-title { margin-block-end: 50px; }

.doctor-card .card-banner {
  border-radius: var(--radius-4);
  overflow: hidden;
  margin-block-end: 25px;
}

.doctor-card {
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-4);
  text-align: center;
  min-height: 100%;
}

.doctor-card .card-title {
  font-size: var(--fs-4);
  transition: var(--transition);
}

.doctor-card:is(:hover, :focus-within) .card-title { color:#f9e3c8; }

.doctor-card .card-subtitle {
  color: var(--royal-blue-light);
  margin-block: 10px 15px;
}

.doctor-card .card-social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.doctor-card .card-social-link {
  background-color: var(--lavender-web);
  color: #f7c590;
  font-size: 16px;
  padding: 12px;
  border-radius: 50%;
  transition: var(--transition);
}

.doctor-card .card-social-link:is(:hover, :focus) {
  background-color: var(--royal-blue-light);
  color: var(--white);
}

.has-scrollbar {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  margin-inline: 15px;
  padding-block-end: 40px;
  margin-block-end: -20px;
  scroll-snap-type: inline mandatory;
}

.scrollbar-item {
  min-width: 100%;
  scroll-snap-align: start;
}

.has-scrollbar::-webkit-scrollbar { height: 10px; }

.has-scrollbar::-webkit-scrollbar-track {
  background-color: var(--light-gray);
  border-radius: var(--radius-4);
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--royal-blue-light);
  border-radius: var(--radius-4);
}

.has-scrollbar::-webkit-scrollbar-button { width: calc(25% - 30px); }


/*-----------------------------------*\
    #BOTON PROMOCIONES
\*-----------------------------------*/
.custom-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ee8c91; /* Color rosado */
  color: #fff; /* Texto en blanco */
  font-size: 16px;
  text-decoration: none; /* Sin subrayado */
  border-radius: 8px; /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
  transition: background-color 0.3s, transform 0.3s; /* Animación suave */
}

.custom-button:hover {
  background-color: #ee8c91; /* Un tono más claro al pasar el mouse */
  transform: translateY(-2px); /* Efecto de elevación */
}



/*-----------------------------------*\
  #CTA
\*-----------------------------------*/

.cta { background-color: var(--oxford-blue-1); }

.cta-banner { margin-block-end: 50px; }

.cta .section-subtitle { text-transform: capitalize; }

.cta .section-title {
  color: var(--white);
  font-size: var(--fs-3);
  margin-block-end: 30px;
}

.cta .btn { max-width: max-content; }

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog .section-title { margin-block-end: 50px; }

.blog-list {
  display: grid;
  gap: 30px;
}

.blog-card {
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-5);
}

.blog-card .card-banner {
  position: relative;
  border-radius: var(--radius-4);
  overflow: hidden;
}

.blog-card .card-banner img { transition: var(--transition); }

.blog-card:is(:hover, :focus-within) .card-banner img { transform: scale(1.1); }

.blog-card .card-badge {
  background-color: var(--royal-blue-light);
  color: var(--white);
  position: absolute;
  bottom: 25px;
  left: 25px;
  display: flex;
  gap: 5px;
  padding: 10px 15px;
  border-radius: var(--radius-6);
}

.blog-card .card-content { padding: 30px; }

.blog-card .card-title { transition: var(--transition); }

.blog-card .card-title:is(:hover, :focus) { color: var(--royal-blue-light); }

.blog-card .card-text { margin-block: 15px; }

.blog-card .card-link {
  position: relative;
  color: var(--royal-blue-light);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  width: max-content;
  transition: var(--transition);
}

.blog-card .card-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--royal-blue-light);
  transition: var(--transition);
}

.blog-card .card-link:is(:hover, :focus) { color: var(--oxford-blue-1); }

.blog-card .card-link:is(:hover, :focus)::after { background-color: var(--oxford-blue-1); }

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer-top {
  background-color: #ee8c91;
  color: #ffffff;
}

.footer-top .container {
  display: grid;
  gap: 30px;
}

.footer-brand .logo { color: var(--white); }

.footer-text {
  line-height: 1.6;
  margin-block: 15px;
  text-align: justify;
}
.footer-text-1 {
  line-height: 1.6;
  margin-block: 15px;
  text-align: justify;
  color:#ffffff
}

.schedule {
  display: flex;
  align-items: center;
  gap: 15px;
}

.schedule-icon,
.footer-item .item-icon {
  background-image: var(--gradient);
  color: var(--white);
  font-size: 18px;
  padding: 11px;
  border-radius: 50%;
}

.schedule .span,
.footer-item .item-text { line-height: 1.6; color:#ffffff }

.footer-list-title {
  color: var(--white);
  font-family: var(--ff-poppins);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  margin-block-end: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-block: 10px;
  transition: var(--transition);
}

.footer-link ion-icon {
  color: var(--royal-blue-light);
  --ionicon-stroke-width: 50px;
}

.footer-link:is(:hover, :focus) { color: var(--white); }

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-item:not(:first-child) { margin-block-start: 20px; }

.footer-bottom {
  background-color: var(--oxford-blue-3);
  padding-block: 50px;
  text-align: center;
}

.copyright {
  color: var(--white);
  line-height: 1.6;
  margin-block-end: 25px;
}

.footer .social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer .social-link {
  padding: 11px;
  background-color: hsla(0, 0%, 100%, 0.2);
  color: var(--white);
  font-size: 18px;
  border-radius: 50%;
}

.footer .social-link:is(:hover, :focus) { background-image: var(--gradient); }

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  background-color: #ee8c91;
  font-size: 18px;
  color: var(--white);
  padding: 14px;
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  z-index: 1000; /* Asegura que esté por encima de otros elementos */

}

.back-top-btn.active {
  transform: translateY(-10px);
  visibility: visible;
  opacity: 1;
}
.modal {
  display: none;
  position: fixed;
  z-index: 10000; /* Aumentado para asegurar visibilidad */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 600px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .back-top-btn {
    bottom: 55px; /* Eleva el botón para que no se superponga con WhatsApp */
    right: 15px;  /* Mantiene la alineación horizontal */
    z-index: 10001; /* Asegura que esté por encima del botón WhatsApp */
  }
}


/*-----------------------------------*\
  #WHATSAPP FLOAT
\*-----------------------------------*/

/* Estilos del botón flotante de WhatsApp */
.float {
  position: fixed;
  width: 53px; /* Tamaño del botón */
  height: 53px;
  bottom: 20px; /* Ajusta para elevar el botón */
  right: 45px; /* Separación desde la derecha */
  background-color: #25d366; /* Color verde de WhatsApp */
  color: #FFF; /* Color del ícono */
  border-radius: 50%; /* Bordes redondeados */
  text-align: center;
  font-size: 30px; /* Tamaño del ícono */
  line-height: 53px; /* Centrado vertical del ícono */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9999; /* Asegura que esté por encima de todo */
  opacity: 1 !important; /* Fuerza la visibilidad */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.float:hover {
  background-color: #128c7e; /* Cambio de color al pasar el mouse */
  transform: scale(1.1); /* Efecto de crecimiento */
}

/* Ajustes responsivos para móviles */
@media screen and (max-width: 767px) {
  .float {
    width: 45px; /* Tamaño reducido para pantallas pequeñas */
    height: 45px;
    font-size: 25px; /* Tamaño del ícono reducido */
    line-height: 45px;
    bottom: 15px; /* Ajuste más bajo en móviles */
    right: 15px;
  }
}


/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 575px screen
 */

@media (min-width: 575px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 4.2rem;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }



  /**
   * BLOG
   */

  .blog-card .h3 { --fs-5: 2.6rem; }



  /**
   * FOOTER
   */

  .footer-top .container { grid-template-columns: 1fr 1fr; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 4.8rem;

  }



  /**
   * RESET
   */

  body { font-size: 1.6rem; }



  /**
   * REUSED STYLE
   */

  .container { max-width: 750px; }

  .section-subtitle { --fs-6: 2.2rem; }



  /**
   * HERO
   */

  .hero { overflow: hidden; }

  .hero .container {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: center;
    gap: 20px;
  }

  .hero-content { margin-block-end: 0; }

  .hero-form { position: relative; }

  .hero-form .email-field {
    margin-block-end: 0;
    padding-inline-end: 190px;
  }

  .hero-form .btn {
    width: auto;
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: 15px;
  }
  .hero-banner {
    margin-inline-end: -60px;
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Esquinas redondeadas */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
    max-height: 550px; /* Limita la altura máxima del contenedor */
    margin-top: 50px; /* Añade un margen superior para separar el banner de la cabecera */

  }
  
  .hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%; /* Asegura que la imagen no exceda la altura del contenedor */
    transition: transform 0.3s ease; /* Transición suave para el efecto de zoom */
    object-fit: cover; /* Asegura que la imagen cubra el contenedor ajustando la relación de aspecto */
  }
  
  .hero-banner:hover {
    transform: scale(1.03); /* Efecto de zoom suave al pasar el mouse */
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2); /* Aumenta la sombra al pasar el mouse */
  }
  
  .hero-banner:hover img {
    transform: scale(1.05); /* Efecto de zoom en la imagen */
  }
  
  



  /**
   * SERVICE
   */

  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
  }



  /**
   * DOCTOR
   */

  .scrollbar-item { min-width: calc(50% - 15px); }



  /**
   * CTA
   */

  .cta { padding-block: 0; }

  .cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 60px;
  }

  .cta-banner { margin-block-end: 0; }

  .cta-content { padding-block: 60px; }



  /**
   * BLOG
   */

  .blog-list { grid-template-columns: 1fr 1fr; }



  /**
   * FOOTER
   */

  .footer-bottom { padding-block: 30px; }

  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright { margin-block-end: 0; }



  /**
   * BACK TO TOP
   */

  .back-top-btn {
    bottom: 70px;
    right: 50px;
  }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {
  .header-bottom {
    top: 50px; /* Ajusta esto según lo necesario */
    padding-block: 10px; /* Reduce este valor */
  }

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 6rem;
    --fs-1: 4.6rem;
    --fs-3: 4.6rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 980px; }



  /**
   * HEADER
   */

  .header-top {
    display: block;
    background-color: #ee8c91;
    color: var(--white);
    padding-block: 20px;
  }

  .header-top :is(.container, .social-list),
  .contact-list,
  .contact-item {
    display: flex;
    align-items: center;
  }

  .header-top .container { justify-content: space-between; }

  .contact-list { gap: 20px; }

  .contact-item { gap: 5px; }

  .contact-item ion-icon {
    color: var(--white);
    --ionicon-stroke-width: 40px;
  }

  .contact-link { font-size: 1.5rem; }

  .header-top .social-list { gap: 15px; }

  .header-top .social-link {
    font-size: var(--fs-6);
    transition: var(--transition);
  }

  .header-top .social-link:is(:hover, :focus) { color: #f7c590; }
  

  .header-bottom {
    top: 58px;
    padding-block: 20px;
  }

  .header-bottom.active { top: -95px; }

  .nav-toggle-btn { display: none; }

  .navbar,
  .navbar.active {
    all: unset;
    margin-inline-start: auto;
  }

  .navbar-list {
    display: flex;
    align-items: center;
  }

  .navbar-list > li:not(:last-child) { border-block-end: none; }

  .navbar-link {
    color: #f7c590; /* Cambia el color al deseado */
    font-family: var(--ff-poppins);
    text-transform: capitalize;
    transition: var(--transition);
  }

  .navbar-link:is(:hover, :focus) { color: #f7c590; }

  .header-bottom .btn {
    display: block;
    padding: 15px 20px;
  }



  /**
   * SERVICE
   */

  .service-list { grid-template-columns: repeat(3, 1fr); }

  .service-banner {
    display: block;
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    align-self: center;
  }



  /**
   * ABOUT
   */

  .about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
  }

  .about-banner { margin-block-end: 0; }



  /**
   * DOCTOR
   */

  .scrollbar-item { min-width: calc(33.33% - 20px); }



  /**
   * CTA
   */

  .cta-content { padding-block: 80px; }



  /**
   * BLOG
   */

  .blog-list { grid-template-columns: repeat(3, 1fr); }



  /**
   * FOOTER
   */

  .footer-top .container { grid-template-columns: 1fr 0.5fr 0.6fr 0.75fr; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 8rem;
    --fs-1: 5.5rem;
    --fs-3: 4.8rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1180px; }



  /**
   * HEADER
   */

  .contact-list { gap: 30px; }

  .header-bottom .btn { padding: 18px 30px; }

  .header-bottom > .container { gap: 40px; }

  .navbar-list { gap: 15px; }



  /**
   * ABOUT
   */

  .about .container {
    grid-template-columns: 0.85fr 1fr;
    gap: 100px;
  }



  /**
   * DOCTOR
   */

  .doctor { padding-block-end: 180px; }

  .scrollbar-item { min-width: calc(25% - 22.5px); }

  .has-scrollbar {
    padding-block-end: 0;
    margin-block-end: 0;
  }



  /**
   * CTA
   */

  .cta .container { align-items: center; }

  .cta-banner { margin-block-start: -120px; }
  

  /**
   * CARROUSEL PACIENTE
   */


  .containercr {
      display: grid;
      grid-gap: 10px;
      grid-template: 1fr / 5% 1fr 5%;
      grid-template-areas: "prev carousel next";
      justify-items: center;
      align-items: center;
      margin-top: 25vh;
  }
  .prev {
      grid-area: prev; 
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: none;
      cursor: pointer;                
  }
  .next {
      grid-area: next; 
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: none;
      cursor: pointer;                   
  }
  .carousel {
      grid-area: carousel;
      display: flex;
      align-items: center;
      justify-content: center;
      width: calc(100% - 5px);
      height: auto;   
      position: relative;
  }
  .tarjeta {
      border: solid 5px goldenrod;
      width: 100px;   
      height: 100px;
      position: absolute;
  }
  .tarjeta img{
      width: 100px;
      height: 100px;
  }
  .boton {
      position: relative;
      margin-top: 15%;
      text-align: center;
  }
  button:focus {
      outline: none;
  }
  .a{ 
      left: 0; 
      z-index: 0;
  }
  .b{ 
      transform: scale(1.5, 1.5);             
      left: calc(25% - 50px);
      z-index: 1;
  }
  .c{ 
      transform: scale(2, 2); 
      left: calc(50% - 50px);
      z-index: 2;
  }
  .d{ 
      transform: scale(1.5, 1.5); 
      right: calc(25% - 50px);
      z-index: 1;
  }
  .e{ 
      right: 0; 
      z-index: 0;
  }  
  @media screen and (max-width: 420px){ 
    .containercr {
        grid-template: 1fr 1fr / 1fr 1fr;
        grid-template-areas: "carousel carousel"
                             "prev next";
    }
    .next, .prev {
        margin-top: 70px;
    }
}

@keyframes BtoA {
    from{
        left: calc(25% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;                
    }
    to{
        left: 0;
        transform: scale(1, 1); 
        z-index: 0;                               
    }
}

@keyframes AtoB {
    from{
        left: 0;
        transform: scale(1, 1); 
        z-index: 0;                
    }
    to{
        left: calc(25% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;                              
    }
}

@keyframes CtoB {
    from{
        left: calc(50% - 50px);
        transform: scale(2, 2);
        z-index: 2;                
    }
    to{
        left: calc(25% - 50px);
        transform: scale(1.5, 1.5); 
        z-index: 1;                               
    }
}

@keyframes BtoC {
    from{
        left: calc(25% - 50px);
        transform: scale(1.5, 1.5); 
        z-index: 1;                 
    }
    to{
        left: calc(50% - 50px);
        transform: scale(2, 2);
        z-index: 2;                                
    }
}

@keyframes DtoC {
    from{
        left: calc(75% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;
        
    }
    to{
        left: calc(50% - 50px);
        transform: scale(2, 2);
        z-index: 2;            
    }
}   

@keyframes CtoD {
    from{
        left: calc(50% - 50px);
        transform: scale(2, 2);
        z-index: 2; 
    }
    to{
        left: calc(75% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;            
    }
}  

@keyframes EtoD {
    from{
        right: 0;
        transform: scale(1, 1);
        z-index: 0;
    }
    to{
        right: calc(25% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;
    }
}   

@keyframes DtoE {
    from{
        right: calc(25% - 50px);
        transform: scale(1.5, 1.5);
        z-index: 1;
    }
    to{
        right: 0;
        transform: scale(1, 1);
        z-index: 0;
    }
}   

@keyframes AtoE {
    from{
        left: 0;
        z-index: 0;
    }
    to{
        left: calc(100% - 110px);
        z-index: 0;      
    }
}  

@keyframes EtoA {
  from{
      left: calc(100% - 100px);
      z-index: 0; 
  }
  to{
      left: 0;
      z-index: 0;    
  }
}

    
}

/* Contenedor del carrusel */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1rem; /* Espacio entre elementos */
}

.carousel-item {
  flex: 0 0 calc(100% / 3 - 1rem); /* Mostrar 3 elementos */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Nuevo marco para card-carrousel */
.card-carrousel {
  width: 100%;
  height: auto;
  border: 2px solid #e0e0e0; /* Borde gris claro */
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil */
  overflow: hidden; /* Evita desbordamiento */
}

.card-carrousel img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Asegura que las imágenes mantengan proporciones */
}

/* Botones de navegación */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  z-index: 10; /* Coloca los botones por encima */
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(100% / 2 - 1rem); /* Mostrar 2 elementos */
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 100%; /* Mostrar 1 elemento */
  }
}

