/*
 * Ñandú muon technology website
 *
 * A minimal yet hard‑tech inspired layout following the colour palette
 * defined in the Ñandú brand book. The design emphasises clarity and
 * hierarchy, with generous spacing and bold typography. Only the
 * insignia colour logo is displayed on the page.
 */

:root {
  --orange: #e85b03;
  --graphite: #111111;
  --powder: #f7f7f7;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
}

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

html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--graphite);
  background-color: var(--powder);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 4px var(--shadow);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.main-logo {
  height: 52px;
  width: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-list li a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--orange);
  transition: width 0.3s;
}

.nav-list li a:hover::after {
  width: 100%;
}

/* Language switch buttons */
.lang-switch button {
  background: none;
  border: 1px solid transparent;
  color: var(--graphite);
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  margin-left: 0.4rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch button.active,
.lang-switch button:hover {
  background-color: var(--orange);
  color: var(--white);
}

/* Hero section */
.hero {
  position: relative;
  height: 75vh;
  margin-top: 90px; /* space for fixed header */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  bottom: 12%;
  left: 6%;
  color: var(--white);
  max-width: 60%;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Logo inside hero */
.logo-hero img {
  /* Increase logo size for better visibility */
  height: 300px;
  width: auto;
  margin-bottom: 1rem;
}

/* Tagline under hero title */
.tagline {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.flag-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(17, 17, 17, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  max-width: fit-content;
}

.flag-badge img {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

/* Technology section */
.tech-section {
  padding: 3rem 0 4rem;
  background-color: var(--powder);
  color: var(--graphite);
}

.tech-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.tech-inner p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Video wrapper for the embedded Vimeo video. Ensures responsive 16:9 aspect ratio and consistent styling. */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  margin-top: 2rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact section */
.contact-section {
  background-color: var(--graphite);
  color: var(--powder);
  padding: 3rem 0 4rem;
}

.contact-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.contact-inner p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email a {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.contact-email a:hover {
  background-color: #c44900;
}

/* Footer styling */
footer {
  background-color: var(--graphite);
  color: var(--powder);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Applications section */
.applications {
  padding: 3rem 0 4rem;
  background-color: var(--white);
  color: var(--graphite);
}

.apps-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.app-item {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: center;
}

.app-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.app-item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.app-item p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Future section */
.future-section {
  padding: 3rem 0;
  background-color: var(--powder);
  text-align: center;
  color: var(--graphite);
}

.future-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.future-inner p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  background-color: var(--white);
  color: var(--graphite);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  /* Increase stat card width to accommodate longer text like "Más profundo" */
  width: 200px;
  margin-bottom: 1rem;
}

.stat-item h3 {
  /* Slightly smaller heading size for statistics to improve line wrapping */
  font-size: 2.3rem;
  color: var(--orange);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 1rem;
  font-weight: 500;
}

/* Experience section */
.experience-section {
  padding: 3rem 0;
  background-color: var(--white);
  color: var(--graphite);
  text-align: center;
}

.experience-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.experience-inner p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Technology grid styles */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.tech-image {
  flex: 1 1 300px;
  max-width: 480px;
}

.tech-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
}

.tech-text {
  flex: 1 1 300px;
  max-width: 600px;
}

@media (max-width: 768px) {
  .tech-grid {
    flex-direction: column;
  }
  .tech-image,
  .tech-text {
    max-width: 100%;
  }
}

/* Responsive rules */
@media (max-width: 768px) {
  .hero-content {
    bottom: 18%;
    left: 4%;
    max-width: 85%;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .flag-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
  .nav-list {
    gap: 1rem;
  }
}