/* Fonts are loaded dynamically via header_config.php */

:root {
  --primary-color: #a53162; /* Rosa PISCIS */
  --secondary-color: #c47799; /* Negro suave */
  --text-light: #ffffff;
  --text-dark: #333333;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  cursor: auto;
}

/* --- PAGE TRANSITION OVERLAY --- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary-color);
  z-index: 99999;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.page-transition.page-in {
  transform: translateY(-100%);
}

.page-transition.page-out {
  transform: translateY(0);
  pointer-events: all;
}

.transition-loader {
  width: 100px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.transition-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  animation: loader-anim 1.5s infinite;
}

@keyframes loader-anim {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

@media (min-width: 1024px) {
  body {
    cursor: none; /* Ocultar solo en escritorio para el personalizado */
  }
}

/* --- CUSTOM CURSOR --- */
.cursor,
.cursor-follower {
  display: none; /* Oculto por defecto (Móvil) */
}

@media (min-width: 1024px) {
  .cursor {
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483647;
    transition:
      transform 0.1s ease,
      width 0.3s ease,
      height 0.3s ease;
    transform: translate(-50%, -50%);
  }

  .cursor-follower {
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483646;
    transition:
      transform 0.2s ease,
      width 0.3s ease,
      height 0.3s ease;
    transform: translate(-50%, -50%);
  }
}

.cursor.active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: #fff;
}

.cursor-follower.active {
  transform: translate(-50%, -50%) scale(2);
  border-color: #fff;
}

/* --- HEADER & MENU --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  padding-left: 20px;
  color: var(--primary-color);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 3px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .logo {
    padding-left: 40px;
    font-size: 2.2rem;
    letter-spacing: 5px;
  }
}

.menu-opener {
  width: 60px; /* Móvil primero */
  height: 60px;
  background-color: #1b1b1b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

@media (min-width: 1024px) {
  .menu-opener {
    width: 80px;
    height: 80px;
  }
}

.menu-opener:hover {
  background-color: var(--primary-color);
}

.menu-opener:hover .hamburger-line {
  background-color: var(--secondary-color);
}

.hamburger-line {
  width: 35px;
  height: 2px;
  background-color: var(--text-light);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Fullscreen Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary-color);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 10%;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.menu-overlay.active {
  transform: translateY(0);
}

.menu-overlay.closing {
  transform: translateY(-100%);
}

.close-menu {
  position: fixed;
  top: 30px;
  right: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 3rem;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  transform: rotate(0deg);
  background: transparent;
  border: none;
  padding: 0;
}

.close-menu.active {
  opacity: 1;
  visibility: visible;
  transform: rotate(90deg);
}

