/* Variables */
:root {
  --primary-color: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd9;
  --secondary-color: #ff6b9d;
  --accent-color: #ffc1cc;
  --gold-accent: #ffd700;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;
  --success-color: #27ae60;
  --success-light: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --dark-overlay: rgba(0, 0, 0, 0.4);
  --light-overlay: rgba(255, 255, 255, 0.95);
  --glass-effect: rgba(255, 255, 255, 0.1);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(233, 30, 99, 0.3);
  --border-radius: 20px;
  --border-radius-small: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --backdrop-blur: blur(15px);
}

/* Reset y estilos base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: url('../background.jpg') center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Overlay para mejorar legibilidad sobre la imagen de fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(233, 30, 99, 0.1) 0%,
      rgba(255, 107, 157, 0.05) 25%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(233, 30, 99, 0.1) 75%,
      rgba(255, 107, 157, 0.05) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  background: var(--light-overlay) !important;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-medium);
  border-bottom: 1px solid rgba(233, 30, 99, 0.2);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-heavy);
  transform: translateY(0);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.5));
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  z-index: -1;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.navbar-nav .nav-link:hover::before {
  left: 0;
}

/* Contenedores principales */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
}

/* CARDS DEL INDEX */
.card.mb-3 {
  background: var(--light-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  margin: 25px;
  max-width: 640px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out;
}

.card.mb-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--gold-accent));
  opacity: 0;
  transition: var(--transition);
}

.card.mb-3::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}

.card.mb-3:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
  border-color: rgba(233, 30, 99, 0.3);
}

.card.mb-3:hover::before {
  opacity: 1;
}

.card.mb-3:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Imagen de perfil */
#perfil {
  width: 270px;
  height: 460px;
  margin-left: -6% !important;
  object-fit: cover;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  transition: var(--transition);
}

.card.mb-3:hover #perfil {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1);
}

/* Card body */
.card-body {
  margin-left: 9% !important;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.card-title {
  margin-left: 4%;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dcindex {
  margin-left: 20%;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-text {
  margin-left: 4%;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2rem;
}

/* TELÉFONO */
#fondo {
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  /* Adjust width */
  height: 15%;
  border-radius: 0 0 var(--border-radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  overflow: hidden;
  margin-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

#fondo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: var(--transition);
  opacity: 0;
}

.card.mb-3:hover #fondo {
  background: linear-gradient(135deg, var(--success-light), var(--success-color));
  transform: translateY(-5px);
}

.card.mb-3:hover #fondo::before {
  opacity: 1;
  animation: shimmer 2s ease-in-out infinite;
}

#telefonoindex {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  margin: 0;
  /* Remove default margin */
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  position: relative;
  /* Change from absolute to relative */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#telefonoindex::before {
  content: '\f095';
  font-family: 'Font Awesome 5 Free';
  margin-right: 8px;
  font-size: 0.9em;
}

#banderaindex {
  position: absolute;
  right: 0;
  margin-right: 6%;
  width: 35px;
  height: auto;
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.card.mb-3:hover #banderaindex {
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* Formularios */
.form-control,
.form-select {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  font-weight: 500;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25), var(--shadow-glow);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.form-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Botones */
.btn {
  border-radius: var(--border-radius);
  padding: 1rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: var(--shadow-medium);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #ad1457);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #229954, var(--success-color));
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy), 0 0 20px rgba(39, 174, 96, 0.4);
}

/* Cards de formularios */
.card {
  background: var(--light-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--gold-accent));
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mapa */
#mapa,
#map {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  transition: var(--transition);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

#mapa:hover,
#map:hover {
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
  transform: translateY(-3px);
}

/* Carousel */
.carousel {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.carousel:hover {
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
  transform: translateY(-5px);
}

.carousel-item img {
  transition: var(--transition);
  filter: brightness(1.05);
}

.carousel:hover .carousel-item.active img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.carousel-indicators button {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin: 0 5px;
  transition: var(--transition);
}

.carousel-indicators button.active {
  background-color: var(--gold-accent);
  transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(233, 30, 99, 0.8);
  border-radius: 50%;
  padding: 25px;
  transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Vista de perfil */

.profile-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.profile-carousel {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.carousel-img {
  height: 900px;
  object-fit: cover;
  object-position: center;
}

.profile-card {
  background: var(--light-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-name {
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-meta {
  margin-bottom: 2rem;
}

.profile-detail {
  display: flex;
  flex-direction: column;
}

.profile-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.profile-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-contact {
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.profile-contact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.profile-location {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 193, 204, 0.1));
  color: var(--text-primary);
  font-weight: 600;
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--primary-color);
}

.profile-description {
  flex-grow: 1;
}

.description-content {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(255, 107, 157, 0.02));
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.7;
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--primary-color);
  max-height: 200px;
  overflow-y: auto;
}

#map {
  height: 250px;
  width: 100%;
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-light);
}

#verperfil .card {
  background: var(--light-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-radius: var(--border-radius);
  overflow: hidden;
}

#verperfil .card p {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(255, 107, 157, 0.05));
  border-radius: var(--border-radius-small);
  font-weight: 600;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

#verperfil .card p:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(255, 107, 157, 0.1));
}

/* Footer */
footer {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95)) !important;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  color: white;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url('../vigo.jpg') center center;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

