/* Estructura Base para Scroll Perfecto */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Previene scroll en el body, lo delegamos al contenedor interno */
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #f8fafc;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.title-fade {
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  display: inline-block;
}

.title-fade.hidden-fade {
  opacity: 0;
  transform: translateY(10px);
}

/* Fondo Ola Animada */
@keyframes gradientTide {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Carousel Vertical */
.fade-enter {
  opacity: 0;
  transform: translateY(10px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s,
    transform 0.5s;
}

.fade-exit {
  opacity: 1;
  transform: translateY(0);
}

.fade-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}

/* Inputs & Errores */
.input-field {
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.input-field.error {
  border-color: #ef4444 !important;
  background-color: #fff5f5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  margin-left: 0.25rem;
  display: none;
  font-weight: 600;
}

.input-group.error .error-text {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Tabs Perfil */
.profile-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.profile-tab:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.profile-tab.active-user {
  background: linear-gradient(to bottom right, #eff6ff, #e0f2fe);
  border-color: #3b82f6;
  color: #1e40af;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.2);
  border-width: 1px;
}

.profile-tab.active-user .icon-box {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

.profile-tab.active-user::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.profile-tab.active-pro {
  background: linear-gradient(to bottom right, #fdf4ff, #fae8ff);
  border-color: #d946ef;
  color: #a21caf;
  box-shadow: 0 4px 12px -2px rgba(217, 70, 239, 0.2);
  border-width: 1px;
}

.profile-tab.active-pro .icon-box {
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(217, 70, 239, 0.3);
}

.profile-tab.active-pro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d946ef, #8b5cf6);
}

/* Checkbox Custom (TyC) */
.checkbox-custom {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: white;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-custom:checked {
  border-color: #3b82f6;
  background-color: #3b82f6;
}

.checkbox-custom:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ReCAPTCHA Checkbox */
.checkbox-captcha {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: white;
  transition: all 0.2s;
}

.checkbox-captcha:checked {
  border-color: #3b82f6;
  background-color: white;
}

.checkbox-captcha:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #059669;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Chips Sugerencias */
.chip-suggestion {
  padding: 4px 12px;
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-suggestion:hover {
  background-color: #dbeafe;
  transform: translateY(-1px);
}

/* Fondo Ola & Glass */
.wave-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #ffffff;
}

.wave-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4, #7c3aed, #1e40af);
  background-size: 400% 400%;
  animation: gradientTide 25s ease infinite;
  clip-path: path("M0,450 C300,550 800,900 2000,500 L2000,1200 L0,1200 Z");
  filter: drop-shadow(0 -10px 20px rgba(59, 130, 246, 0.2));
}

.gecko-scales {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L37 10 L37 30 L20 40 L3 30 L3 10 Z' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.8'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  mix-blend-mode: overlay;
  clip-path: path("M0,450 C300,550 800,900 2000,500 L2000,1200 L0,1200 Z");
}

.wave-shape::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shine 8s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.glass-contrast-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-panel-right {
  background-color: #ffffff;
}

@media (min-width: 1024px) {
  .glass-panel-right {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }
}

.custom-scroll::-webkit-scrollbar {
  width: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(203, 213, 225, 0.5);
  border-radius: 20px;
}