.close-menu:hover {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

.nav-item {
  margin: 15px 0;
  transform: translateY(40px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.6s ease;
}

.menu-overlay.active .nav-item {
  transform: translateY(0);
  opacity: 1;
}

/* Animación de SALIDA (Staggered exit) */
.menu-overlay.closing .nav-item {
  transform: translateY(-40px);
  opacity: 0;
  transition-delay: 0s !important;
}

/* Animación escalonada para los items (ENTRADA) */
.menu-overlay.active .nav-item:nth-child(1) {
  transition-delay: 0.3s;
}
.menu-overlay.active .nav-item:nth-child(2) {
  transition-delay: 0.4s;
}
.menu-overlay.active .nav-item:nth-child(3) {
  transition-delay: 0.5s;
}
.menu-overlay.active .nav-item:nth-child(4) {
  transition-delay: 0.6s;
}
.menu-overlay.active .nav-item:nth-child(5) {
  transition-delay: 0.7s;
}

/* Animación escalonada para los items (SALIDA) */
.menu-overlay.closing .nav-item:nth-child(5) {
  transition-delay: 0s;
}
.menu-overlay.closing .nav-item:nth-child(4) {
  transition-delay: 0.1s;
}
.menu-overlay.closing .nav-item:nth-child(3) {
  transition-delay: 0.2s;
}
.menu-overlay.closing .nav-item:nth-child(2) {
  transition-delay: 0.3s;
}
.menu-overlay.closing .nav-item:nth-child(1) {
  transition-delay: 0.4s;
}

.link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.nav-link {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.377rem; /* Móvil primero (reducido 10% adicional) */
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.4s ease;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 4.2075rem; /* Escritorio (reducido 10% adicional) */
    line-height: 1;
  }
}

.nav-link.nav-link-privacidad {
  font-size: 0.765rem; /* 50% del tamaño reducido */
}

@media (min-width: 1024px) {
  .nav-link.nav-link-privacidad {
    font-size: 2.3375rem; /* 50% del tamaño reducido en escritorio */
  }
}

.nav-item.active-submenu .nav-link {
  border-bottom-color: var(--text-light); /* Underline como en la imagen */
}

.submenu-toggle {
  margin-left: auto;
  padding-left: 20px;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition:
    transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
    color 0.3s ease;
  width: 60px;
  height: 40px;
  justify-content: flex-end;
}

.submenu-toggle svg {
  width: 25px; /* Móvil primero */
  height: 25px;
  stroke-width: 1px;
  opacity: 0.4;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

@media (min-width: 1024px) {
  .submenu-toggle svg {
    width: 45px;
    height: 45px;
  }
}

.nav-item:hover .submenu-toggle svg {
  opacity: 1;
}

.nav-item.active-submenu .submenu-toggle {
  transform: rotate(90deg);
  color: var(--primary-color);
}

/* SUBMENU STYLES */
.submenu {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px 0;
  display: none;
  overflow: hidden;
}

.nav-item.active-submenu > .submenu {
  display: block;
}

.submenu li {
  margin: 12px 0;
  opacity: 0;
  transform: translateY(15px);
}

.nav-item.active-submenu .submenu li {
  animation: slideInSubmenu 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Delays para subitems para efecto escalonado */
.submenu li:nth-child(1) {
  animation-delay: 0.1s;
}
.submenu li:nth-child(2) {
  animation-delay: 0.15s;
}
.submenu li:nth-child(3) {
  animation-delay: 0.2s;
}
.submenu li:nth-child(4) {
  animation-delay: 0.25s;
}

.submenu li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1.1rem; /* Móvil primero */
  font-weight: 300;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
}

@media (min-width: 1024px) {
  .submenu li a {
    font-size: 1.4rem;
  }
}

.submenu li a:hover {
  color: var(--primary-color);
  transform: translateX(10px);
}

@keyframes slideInSubmenu {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-text {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: -40px;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: scale(0);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
  opacity: 0;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover .link-text {
  transform: translateX(20px);
}

.nav-link:hover::before {
  transform: scale(1);
  opacity: 1;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin: 0;
}

.ms-section {
  text-align: center;
  background-size: cover;
  background-position: center;
  width: 100%;
  position: relative; /* Ensure it is a container for absolute children */
}

.bg-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE LAYOUT FOR MULTISCROLL */
body.ms-responsive .ms-left,
body.ms-responsive .ms-right {
  width: 100% !important;
  float: none !important;
  display: block;
}

body.ms-responsive .ms-section {
  height: 100vh !important; /* Ensure sections take full height on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
}

body.ms-responsive .ms-tableCell {
  height: 100% !important;
  vertical-align: middle;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 2%; /* Móvil primero: menos espacio */
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  width: 100%;
  position: relative; /* Ensure it sits on top */
  z-index: 10;
}

@media (min-width: 1024px) {
  .content-wrapper {
    padding: 0 15%;
  }
}

.text-section {
  background: var(--secondary-color) !important;
}

.text-section .content-wrapper {
  background: transparent;
}

.title {
  font-size: 1.1875rem; /* 19px */
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  word-wrap: normal; /* Evitar roturas mid-word */
}

@media (min-width: 768px) {
  .title {
    font-size: 1.875rem; /* 30px */
  }
}

@media (min-width: 1024px) {
  .title {
    font-size: 5rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    max-width: 100%;
  }
}

@media (min-width: 2560px) {
  .title {
    font-size: 5.625rem; /* 90px */
  }
}

.title span {
  display: block;
  white-space: normal;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  paint-order: stroke fill;
}

.ms-section.active .title span {
  transform: translateY(0);
}

.subtitle {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 300;
  max-width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: 0.2s;
  paint-order: stroke fill;
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.5625rem; /* 25px */
  }
}

@media (min-width: 1024px) {
  .subtitle {
    font-size: 1.5625rem; /* 25px */
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 800px;
  }
}

@media (min-width: 2560px) {
  .subtitle {
    font-size: 3.125rem; /* 50px */
    max-width: 1200px;
  }
}

.ms-section.active .subtitle {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  padding: 15px 10px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: 0.4s;
  width: 90%;
  max-width: 250px;
}

.ms-section.active .cta-button {
  opacity: 1;
  transform: translateY(0);
}

.cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

@media (min-width: 1024px) {
  .cta-button {
    padding: 15px 30px;
    width: auto;
    min-width: 200px;
    max-width: none;
    white-space: nowrap;
  }
}

/* Ajustes específicos para multiscroll (Dots) */
#multiscroll-nav.right {
  right: -2px !important; /* Ajuste para que el gap final sea de 10px (-2px base + 5px margen + 7px offset) */
}

#multiscroll-nav li {
  width: 30px; /* Tamaño del contenedor para fácil click/tap */
  height: 30px;
  margin: 15px 5px; /* Gran separación en móvil para dedos humanos */
}

#multiscroll-nav span {
  width: 16px !important; /* Doble del tamaño original (8px * 2) */
  height: 16px !important;
  top: 7px !important;
  left: 7px !important;
  background: var(--primary-color) !important;
  border: none !important;
  transition: all 0.3s ease;
}

