/* sobrenosotros.css - Versión optimizada */
/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* =========================
   HERO SOBRE NOSOTROS ESPECTACULAR
========================== */
.hero-sobre {
  height: 80vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 102, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 230, 230, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.particles-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(1px);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.abstract-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #ff66ff;
  top: 10%;
  left: 10%;
  animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #00e6e6;
  bottom: 20%;
  right: 15%;
  animation: floatShape 25s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #ff3366;
  top: 50%;
  left: 80%;
  animation: floatShape 30s infinite alternate ease-in-out;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, -100px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 2em;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text-wrapper {
  margin-bottom: 2em;
}

.titulo-sobre {
  font-family: 'Rouge Script', cursive;
  font-size: 6em;
  margin-bottom: 0.3em;
  line-height: 1;
  position: relative;
  display: inline-block;
  text-shadow: 
    0 0 20px rgba(255, 102, 255, 0.8),
    0 0 40px rgba(255, 102, 255, 0.4);
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0);
    text-shadow: 
      0 0 20px rgba(255, 102, 255, 0.8),
      0 0 40px rgba(255, 102, 255, 0.4);
  }
  1%, 1.5% {
    transform: translate(-2px, 1px);
    text-shadow: 
      0 0 20px rgba(0, 230, 230, 0.8),
      0 0 40px rgba(0, 230, 230, 0.4);
  }
  2%, 2.5% {
    transform: translate(2px, -1px);
    text-shadow: 
      0 0 20px rgba(255, 51, 102, 0.8),
      0 0 40px rgba(255, 51, 102, 0.4);
  }
}

.subtitulo-sobre {
  font-size: 1.8em;
  margin-bottom: 1.5em;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: #ff66ff;
  font-weight: bold;
  text-shadow: 
    0 0 10px rgba(255, 102, 255, 0.8),
    0 0 20px rgba(255, 102, 255, 0.6);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 2em auto;
  max-width: 400px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #ff66ff, transparent);
}

.divider-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 102, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff66ff;
  font-size: 1.2em;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 10px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #ff66ff;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #ff66ff;
  border-bottom: 2px solid #ff66ff;
  transform: rotate(45deg);
  margin: 0 auto;
  animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* =========================
   SECCIÓN PRINCIPAL
========================== */
.sobrenosotros-main {
  position: relative;
  z-index: 1;
}

/* PERFILES */
.perfiles-section {
  padding: 6em 8%;
  position: relative;
  overflow: hidden;
}

.perfiles-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 230, 230, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.section-intro {
  text-align: center;
  margin-bottom: 4em;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section-intro.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: 'Special Elite', system-ui;
  font-size: 3em;
  margin-bottom: 0.5em;
  color: #fff;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #ff66ff, #00e6e6);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3em;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

.perfiles-container {
  display: flex;
  flex-direction: column;
  gap: 6em;
  max-width: 1200px;
  margin: 0 auto;
}

.perfil-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.perfil-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.perfil-card-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 3em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.perfil-card-inner:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 102, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 102, 255, 0.1);
}

.perfil-image-container {
  flex: 0 0 300px;
  position: relative;
}

.perfil-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.perfil-card-inner:hover .perfil-image {
  transform: scale(1.02);
}

.image-frame {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(255, 102, 255, 0.3);
  border-radius: 20px;
  z-index: 1;
  animation: frameGlow 3s infinite alternate;
}

