/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: hsl(218, 23%, 21%);
  --first-color-alt: hsl(194, 69%, 23%);
  --second-color: hsl(193, 99%, 76%);
  --second-color-alt: hsl(194, 63%, 82%);
  --third-color: hsl(194, 76%, 26%);
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 100%);
  --body-color: hsl(198, 80%, 15%);
  --brand-color: hsl(46, 100%, 50%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);

  /*========== Fonts ==========*/
  --body-font: "Poppins", sans-serif;
  --font-slide: "Poppins", sans-serif;
  --font-text-slide: "Lato", sans-serif;

  /*========== Font and typography ==========*/
  --biggest-font-size: 2rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body, h2, p {
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
}

h2 {
  font-size: 2.25rem;
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
  color: var(--white);
  line-height: 1.1;
}

.flow > * + * {
  margin-top: var(--flow-space, 1em);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__close {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav__logo {
  color: var(--text-color);
  column-gap: .5rem;
  font-weight: 800;
  font-size: 1.5rem;
}

.nav__logo i {
  font-size: 1.25rem;
  font-weight: initial;
}

.nav__toggle,
.nav__close {
  background-color: var(--second-color-alt);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--body-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__button {
  display: inline-block;
  width: max-content;
  background: linear-gradient(135deg, var(--second-color), var(--second-color-alt));
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4rem;
  color: var(--body-color);
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
}

.nav__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px hsla(193, 99%, 76%, 0.3);
}

.nav__close {
  position: absolute;
  top: .75rem;
  right: 1.5rem;
}

.show-menu {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--title-color);
}

/* Mobile nav menu - default */
.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  background-color: var(--body-color);
  width: 80%;
  height: 100%;
  box-shadow: 0 0 16px hsla(0, 0%, 0%, .3);
  padding: 6rem 3rem;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
  transition: right .4s;
  z-index: 200;
}

/* Navigation for desktop */
@media screen and (min-width: 1152px) {
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    position: static;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    column-gap: 3.5rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }
}

/*=============== HOME ===============*/
.home {
  position: relative;
  height:100vh;
  display: flex;
  align-items: center;
}

.home__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsla(198, 80%, 5%, 0.88),
    hsla(194, 76%, 8%, 0.75)
  );
  z-index: 2;
}

.home__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.home__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.home__text {
  max-width: 700px;
  margin-inline: auto;
}

.home__label {
  display: inline-block;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--second-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  padding: 0.6rem 2rem;
  border: 2px solid var(--second-color);
  border-radius: 2rem;
  background: hsla(193, 99%, 76%, 0.12);
  box-shadow: 0 0 20px hsla(193, 99%, 76%, 0.15);
}

.home__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px hsla(0, 0%, 0%, 0.4);
  letter-spacing: -1px;
}

.home__title span {
  color: var(--second-color);
}

.home__description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: hsla(0, 0%, 100%, 0.85);
  line-height: 1.7;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.3);
}

.home__actions {
  display: flex;
  justify-content: center;
}

.home__button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background: linear-gradient(135deg, var(--second-color), var(--second-color-alt));
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  color: var(--body-color);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px hsla(193, 99%, 76%, 0.25);
}

.home__button i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.home__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px hsla(193, 99%, 76%, 0.4);
}

.home__button:hover i {
  transform: translateX(0.25rem);
}