#multiscroll-nav li a.active span {
  background: #fff !important;
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  #multiscroll-nav.right {
    right: 17px !important; /* Restaurar valor original en desktop */
  }

  #multiscroll-nav li {
    width: 40px;
    height: 40px;
    margin: 5px 0; /* Espaciado de 10px total entre items */
  }

  #multiscroll-nav span {
    width: 20px !important; /* 2.5 veces el tamaño original (8px * 2.5) */
    height: 20px !important;
    top: 10px !important;
    left: 10px !important;
  }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateY(20px);
  padding: 0;
}

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* =========================================
   TEAM MODALS
   ========================================= */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.profile-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  background: #fefdfa; /* Blanco quemado */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto;
  color: #333;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.profile-modal.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.profile-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}

.profile-modal-close:hover {
  color: var(--primary-color);
}

/* Modal Content Structure */
.profile-header-center {
  padding: 60px 30px 20px;
  text-align: center;
}

.profile-img-circle {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.profile-title-center h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin: 0;
}

.profile-title-center span {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  display: block;
}

.profile-resume {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.profile-bio p {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
  margin-bottom: 25px;
}

.profile-specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.specialty-tag {
  background: rgba(214, 131, 147, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.profile-social .social-icon {
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  font-weight: 600;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--primary-color);
}

.profile-gallery h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Mobile Adjustments */
@media (min-width: 768px) {
  .profile-body {
    padding: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid img {
    height: 180px;
  }
}

@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillLogo {
  0% {
    fill-opacity: 0;
    stroke-width: 2px;
  }
  100% {
    fill-opacity: 1;
    stroke-width: 0;
    stroke: transparent;
  }
}

/* Eliminado shimmerEffect anterior en favor del nuevo shine-logo */

/* Ensure CTA button is visible and styled properly in this section */
.text-section .cta-button {
  margin-top: 20px;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.text-section .cta-button:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.team-section {
  padding: 100px 0;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.team-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 0 40px;
}

.team-row-item {
  width: 100%;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.team-row-item:hover {
  transform: translateY(-5px);
}

.team-row-content {
  display: flex;
  flex-direction: column; /* Móvil primero: columna apilada */
  align-items: center;
  gap: 30px;
  text-align: center;
}

.team-row-text {
  flex: 1;
}

.team-row-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.team-row-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.team-row-img-wrap {
  flex: 1;
  max-width: 600px; /* Limitar el ancho para que no sea gigante */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease;
}

.team-row-img-wrap picture img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-row-item:hover .team-row-img-wrap img {
  transform: scale(1.05);
}

.team-row-item:hover .team-row-img-wrap {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  .team-row-content {
    flex-direction: row; /* Desktop: fila */
    text-align: left; /* Alineado a la izquierda */
    gap: 80px;
  }

  .team-row-text {
    padding-left: 20px;
  }
}

/* Back to Top CSS already here */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateY(20px);
  padding: 0;
}

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

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
