/* ======================================================
   RESET PROFESIONAL
====================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0c0c0f;
  color: #f2f2f2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ======================================================
   VARIABLES
====================================================== */

:root {
  --bg-primary: #0c0c0f;
  --bg-secondary: #141418;
  --text-primary: #f2f2f2;
  --text-secondary: #8e8e95;
  --accent: #e7ff00;
}

/* ======================================================
   CONTAINER
====================================================== */

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ======================================
   APPLE LIQUID GLASS HEADER
====================================== */

.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1600px;
  z-index: 6000; /* IMPORTANTE */
}

/* =========================
   GLASS BAR
========================= */

.nav-glass {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 24px;
  border-radius: 50px;

  backdrop-filter: blur(20px) saturate(160%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.6s cubic-bezier(.77,0,.18,1);
}

/* =========================
   LOGO
========================= */

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* =========================
   DESKTOP NAV
========================= */

.nav-desktop {
  display: flex;
  gap: 40px;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s ease;
  cursor: pointer;
}

.nav-desktop a:hover {
  color: var(--accent);
}

/* =========================
   BURGER
========================= */

.menu-toggle {
  width: 26px;
  height: 18px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8px;
}


/* =========================
   MOBILE PANEL WRAPPER
========================= */

.mobile-panel {
  position: fixed;
  top: 120px; /* Altura real header + pequeño gap */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);

  width: 95%;
  max-width: 1300px;
  height: calc(100vh - 120px);

  z-index: 4000;

  opacity: 0;
  pointer-events: none;

  
}


.mobile-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);

}
/* =========================
   MAIN MENU CARD
========================= */

.mobile-card {
  width: 100%;
  border-radius: 28px;
  padding: 32px 24px;

 backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: rgba(0, 0, 0, 0.55);

  border: 1px solid rgba(255,255,255,0.08);

  display: flex;
  flex-direction: column;
  align-items: center;

  opacity: 0;
transform: translateY(20px);
transition: opacity 0.25s ease, transform 0.25s ease;
}



.mobile-panel.active .mobile-card {
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
transform: translateY(0);
}


/* =========================
   NAV LINKS
========================= */

.mobile-nav {
  width: 100%;
  text-align: center;
}

