:root {
  --bg: #111;
  --surface: #1a1a1a;
  --text: #eee;
  --muted: #aaa;
  --accent: #6c7cff;
  --btn-text: #fff;

  --link: #8fa2ff;
  --link-hover: #ffffff;

  --glow: rgba(108,124,255,0.35);
  --outline: rgba(108,124,255,0.15);
  --hero-gradient: radial-gradient(circle at top, #222, #111);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

/* LINKS */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--link-hover);
  opacity: 0.9;
}

/* SECTIONS */
.section {
  max-width: 68.75rem; /* 1100px */
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2rem);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* TYPO */
h1 {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
}

h2 {
  color: var(--accent);
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

h3 {
  font-size: clamp(1.6rem, 4vw, 2rem);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 50rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--btn-text);
}

.btn.secondary {
  border: 0.0625rem solid var(--accent);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-0.15rem);
}



/* FEATURED PROJECT */

.featured-project {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );

  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);

  box-shadow: 0 0 0 1px var(--outline);
}

.featured-project {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.featured-project {
  margin-bottom: 4rem;
}




.featured-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.featured-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
}

.featured-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}



.featured-content h4 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-cta {
  align-self: center;
  margin-top: 0;
}



.featured-cta {
  margin-top: 1.75rem;
  padding: 0.85rem 2.2rem;

  background: var(--accent);
  color: var(--btn-text);

  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;

  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.featured-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--glow);
  opacity: 0.95;
}

.featured-cta {
  background: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in srgb, var(--accent), white 15%)
  );
}






.featured-content .project-description {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 1rem;
}

.featured-content ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.featured-content > ul {
  margin-bottom: 2rem;
}



/* PROJECTS DIVIDER */  

.projects-divider {
  width: min(60%, 32rem);
  height: 1px;
  margin: 3.5rem auto 4rem;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.35;
  box-shadow: 0 0 12px var(--glow);
}





/* PROJECTS */
.projects-grid {
  max-width: 75rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.projects-grid {
  margin-top: 0;
  position: relative;
  z-index: 1;
}


.project-card {
  background: var(--surface);
  border-radius: 1.125rem;
  overflow: hidden;
  box-shadow: 0 0 0 0.0625rem var(--outline);
  flex: 0 1 clamp(17.5rem, 30%, 22.5rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0 1.5rem var(--glow);
}

.project-image {
  height: clamp(10rem, 20vw, 11.25rem);
  background: #000;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-role {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
}


/* MEJORAS VISUALES PROJECT CARDS */

.project-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.project-description {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-content ul {
  font-size: 0.9rem;
  padding-left: 1.2rem;
}


.project-image img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.project-subtitle {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-breakdown li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}




/* CONTACT */
.contact-capsules {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-capsule {
  background: var(--surface);
  padding: 1.75rem 2rem;
  border-radius: 999rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.contact-capsule:hover {
  box-shadow: 0 0 0 0.25rem var(--outline);
}

.arrow {
  color: var(--link);
  font-size: 1.5rem;
}

/* NETWORKS */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0 1.5rem var(--glow);
}

/* FOOTER */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}