@keyframes frameGlow {
  from { border-color: rgba(255, 102, 255, 0.3); }
  to { border-color: rgba(0, 230, 230, 0.3); }
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(45deg, #ff66ff, #00e6e6);
  border-radius: 25px;
  filter: blur(30px);
  opacity: 0.2;
  z-index: 0;
}

.perfil-decor {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.paint-drip {
  position: absolute;
  width: 80px;
  height: 100px;
  background: linear-gradient(to bottom, #ff66ff, transparent);
  border-radius: 0 0 40px 40px;
  opacity: 0.3;
  filter: blur(5px);
}

.paint-drip-1 {
  top: -50px;
  left: 20px;
  transform: rotate(15deg);
}

.paint-drip-2 {
  top: -30px;
  right: 40px;
  transform: rotate(-10deg);
  background: linear-gradient(to bottom, #00e6e6, transparent);
}

.paint-drip-3 {
  bottom: -50px;
  left: 30px;
  transform: rotate(-15deg);
  background: linear-gradient(to top, #ff3366, transparent);
}

.paint-drip-4 {
  bottom: -40px;
  right: 20px;
  transform: rotate(10deg);
  background: linear-gradient(to top, #aa00aa, transparent);
}

.perfil-content {
  flex: 1;
}

.perfil-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
  position: relative;
}

.perfil-titles {
  flex: 1;
}

.perfil-name {
  font-family: 'Klee One', cursive;
  font-size: 2.5em;
  margin-bottom: 0.2em;
  color: #fff;
}

.perfil-role {
  font-size: 1.2em;
  color: #ff66ff;
  font-weight: 600;
}

.perfil-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 102, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff66ff;
  font-size: 1.5em;
}

.perfil-body {
  margin-bottom: 2em;
}

.perfil-quote {
  font-size: 1.3em;
  font-style: italic;
  color: #ffccff;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  border-left: 3px solid #ff66ff;
}

.perfil-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin-bottom: 1.5em;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: #ddd;
}

.detail-item i {
  color: #ff66ff;
  font-size: 1.2em;
}

.perfil-description {
  color: #ccc;
  line-height: 1.7;
  font-size: 1.05em;
}

.perfil-signature {
  text-align: right;
  font-family: 'Rouge Script', cursive;
  font-size: 2em;
  color: #ff66ff;
  opacity: 0.8;
  margin-top: 1em;
}

/* =========================
   PRE-FOOTER Y FOOTER
========================== */
.prefooter {
  background: linear-gradient(to bottom, #000, #111);
  padding: 4em 8%;
  position: relative;
  overflow: hidden;
}

.prefooter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ff66ff, transparent);
}

.prefooter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3em;
  max-width: 1200px;
  margin: 0 auto;
}

.prefooter-col h3 {
  font-family: 'Klee One', cursive;
  font-size: 1.4em;
  margin-bottom: 1em;
  color: #fff;
  position: relative;
  padding-bottom: 0.5em;
}

.prefooter-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #ff66ff;
}

.prefooter-col p,
.prefooter-col li {
  margin-bottom: 0.8em;
  line-height: 1.6;
  color: #aaa;
}

.prefooter-col ul {
  list-style: none;
  padding: 0;
}

.prefooter-col ul li {
  position: relative;
  padding-left: 1.5em;
}

.prefooter-col ul li::before {
  content: '•';
  color: #ff66ff;
  position: absolute;
  left: 0;
}

.prefooter-icons {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.prefooter-icons .social-link {
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.prefooter-icons .social-link:hover {
  color: #ff66ff;
  transform: translateX(5px);
}

footer {
  background: #000;
  text-align: center;
  padding: 2em;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #222;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, #ff66ff, #00e6e6);
}

/* =========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 1024px) {
  .titulo-sobre {
    font-size: 4.5em;
  }
  
  .perfil-card-inner {
    gap: 3em;
    padding: 2.5em;
  }
  
  .perfil-image-container {
    flex: 0 0 250px;
  }
  
  .perfil-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero-sobre {
    height: 70vh;
    min-height: 500px;
  }
  
  .titulo-sobre {
    font-size: 3.5em;
  }
  
  .subtitulo-sobre {
    font-size: 1.4em;
  }
  
  .perfiles-container {
    gap: 4em;
  }
  
  .perfil-card-inner {
    flex-direction: column !important;
    gap: 2em;
    padding: 2em;
  }
  
  .perfil-image-container {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .perfil-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  
  .perfil-icon {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .prefooter-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2em;
  }
  
  .prefooter-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .prefooter-col ul li {
    padding-left: 0;
  }
  
  .prefooter-col ul li::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .titulo-sobre {
    font-size: 2.8em;
  }
  
  .subtitulo-sobre {
    font-size: 1.2em;
  }
  
  .section-title {
    font-size: 2em;
  }
  
  .perfiles-section {
    padding: 4em 5%;
  }
  
  .perfil-name {
    font-size: 2em;
  }
}