/* Mini stats in home */
.home__stats-mini {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: hsla(0, 0%, 100%, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 1rem;
  max-width: 500px;
  margin-inline: auto;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stat-mini:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: hsla(0, 0%, 100%, 0.15);
}

.stat-mini__number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--second-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-mini__label {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-sci {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.home-sci a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.home-sci a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px hsla(193, 99%, 76%, 0.3);
}

/* Home social icons - specific platform colors on hover */
.home-sci a[href*="linkedin"]:hover {
  background: hsla(201, 100%, 35%, 0.15);
  color: #0077b5;
  border-color: #0077b5;
  transform: perspective(1000px) rotateY(15deg) translateY(-3px) scale(1.1);
  box-shadow: -6px 6px 20px hsla(201, 100%, 35%, 0.3);
}

.home-sci a[href*="linkedin"]:hover i {
  color: #0077b5;
  transform: scale(1.2) rotate(15deg);
}

.home-sci a[href*="instagram"]:hover {
  background: linear-gradient(45deg, hsla(305, 100%, 60%, 0.15), hsla(329, 100%, 60%, 0.15));
  color: #e4405f;
  border-color: #e4405f;
  transform: perspective(1000px) rotateY(-15deg) translateY(-3px) scale(1.1);
  box-shadow: 6px 6px 20px hsla(333, 100%, 60%, 0.3);
}

.home-sci a[href*="instagram"]:hover i {
  color: #e4405f;
  transform: scale(1.2) rotate(-15deg);
}

.home-sci a[href*="tiktok"]:hover {
  background: hsla(174, 100%, 47%, 0.15);
  color: #00f2ea;
  border-color: #00f2ea;
  transform: perspective(1000px) rotateX(10deg) translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px hsla(174, 100%, 47%, 0.3);
}

.home-sci a[href*="tiktok"]:hover i {
  color: #00f2ea;
  transform: scale(1.2) rotate(360deg);
}

/* Fix for icons not showing - force display */
.home-sci i[class*="ri-"] {
  font-size: 1.1rem !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  vertical-align: middle;
}

/* WhatsApp icon fix */
.whatsapp-btn i[class*="ri-"] {
  font-size: 2rem !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

/* Footer social icons fix */
.footer__social-link i[class*="ri-"] {
  font-size: 1.5rem !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  vertical-align: middle;
}

.home__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.home__scroll-link {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  animation: bounce 2s infinite;
}

.home__scroll-link:hover {
  color: var(--second-color);
}

.home__scroll-link i {
  font-size: 1.25rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media screen and (min-width: 768px) and (max-width: 1151px) {
  .home__container {
    max-width: 700px;
  }
  .home__title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}

@media screen and (min-width: 1152px) {
  .home {
    height: 100vh;
  }
  .home-sci {
    right: 3rem;
    bottom: 3rem;
  }
  .home-sci a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .home__container {
    max-width: 800px;
  }
  .home__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
  }
  .home__description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }
}

.text-animate {
  font-size: 1.5rem;
  font-weight: 200;
  color: transparent;
  -webkit-text-stroke: .7px var(--title-color);
}

/*=============== ABOUT ===============*/
.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--body-color), var(--third-color));
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(193, 99%, 76%, 0.08), transparent 70%);
  border-radius: 50%;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about__image-group {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__img-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px hsla(0, 0%, 0%, 0.4);
}

.about__img-wrapper img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about__img-wrapper:hover img {
  transform: scale(1.05);
}

.about__img-accent {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 60%;
  height: 60%;
  border: 3px solid var(--second-color);
  border-radius: 1rem;
  z-index: -1;
}

.about__img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(12, 32, 48, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--second-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--second-color);
  line-height: 1;
}

.badge__text {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--second-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1rem;
}

.about__subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--second-color);
  border-radius: 2px;
}

.about__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about__description {
  font-size: 1rem;
  color: hsla(0, 0%, 100%, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: hsla(0, 0%, 100%, 0.1);
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--second-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.8rem;
  color: hsla(0, 0%, 100%, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background: linear-gradient(135deg, var(--second-color), var(--second-color-alt));
  color: var(--body-color);
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px hsla(193, 99%, 76%, 0.2);
}

.about__button i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.about__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px hsla(193, 99%, 76%, 0.35);
}

.about__button:hover i {
  transform: translateX(0.25rem);
}

@media screen and (min-width: 768px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about__image-group {
    justify-content: flex-start;
  }

  .about__img-wrapper img {
    height: 450px;
  }
}

@media screen and (min-width: 1152px) {
  .about__container {
    gap: 5rem;
    max-width: 1200px;
    margin-inline: auto;
  }

  .about__title {
    font-size: 2.75rem;
  }

  .about__description {
    font-size: 1.05rem;
  }

  .about__img-wrapper img {
    height: 500px;
  }
}

@media screen and (max-width: 575px) {
  .about {
    padding: 4rem 0;
  }
  .about__title {
    font-size: 1.75rem;
  }
  .about__description {
    font-size: 0.95rem;
  }
  .about__stats {
    gap: 1rem;
    padding: 1rem;
  }
  .stat__number {
    font-size: 1.5rem;
  }
  .stat__label {
    font-size: 0.7rem;
  }
  .about__img-wrapper img {
    height: 280px;
  }
  .badge__number {
    font-size: 1.5rem;
  }
  .badge__text {
    font-size: 0.65rem;
  }
}

.heading {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
  padding-inline: 1rem;
}

.heading span {
  color: var(--text-color);
}

/*=============== ESTILOS SLIDER ===============*/
.estilos {
  padding: 4rem 0 6rem;
  background: var(--third-color);
}

.slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 2rem 0;
}