.mobile-nav a {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;

  margin: 18px 0;

  transition: color 0.25s ease;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* =========================
   SOCIAL CARD
========================= */

.mobile-social-card {
 width: 100%;
  margin-top: 20px;
  border-radius: 22px;
  padding: 18px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(0px) saturate(160%);
  -webkit-backdrop-filter: blur(0px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.08);

  display: flex;
  justify-content: center;
  gap: 40px;

 
}

.mobile-panel.active .mobile-social-card {
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: rgba(0, 0, 0, 0.55);
}

.mobile-social {
  display: flex;
  gap: 45px;
}

.mobile-social a {
  font-size: 1.6rem;
  color: white;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

body.menu-open {
  overflow: hidden;
}
/* =========================
   PARTICLES CANVAS
========================= */

.nav-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .nav-desktop {
    display: none!important;
  }

  .menu-toggle {
    display: block!important;
  }

}

/* ======================================================
   BOTONES GENERALES
====================================================== */

.btn-primary {
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 40px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 20px;
}

.btn-services{
  border: 1px solid var(--text-secondary);
  padding: 14px 28px;
  border-radius: 40px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;

}

.btn-services:hover{
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 40px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(231,255,0,0.25);
  transform: translateY(-3px);
}


.btn-secondary {
  border: 1px solid var(--text-secondary);
  padding: 14px 28px;
  border-radius: 40px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ======================================================
   SECCIONES GENERALES
====================================================== */

section {
  padding: 120px 0;
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  margin-bottom: 60px;
}



/* ======================================================
   PROYECTOS
====================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.project-card {
  height: 350px;
  background: #1b1b21;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

/* ======================================================
   FOOTER
====================================================== */

.footer {
  padding: 0 0 32px;
  background: var(--bg-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px 32px;
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-brand h4 {
  max-width: 520px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.footer-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ======================================================
   CURSOR PERSONALIZADO
====================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

/* ======================================================
   RESPONSIVE
====================================================== */

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {

  .hero {
    padding-top: 160px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}



.btn-primary {
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 40px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1px solid var(--text-secondary);
  padding: 14px 28px;
  border-radius: 40px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ===============================
   HERO DEFINITIVO LIMPIO
================================ */ /* =====display: none;==== *//* =====display: none;==== */

.hero {
  min-height: clamp(650px, 100vh, 950px);
  display: flex;
  align-items: center;
  background: #030503;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: center;
  padding: 0 8%;
}

/* ---- TEXTO ---- */

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero-subtitle {
  margin-top: 28px;
  font-size: 1.35rem;
  color: #fff;
}

.hero-buttons {
  margin-top: 45px;
  display: flex;
  gap: 20px;
}

/* ---- IMAGEN ---- */

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
 width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 10%;
}

/* ---- DEGRADADO ---- */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  
  z-index: 1;
  pointer-events: none;
}

/* ===============================
   RESPONSIVE CONTROLADO
================================ */

/* Tablets grandes */
@media (max-width: 1100px) {

  .hero {
    min-height: clamp(600px, 80vh, 750px);
  }

 .hero-image {
    position: absolute;
    top: 0;
    right: 0; 
    left: auto; 
    
    height: 100%;
    
  }

  .hero-image img {
    object-position: right center; /* no center */
  }


}

/* Tablets */
@media (max-width: 900px) {

  .hero {
    min-height: 75vh; /* antes era auto */
    padding: 160px 0 120px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
  }

  .hero-image img {
    object-position: center top;
  }

  .hero::before {
  width: 100%;
  
}

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* Móvil */
@media (max-width: 600px) {

  .hero {
    padding: 140px 0 100px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  

}

.break-mobile {
  display: inline;
}

@media (max-width: 900px) {
  .break-mobile {
    display: block;
  }
}

/* ===============================
   SERVICES SECTION
================================= */

.services-section {
  padding: 80px 0;
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-eyebrow {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 60px;
  font-weight: 500;
}

.services-title {
 text-align: center;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 80px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.01em;
  margin-top: 30px;
}

.services-title span {
  display: block;
  margin-top: 18px;
  font-weight: 800;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

/* GRID */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  width: 80%;
  margin: 0 auto;
}

/* CARD */

.card-border-trace {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
}

.card-border-trace::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 2px solid var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.service-card:hover .card-border-trace::before {
  transform: scaleX(1);
}

.service-card {
  position: relative;
  height: 560px;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible; /* importante para que el + sobresalga */
  transition: all 0.4s cubic-bezier(.22,.61,.36,1);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(231,255,0,0.25);
}

.service-canvas {
  height: 60%;
  width: 100%;
  position: relative;
}

.service-info {
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-info p {
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* PLUS ENTRE CARDS */

.card-plus {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.4;
  pointer-events: none;
}

.service-card:last-child .card-plus {
  display: none;
}

/* TABLET */

/* MOBILE */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .service-card {
    height: 480px;
  }

  .card-plus {
    display: none;
  }
}





/* ===============================
   CONTACT LAPTOP SECTION
================================= */

.contact-laptop {
  width: 100%;
  min-height: 0;
  padding: 10rem 2rem;
  position: relative;
  background: #111115;
  overflow: hidden;
}

.contact-laptop::before {
  content: "";
  position: absolute;
  width: min(55vw, 800px);
  aspect-ratio: 1;
  right: -18%;
  bottom: -55%;
  background: radial-gradient(circle, rgba(231,255,0,0.16), transparent 66%);
  pointer-events: none;
}

.contact-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100vh;
}

.contact-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.contact-copy h2 {
  max-width: 760px;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.contact-eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-action {
  padding: 32px 0 32px 32px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

.contact-action p {
  max-width: 360px;
  margin-bottom: 30px;
  color: #fff;
  line-height: 1.6;
  font-size: 1.8em;
}

.laptop-scene {
  width: 100%;
  height: 80vh; /* Desktop */
}

.contact-left {
  padding: 40px;
}

.contact-right {
  position: relative;
  height: 100%;
  overflow: visible;
  perspective: 1200px;
}


/* Glow trasero ácido */

.contact-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(231,255,0,0.3) 0%, transparent 70%);
  filter: blur(140px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
}

.contact-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  z-index: 2;
  opacity: 0;
}

.contact-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 30px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(231,255,0,0.2);
}

.screen-content {
position: absolute;
    top: 39%;
    left: 61%;
    width: 55%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
        transform: translate(-50%, -50%) rotateX(2deg) rotateY(40deg) rotateZ(0deg);

    transform-style: preserve-3d;
}

.screen-text {
  color: #000;
  font-size: 1.2rem;
  font-weight: 600;
}





.scroll-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: #000;
  font-weight: 900;
}

.scroll-top:hover {
  box-shadow: 0 0 40px rgba(231,255,0,0.8);
  transform: translateY(0) scale(1.1);
}



@media (max-width: 900px) {

  .contact-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .contact-laptop {
    padding: 7rem 1.5rem;
  }

  .contact-action {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-left: 0;
  }
}

.process-section {
  position: relative;
  padding: 5rem 2rem;
  background: #0c0c0f; /* ligeramente distinto al hero */
  overflow: hidden;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.process-header {
  max-width: 700px;
  margin: 0 auto 6rem auto;
  text-align: center;
}

.process-photo {
  position: sticky;
  top: 120px;
  border-radius: 20px;
  overflow: hidden;
}

.process-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.process-eyebrow {
  display: block;
  color: #E7FF00;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.process-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
      font-weight: 600;
}

.process-subtitle {
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.process-timeline {
  position: relative;
  padding-left: 100px;  /* 🔥 más espacio ahora */
}


.process-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E7FF00;
  transform: scaleY(0);
  transform-origin: top;
}

.process-step {
  position: relative;
  margin-bottom: 3rem;
}

.step-number {
  position: absolute;
  left: -80px;
  top: 0;
  font-size: 85px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  transition: color 0.4s ease, opacity 0.4s ease;
}
.process-step.active .step-number {
  color: rgba(231,255,0,0.65);
}

.process-step.active h3 {
  color: #E7FF00;
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.step-content p {
  color: rgba(255,255,255,1);
  max-width: 500px;
  line-height: 1.6;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.04;
  pointer-events: none;
}

.process-line {
  position: absolute;
  left: 40px;   /* 🔥 ajustado */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}


@media (max-width: 900px) {

  .process-section {
    padding: 6rem 1.5rem;
  }

  .process-timeline {
    padding-left: 50px;
  }

  .process-line {
    left: 20px;
  }

  .step-number {
    font-size: 70px;
    left: -50px;
  }

   .process-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .process-photo {
    position: relative;
    top: 0;
  }
}

.impact-section {
  padding: 5rem 2rem;
  background: #0b0b0e;
  position: relative;
}

.impact-header {
  max-width: 940px;
  margin: 0 auto 7rem;
}

.impact-eyebrow {
  color: #E7FF00;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.impact-title {
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.impact-subtitle {
  font-size: 22px !important;
  color: #fff;
  line-height: 1.6;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  max-width: 1400px;
  margin: 0 auto;
}

.impact-card {
  position: relative;
  min-height: clamp(440px, 44vw, 640px);
  border-radius: 24px;
  overflow: hidden;
  background: #17171c;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1), box-shadow 0.55s ease, border-color 0.55s ease;
}

.impact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(231,255,0,0.35);
  box-shadow: 0 28px 80px rgba(231,255,0,0.09);
}

.impact-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.impact-media,
.impact-media img {
  width: 100%;
  height: 100%;
}

.impact-media {
  position: absolute;
  inset: 0;
}

.impact-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.impact-card:hover .impact-media img {
  transform: scale(1.045);
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12,12,15,0.20) 12%,
    rgba(12,12,15,0.55) 52%,
    rgba(12,12,15,0.98) 100%
  );
  transition: background 0.55s ease;
}

.impact-card:hover .impact-overlay {
  background: linear-gradient(
    180deg,
    rgba(12,12,15,0.28) 10%,
    rgba(12,12,15,0.62) 52%,
    rgba(12,12,15,0.99) 100%
  );
}

.impact-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(28px, 4vw, 56px);
}

.impact-category {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.impact-content h3 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.impact-description {
  max-width: 520px;
  margin-top: 14px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.55;
}

.impact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.impact-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(12,12,15,0.35);
  font-size: 0.72rem;
}

.impact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.impact-card:hover .impact-cta {
  color: var(--accent);
  transform: translateX(6px);
}

.impact-about {
  max-width: 1200px;
  margin: 9rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
}

.impact-about-copy > span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.impact-about-copy p {
  max-width: 780px;
  font-size: 1.8em;
  
  letter-spacing: -0.05em;
}


.impact-about-copy h2 {
  max-width: 850px;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.impact-about-media {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #1a1a1e;
}

.impact-about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% center;
}

.impact-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(231,255,0,0.18);
}

@media (max-width: 900px) {

  .impact-about-copy h2 {
    max-width: 850px;
    font-size: 4rem;
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-copy h2 {
    max-width: 560px;
    font-size: 3.5rem;
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 500;
}

.contact-action p {
    max-width: 360px;
    margin-bottom: 30px;
    color: #fff;
    line-height: 1;
    font-size: 1.5em;
}

.impact-about-copy p {
    max-width: 780px;
    font-size: 1.4em;
    letter-spacing: -0.05em;
}
  .impact-section {
    padding: 3rem 1.5rem;
  }

  .impact-header {
    margin-bottom: 4rem;
  }

  .impact-card {
    min-height: 520px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-about {
    margin-top: 6rem;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .impact-about-media {
    min-height: 420px;
  }
}

.authority-section {
  padding: 12rem 2rem;
  background: #0a0a0d;
}

.authority-header {
  text-align: center;
  margin-bottom: 6rem;
}

.authority-eyebrow {
  color: #E7FF00;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.authority-title {
  font-size: 3rem;
}

.authority-cards {
  display: flex;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  height: 500px;
}

.authority-card {
  flex: 1;
  
  border-radius: 20px;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: flex 0.6s ease, background 0.4s ease;
  display: flex;
}

.authority-card h3 {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.card-content {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.authority-card.active .card-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}


.authority-card.active h3 {
  color: #E7FF00;
}

.authority-card.active .card-content {
  opacity: 1;
}

/* Estado activo (blanca) */
.authority-card.active {
  flex: 3;
  background: #ffffff;
  color: #000000;
}

.authority-card.active h3 {
  color: #000000;
}

/* Variantes para las no activas */
.card-yellow {
  background: linear-gradient(135deg, #E7FF00 0%, #d4ec00 100%);
  color: #000;
}

.card-grey {
  background: #2a2a32;
  color: #fff;
}

.card-black {
  background: #121216;
  color: #fff;
}



.authority-card:not(.active) {
  filter: brightness(0.9);
}

@media (max-width: 900px) {

  .authority-cards {
    flex-direction: column;
    height: auto;
  }

  .authority-card {
    flex: unset;
    width: 100%;
    min-height: 90px;
    transition: background 0.4s ease, color 0.3s ease;
  }

   .authority-card {
    overflow: hidden;
    padding: 2rem;
  }

  .card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }

  .authority-card.active .card-content {
    max-height: 400px;
    opacity: 1;
  }
  .authority-title {
    font-size: 2rem;
  }

  .authority-card h3 {
    font-size: 1rem;
  }


  .authority-card h3::after {
    content: "+";
    float: right;
    transition: transform 0.3s ease;
  }

  .authority-card.active h3::after {
    content: "–";
  }

}
