:root {
  --color-primary: #B388EB;      
  --color-secondary: #8093F1;   
  --color-accent-pink: #F7AEF8;  
  --color-accent-blue: #72DDF7;  
  --color-dark: #1f1f1f;
  --color-light: #fdfcfa;
  --color-white: #ffffff;
  --card-height: 450px; /* Aumentado de 380px a 450px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--color-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
}

/* Navegación (igual que la página de historia) */
.navbar {
  background: linear-gradient(135deg, rgba(27, 27, 27, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%) !important;
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--color-accent-pink);
}

.navbar-brand {
  font-weight: 700;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  border-color: var(--color-accent-blue);
  transform: rotate(5deg);
}

.brand-text {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.nav-link:hover {
  color: var(--color-white) !important;
  background: rgba(247, 174, 248, 0.15);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--color-accent-pink) !important;
  font-weight: 600;
  background: rgba(247, 174, 248, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-blue));
  border-radius: 2px;
}

/* Header especial para equipo */
.equipo-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  margin-top: 76px;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.equipo-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
}

.equipo-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(247, 174, 248, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(114, 221, 247, 0.2) 0%, transparent 20%);
}

.hero-title {
  font-size: 3.2rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.hero-illustration {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.hero-illustration i {
  font-size: 3rem;
  margin: 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  animation: float 3s ease-in-out infinite;
}

.hero-illustration i:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-illustration i:nth-child(3) {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Contenido principal */
.team-intro .lead {
  font-size: 1.2rem;
  color: var(--color-dark);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--color-accent-pink);
}

/* Tarjetas de equipo - VERSIÓN CON FOTOS MÁS GRANDES */
.team-card {
  perspective: 1200px;
  height: var(--card-height);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  background: var(--color-white);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(183, 136, 235, 0.25);
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: calc(100% - 50px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-card-front,
.team-card-back-large {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.team-card-front {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

/* CONTENEDOR DE FOTO MÁS GRANDE */
.member-photo-large {
  height: 75%; /* Aumentado de 65% a 75% */
  position: relative;
  overflow: hidden;
}

.member-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cambiado de 'cover' a 'contain' si quieres ver toda la imagen */
  transition: transform 0.7s ease;
}

.photo-overlay-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
}

.team-card:hover .member-img-large {
  transform: scale(1.05);
}

/* INFO DEL MIEMBRO - AJUSTADA PARA FOTOS MÁS GRANDES */
.member-info-large {
  padding: 1.2rem; /* Reducido para dar más espacio a la foto */
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-name-large {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.member-role-large {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed var(--color-accent-pink);
}

.member-social-large {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icon-large {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-icon-large:hover {
  transform: scale(1.2) rotate(15deg);
}

/* PARTE TRASERA DE LA TARJETA */
.team-card-back-large {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
  color: var(--color-white);
  padding: 2rem;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 3px solid var(--color-accent-pink);
}

.team-card-back-large h4 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--color-accent-blue);
  text-align: center;
}

.team-card-back-large p {
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
}

.card-back-content-large {
  max-height: 90%;
  overflow-y: auto;
  padding-right: 10px;
}

.card-back-content-large::-webkit-scrollbar {
  width: 6px;
}

.card-back-content-large::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.card-back-content-large::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-accent-pink), var(--color-accent-blue));
  border-radius: 3px;
}

.flipped {
  transform: rotateY(180deg);
}

/* BOTÓN PARA VOLTEAR */
.team-card-flip-btn-large {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.team-card-flip-btn-large:hover {
  background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-secondary) 100%);
  letter-spacing: 1px;
}

.team-card-flip-btn-large i {
  margin-right: 8px;
}

/* Tarjetas de valores */
.team-values {
  padding: 3rem 0;
}

.team-values h2 {
  font-size: 2.5rem;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.team-values h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-blue));
  border-radius: 2px;
}

.value-card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-top: 5px solid var(--color-primary);
}

.value-card:hover {
  box-shadow: 0 15px 35px rgba(183, 136, 235, 0.2);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-accent-pink) 0%, var(--color-accent-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.8rem;
}

.value-card h5 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.value-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer (igual que la página de historia) */
footer {
  background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 3px solid var(--color-accent-pink);
  color: var(--color-white);
  text-align: center;
}

footer p {
  font-size: 0.95rem;
  margin: 0.4rem 0;
  line-height: 1.6;
  color: var(--color-white);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

footer .footer-title {
  color: var(--color-accent-pink);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Responsive para imágenes grandes */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  :root {
    --card-height: 420px;
  }
  
  .team-values h2 {
    font-size: 2.2rem;
  }
  
  .member-photo-large {
    height: 70%;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .nav-link {
    text-align: left;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-illustration i {
    font-size: 2.5rem;
    margin: 0 1rem;
  }
  
  :root {
    --card-height: 400px;
  }
  
  .team-values h2 {
    font-size: 2rem;
  }
  
  .value-card {
    margin-bottom: 1.5rem;
  }
  
  .member-photo-large {
    height: 65%;
  }
  
  .member-name-large {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    width: 40px !important;
    height: 40px !important;
  }
  
  .brand-text {
    font-size: 1.1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-illustration i {
    font-size: 2rem;
    margin: 0 0.7rem;
  }
  
  .team-intro .lead {
    font-size: 1.1rem;
    padding: 1.2rem;
  }
  
  :root {
    --card-height: 380px;
  }
  
  .member-name-large {
    font-size: 1.3rem;
  }
  
  .member-role-large {
    font-size: 0.9rem;
  }
  
  .team-card-back-large {
    padding: 1.5rem;
  }
  
  .team-card-back-large h4 {
    font-size: 1.2rem;
  }
  
  .team-card-back-large p {
    font-size: 0.9rem;
  }
  
  .team-values h2 {
    font-size: 1.8rem;
  }
  
  .member-photo-large {
    height: 60%;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-illustration i {
    font-size: 1.8rem;
    margin: 0 0.5rem;
  }
  
  :root {
    --card-height: 360px;
  }
  
  .member-photo-large {
    height: 55%;
  }
}


.member-img-large {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