.slide-card {
  min-width: 65%;
  margin: 0 1.5rem;
  position: relative;
  height: 480px;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0.4;
  transform: scale(0.85);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.3);
}

.slide-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 48px hsla(0, 0%, 0%, 0.4), 0 0 0 3px var(--second-color);
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slide-card.active img:hover {
  transform: scale(1.05);
}

.slide-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  padding: 2.5rem 2rem 2rem;
}

.slide-card__overlay h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.6);
}

.slide-card__overlay p {
  font-size: 1rem;
  color: hsla(0, 0%, 100%, 0.92);
  line-height: 1.6;
  max-width: 500px;
  text-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.5);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 32, 48, 0.7);
  color: var(--text-color);
  border: 2px solid var(--second-color);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: var(--second-color);
  color: var(--body-color);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px var(--second-color);
}

.slider-btn--prev {
  left: 1.5rem;
}

.slider-btn--next {
  right: 1.5rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0 0.5rem;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--second-color);
  width: 32px;
  border-radius: 5px;
}

.slider-dots .dot:hover:not(.active) {
  background: var(--second-color-alt);
  transform: scale(1.2);
}

@media screen and (max-width: 1023px) {
  .slide-card {
    min-width: 75%;
    height: 400px;
  }
  .slide-card__overlay h3 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 767px) {
  .slide-card {
    min-width: 88%;
    height: 340px;
    margin: 0 0.5rem;
  }
  .slide-card__overlay h3 {
    font-size: 1.2rem;
  }
  .slide-card__overlay p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .slider-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
  }
  .slider-btn--prev {
    left: 0.25rem;
  }
  .slider-btn--next {
    right: 0.25rem;
  }
}

@media screen and (max-width: 425px) {
  .slide-card {
    min-width: 92%;
    height: 260px;
  }
  .slide-card__overlay {
    padding: 1.25rem 0.75rem;
  }
  .slide-card__overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .slide-card__overlay p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/*=============== ESPECIALIDAD ===============*/
.especialidad {
  padding: 5rem 0 6rem;
  background: var(--body-color);
}

.especialidad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.especialidad__card {
  background: var(--third-color);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.especialidad__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--second-color), var(--second-color-alt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.especialidad__card:hover {
  box-shadow: 0 16px 40px hsla(0, 0%, 0%, 0.35);
  border-color: var(--second-color);
}

.especialidad__card:hover::before {
  transform: scaleX(1);
}

.especialidad__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: hsla(193, 99%, 76%, 0.1);
  border: 2px solid var(--second-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  transform: translateZ(20px);
}

.especialidad__card:hover .especialidad__icon {
  background: var(--second-color);
  transform: scale(1.1);
}

.especialidad__icon i {
  font-size: 1.6rem;
  color: var(--second-color);
  transition: color 0.4s ease;
}

.especialidad__card:hover .especialidad__icon i {
  color: var(--body-color);
}

.especialidad__card-title {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
  transform: translateZ(15px);
}

.especialidad__card-desc {
  font-size: 0.95rem;
  color: hsla(0, 0%, 100%, 0.6);
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .especialidad__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .especialidad__card {
    padding: 2rem 1.5rem;
  }

  .especialidad__card-title {
    font-size: 1.1rem;
  }

  .especialidad__card-desc {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .especialidad__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1152px) {
  .especialidad__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/*=============== ANIMATIONS ===============*/
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/*=============== PRELOADER ===============*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader__spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid hsla(0, 0%, 100%, 0.1);
  border-top-color: var(--second-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader__logo i {
  color: var(--second-color);
  font-size: 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.98); }
}

/*=============== FOOTER ===============*/
.footer {
  background: var(--body-color);
  padding: 3rem 0 0;
}

.footer__container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.footer__title {
  color: var(--second-color);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.75rem;
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.footer__social-link i {
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* TikTok hover */
.footer__social-link[href*="tiktok"]:hover {
  background: hsla(0, 0%, 100%, 0.1);
  color: #00f2ea;
  border-color: #00f2ea;
  transform: perspective(1000px) rotateY(15deg) translateX(0.75rem) scale(1.05);
  box-shadow: -8px 8px 25px hsla(174, 100%, 47%, 0.3);
}

.footer__social-link[href*="tiktok"]:hover i {
  color: #00f2ea;
  transform: scale(1.3) rotate(15deg);
}

/* Instagram hover */
.footer__social-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, hsla(305, 100%, 60%, 0.15), hsla(329, 100%, 60%, 0.15));
  color: #e4405f;
  border-color: #e4405f;
  transform: perspective(1000px) rotateY(-15deg) translateX(0.75rem) scale(1.05);
  box-shadow: 8px 8px 25px hsla(333, 100%, 60%, 0.3);
}

.footer__social-link[href*="instagram"]:hover i {
  color: #e4405f;
  transform: scale(1.3) rotate(-15deg);
}

/* YouTube hover */
.footer__social-link[href*="youtube"]:hover {
  background: hsla(0, 100%, 50%, 0.1);
  color: #ff0000;
  border-color: #ff0000;
  transform: perspective(1000px) rotateX(10deg) translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px hsla(0, 100%, 50%, 0.3);
}

.footer__social-link[href*="youtube"]:hover i {
  color: #ff0000;
  transform: scale(1.3) rotate(360deg);
}

.footer__copy {
  padding: 1.5rem 0;
  text-align: center;
}

.footer__copy p {
  color: hsla(0, 0%, 100%, 0.4);
  font-size: 0.875rem;
}

@media screen and (max-width: 767px) {
  .footer {
    padding: 2rem 0 0;
  }
  .footer__container {
    padding-bottom: 1.5rem;
  }
  .footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .footer__social-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
  .footer__social-link i {
    font-size: 1.2rem;
  }
  .footer__links {
    align-items: center;
  }
  .footer__copy p {
    font-size: 0.8rem;
  }
}

@media screen and (min-width: 1152px) {
  .footer {
    padding-top: 4rem;
  }
  .footer__container {
    padding-bottom: 3rem;
  }
}

/*=============== WHATSAPP BUTTON ===============*/
.whatsapp-btn {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  z-index: calc(var(--z-fixed) + 1);
  box-shadow: 0 4px 16px hsla(142, 64%, 43%, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-btn i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px hsla(142, 64%, 43%, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--body-color);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.15);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--white);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: calc(100% + 0.75rem);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media screen and (max-width: 767px) {
  .whatsapp-btn {
    bottom: 5.5rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
  }
  .whatsapp-btn i {
    font-size: inherit;
    display: inline-flex !important;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/*=============== CTA SECTION ===============*/
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--first-color), var(--third-color));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, hsla(193, 99%, 76%, 0.1), transparent 50%);
  pointer-events: none;
}

.cta__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta__description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: hsla(0, 0%, 100%, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 4rem;
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px hsla(142, 64%, 43%, 0.3);
}

.cta__button i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.cta__button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px hsla(142, 64%, 43%, 0.45);
  background: #20bd5a;
}

.cta__button:hover i {
  transform: scale(1.2) rotate(15deg);
}

@media screen and (max-width: 576px) {
  .cta {
    padding: 4rem 0;
  }
  .cta__button {
    width: 100%;
    justify-content: center;
  }
}

/*=============== SCROLL PROGRESS BAR ===============*/
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--second-color), var(--second-color-alt));
  z-index: calc(var(--z-fixed) + 1);
  transition: width 0.1s ease-out;
}

/*=============== SCROLL TO TOP ===============*/
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--third-color);
  border: 2px solid var(--second-color);
  color: var(--second-color);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: calc(var(--z-fixed) + 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--second-color);
  color: var(--body-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px hsla(193, 99%, 76%, 0.3);
}

@media screen and (max-width: 767px) {
  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}