footer h5 {
  color: var(--accent-color);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

footer a {
  color: #bdc3c7 !important;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-color) !important;
  transform: translateX(8px);
  text-shadow: 0 0 10px rgba(255, 193, 204, 0.5);
}

/* BOTÓN VOLVER ARRIBA */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-heavy);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-heavy), var(--shadow-glow);
}

#backToTop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
  transform: rotate(45deg) scale(0);
  transition: var(--transition);
}

#backToTop:hover::before {
  transform: rotate(45deg) scale(1);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: rotate(45deg) scale(1.5);
    opacity: 0;
  }
}

/* Alertas  */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-left: 5px solid;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.9), rgba(255, 193, 204, 0.9));
  color: #721c24;
  border-left-color: var(--danger-color);
}

.alert-success {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(46, 204, 113, 0.9));
  color: #155724;
  border-left-color: var(--success-color);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: var(--shadow-medium);
  }

  50% {
    box-shadow: var(--shadow-heavy), var(--shadow-glow);
  }
}

/* Aplicar animaciones */
.card.mb-3 {
  animation: fadeInUp 0.8s ease-out;
}

.card.mb-3:nth-child(even) {
  animation: slideInLeft 0.8s ease-out;
}

.form-control:focus {
  animation: glow 0.5s ease-in-out;
}

.navbar-brand {
  animation: float 3s ease-in-out infinite;
}

/* Medium screens */
@media (max-width: 992px) {
  .card.mb-3 {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
  }

  .row>* {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
  }

  .container {
    padding: 1rem;
  }

  .profile-container {
    padding: 1rem;
  }

  .carousel-img {
    height: 500px;
  }

}

/* Small screens */
@media (max-width: 768px) {
  .card.mb-3 {
    margin: 15px 0;
  }

  .card.mb-3 .row {
    flex-direction: column;
  }

  #perfil {
    width: 100%;
    height: 300px;
    margin-left: 0 !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }

  .card-body {
    margin-left: 0 !important;
    padding: 1.5rem;
    width: 100%;
  }

  .card-title,
  .card-text,
  #dcindex {
    margin-left: 0;
    padding: 0 0.5rem;
    text-align: center;
  }

  #dcindex {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  #fondo {
    width: 100%;
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 1rem;
    border-radius: var(--border-radius-small);
  }

  #banderaindex {
    position: static;
    display: block;
    margin: 0.5rem auto;
  }

  .carousel-img {
    height: 400px;
  }

  .profile-card {
    margin-top: 2rem;
  }

  .description-content {
    max-height: 150px;
  }

  #map {
    height: 200px;
  }

}

/* Extra small screens */
@media (max-width: 576px) {
  .container {
    padding: 0.5rem;
  }

  .card.mb-3 {
    margin: 10px 0;
    padding: 0;
  }

  .card-body {
    padding: 1rem;
  }

  #telefonoindex {
    font-size: 1.2rem;
  }

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

  #dcindex {
    font-size: 0.95rem;
  }

  .carousel-img {
    height: 350px;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .profile-value {
    font-size: 1.1rem;
  }

  .profile-contact {
    font-size: 1.1rem;
  }

  .description-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  #map {
    height: 180px;
  }

  .card-text {
    margin-bottom: 2rem;
  }

  #fondo {
    margin-top: 1rem;
  }
}

/* Logo in header */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  width: auto;
  margin-right: 8px;
}

/* Estados de carga */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  margin: -12.5px 0 0 -12.5px;
  border: 3px solid var(--primary-color);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Efectos adicionales */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid rgba(233, 30, 99, 0.5);
  outline-offset: 2px;
}

/* Efectos de partículas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 6s ease-in-out infinite;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
}

/*filtros de genero*/
  #chicas:hover {
  border: 1px solid #e83e8c !important;
  color: #e83e8c !important;
  background-color: white !important;
  transition: all 0.3s ease;
}

#chicas {
  background-color: #e83e8c !important;
  color: white !important;
}

#chicos:hover{
  border: 1px solid #0d6efd !important;
  color: #0d6efd !important;
  background-color: white !important;
  transition: all 0.3s ease;
}

#chicos{
  background-color: #0d6efd !important;
  color: white !important;
}

#trans:hover  {
  border: 1px solid #6f42c1 !important;
  color: #6f42c1 !important;
  background-color: white !important;
  transition: all 0.3s ease;
}

#trans{
  background-color: #6f42c1 !important;
  color: white !important;
}

html, body {
      height: 100%;
      margin: 0;
    }
    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    main {
      flex: 1; /* Esto hace que main ocupe el espacio disponible */
    }
#avisoEdad {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

        /* Caja Modal */
        .miModalEdad {
            background: #fff;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            border-radius: 12px;
            box-shadow: 0 0 15px rgba(0,0,0,0.3);
            text-align: center;
            animation: fadeIn 0.5s ease;
        }

        .miModalEdad h1 {
            margin-top: 0;
            font-size: 24px;
            color: #333;
        }

        .miModalEdad p {
            font-size: 16px;
            color: #555;
            margin-bottom: 25px;
        }

        .miModalEdad button {
            padding: 12px 25px;
            margin: 10px;
            font-size: 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.3s;
        }

        #btnSi {
            background: #28a745;
            color: #fff;
        }

        #btnSi:hover {
            background: #218838;
        }

        #btnNo {
            background: #dc3545;
            color: #fff;
        }

        #btnNo:hover {
            background: #c82333;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }