/* =========================
   CURSOR
========================= */

.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(77, 184, 232, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}
.cursor.hover      { width: 6px; height: 6px; }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--red); }

@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

/* =========================
   NAV
========================= */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background-color:#06101f;
  /*background-color: rgba(0, 0, 0, 0.25);
  mix-blend-mode: difference;*/
}


.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
	.logo img{width:400px;}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: var(--fs-base);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }


/* =========================
   SECTIONS COMMON
========================= */

main{margin-top:125px;}

section {
  padding: var(--space-section) 48px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
}

/* =========================
   HERO
========================= */
#VIDEO{
	min-height: 100vh;	
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 48px 80px;
	position: relative;
	overflow: hidden;
}

#INICIO {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}

/* =========================
   FOOTER
========================= */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.footer-copy {
  font-size: 11px;
  color: var(--gray);
  opacity: 0.5;
}
.footer-ig a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-ig a:hover { color: var(--red); }

/* =========================
   ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SCROLL LINE
========================= */

.scroll-line {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}
.scroll-line::before {
  content: '';
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50%       { transform: scaleY(1); transform-origin: top; }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  #INICIO, section { padding: 80px 24px; }
  footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================
   MOBILE NAV
========================= */

.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 200;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: 0.3s ease;
}

.nav-toggle span:first-child {
  top: 6px;
}

.nav-toggle span:last-child {
  bottom: 6px;
}

/* Estado abierto */

.nav-open .nav-toggle span:first-child {
  transform: rotate(45deg);
  top: 11px;
}

.nav-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* Mobile */

@media (max-width: 1024px) {

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 28px;

    opacity: 0;
    visibility: hidden;

    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;

    z-index: 150;
  }

  .nav-links li {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
  }

  .nav-links a {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-open .nav-links li {
    transform: translateY(0);
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }
}
/* AJUSTE FINO RESPONSIVE */
@media (max-width: 1280px) {
	.logo img{width:250px;}
	.nav-links a {  font-size: 13px; }
	main{margin-top:108px;}	
	#quien .team-grid{grid-template-columns:repeat(3, 1fr);}
}
@media (max-width: 1024px) {
	.nav-links a {  font-size: var(--fs-md); }
	main{margin-top:85px;}	
}
@media (max-width: 768px) {
	.logo img{width:180px;}
}
@media (max-width: 640px) {
	#quien .team-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width: 540px) {
	main{margin-top:75px;}	
}
@media (max-width: 480px) {
	#quien .team-grid{grid-template-columns:repeat(1, 1fr);}
}