/* ========================================
   TERCERO TABLADA - STYLES
   Dark elegant theme inspired by EstructuraMX
   ======================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #0f0f0f;
  --color-bg-card: #181818;
  --color-surface: #222222;
  --color-border: #333333;
  --color-text: #ffffff;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  --color-accent: #c9a84c;
  --color-accent-light: #e0c572;
  --color-accent-dark: #a8893a;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--dark:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
}

.header__logo {
  z-index: 1001;
}

.header__logo-img {
  height: 36px;
  width: auto;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  margin: 0 auto 0.5rem;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--color-accent);
  font-weight: 400;
}

.header__nav {
  display: flex;
  gap: 2.5rem;
}

.header__nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out);
}

.header__nav a:hover {
  color: #ffffff;
}

.header__nav a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-active {
  color: var(--color-accent);
}

.lang-inactive {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu__nav a {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.active .mobile-menu__nav a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-menu__nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu__nav a:hover {
  color: var(--color-accent);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg video,
.hero__bg-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-placeholder {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%); }
  100% { background: linear-gradient(135deg, #0a0a0a 0%, #2a1a1a 50%, #0a0a0a 100%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-primary);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__title-line.accent {
  color: var(--color-accent);
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  letter-spacing: 0.15em;
  animation-delay: 0.6s;
}

.hero__materials {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero__desc {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero__credential {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 1.4s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- PROJECTS ---------- */
.projects {
  background: var(--color-bg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  background: var(--color-bg-card);
}

.project-card__img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c1c2e 0%, #2a2a3d 50%, #1a1a2a 100%);
  color: var(--color-accent);
}

.project-card__placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .project-card__info {
  padding-bottom: 2.5rem;
}

.project-card__info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.project-card__info span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.projects__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
}

.about__image-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.2;
}

.about__image::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-accent);
  opacity: 0.3;
  pointer-events: none;
}

.about__image {
  overflow: hidden;
}

.about__content .section__label {
  text-align: left;
}

.about__content .section__title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about__content p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.about__stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: left;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat__suffix {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ---------- CLIENTS MARQUEE ---------- */
.clients {
  background: var(--color-bg-alt);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  max-width: 100%;
}

.marquee__track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__track span {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--color-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info .section__label {
  text-align: left;
}

.contact__info .section__title {
  text-align: left;
}

.contact__info > p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.contact__item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.contact__item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact__item a {
  transition: color 0.3s ease;
}

.contact__item a:hover {
  color: var(--color-accent);
}

/* ---------- CONTACT FORM ---------- */
.contact__form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 3rem;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form__group {
  position: relative;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 1rem 1rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 300;
  transition: border-color 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-accent);
}

.form__group:not(.form__group--file) label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form__group:not(.form__group--file) textarea ~ label {
  top: 1rem;
  transform: none;
}

.form__group:not(.form__group--file) input:focus ~ label,
.form__group:not(.form__group--file) input:not(:placeholder-shown) ~ label,
.form__group:not(.form__group--file) select:focus ~ label,
.form__group:not(.form__group--file) select:valid ~ label,
.form__group:not(.form__group--file) textarea:focus ~ label,
.form__group:not(.form__group--file) textarea:not(:placeholder-shown) ~ label {
  top: 0.25rem;
  font-size: 0.625rem;
  color: var(--color-accent);
  transform: none;
}

.form__group select {
  cursor: pointer;
  padding-top: 1.25rem;
}

.form__group select option {
  background: var(--color-bg);
  color: var(--color-text);
}

.contact__form .btn {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

/* ---------- VALUES ---------- */
.values {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.value-item__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.value-item p {
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer__top {
  text-align: center;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.logo-text--large {
  font-size: 1.5rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.footer__credential {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.footer__office h4,
.footer__links h4,
.footer__social h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.footer__office p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer__office a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.footer__office a:hover {
  color: var(--color-accent-light);
}

.footer__links a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer__social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.footer__social-icons a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer__social-icons svg {
  width: 18px;
  height: 18px;
}

.footer__social-icons i {
  font-size: 1rem;
}

.footer__email {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.footer__email:hover {
  color: var(--color-accent-light);
}

.footer__bottom {
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- HEADER SOLID (subpages) ---------- */
.header--solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* ---------- NAV ACTIVE ---------- */
.nav-active {
  color: var(--color-accent) !important;
}

.nav-active::after {
  width: 100% !important;
}

/* ---------- PROJECTS FILTER ---------- */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.projects__grid--full {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- STATS GRID ---------- */
.stats-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.cta-section__inner {
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ---------- FILE UPLOAD ---------- */
.form__group--file {
  position: relative;
}

.form__group--file input[type="file"] {
  display: none;
}

.form__group--file .file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border: 2px dashed var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  /* Override default label styles */
  position: static;
  transform: none;
  top: auto;
  left: auto;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text-muted);
  pointer-events: auto;
}

.form__group--file .file-upload:hover {
  border-color: var(--color-accent);
  background: rgba(201, 168, 76, 0.05);
}

.form__group--file .file-upload i {
  font-size: 1rem;
  color: var(--color-accent);
}

.form__group--file .file-upload span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form__group--file .file-upload small {
  font-size: 0.625rem;
  color: var(--color-text-dim);
  display: block;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-list__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.file-list__item button {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  line-height: 1;
}

/* ---------- CONTACT SOCIAL ---------- */
.contact__social {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact__social h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* ---------- SCROLL ANIMATIONS ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-aos].aos-animate {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) !important;
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

/* Fallback: ensure content is visible even if JS fails */
.no-js [data-aos] {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE: LARGE SCREENS ---------- */

/* Laptops grandes / Monitores 1440px+ */
@media (min-width: 1440px) {
  :root {
    --container-max: 1340px;
  }

  .container {
    padding: 0 3rem;
  }

  html {
    font-size: 15.5px;
  }

  .section {
    padding: 6rem 0;
  }

  .projects__grid {
    gap: 2rem;
  }

  .projects__grid--full {
    gap: 2rem;
  }

  .services__grid {
    gap: 2.5rem;
  }

  .header__nav {
    gap: 3rem;
  }

  .header__logo-img {
    height: 42px;
  }

  .footer__logo-img {
    height: 56px;
  }
}

/* Full HD Monitors 1920px+ */
@media (min-width: 1920px) {
  :root {
    --container-max: 1500px;
  }

  .container {
    padding: 0 4rem;
  }

  html {
    font-size: 16px;
  }

  .section {
    padding: 7rem 0;
  }

  .hero__title-line {
    font-size: 5rem;
  }

  .hero__title-line.accent {
    font-size: 2.75rem;
  }

  .hero__desc {
    max-width: 700px;
    font-size: 1.125rem;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.625rem 2rem;
  }

  .projects__grid {
    gap: 2.5rem;
  }

  .projects__grid--full {
    gap: 2.5rem;
  }

  .project-card {
    aspect-ratio: 16/10;
  }

  .services__grid {
    gap: 3rem;
  }

  .service-card {
    padding: 3rem 2.5rem;
  }

  .about__grid {
    gap: 6rem;
  }

  .contact__grid {
    gap: 6rem;
  }

  .values__grid {
    gap: 3rem;
  }

  .page-hero {
    padding: 12rem 0 5rem;
  }

  .page-hero__title {
    font-size: 4.5rem;
  }

  .header__nav {
    gap: 3.5rem;
  }

  .header__logo-img {
    height: 48px;
  }

  .footer__grid {
    gap: 4rem;
  }

  .stats-grid {
    gap: 4rem;
  }
}

/* Ultrawide / 4K Monitors 2560px+ */
@media (min-width: 2560px) {
  :root {
    --container-max: 1800px;
  }

  .container {
    padding: 0 5rem;
  }

  html {
    font-size: 20px;
  }

  .hero__title-line {
    font-size: 7rem;
  }

  .hero__title-line.accent {
    font-size: 4rem;
  }

  .header__inner {
    max-width: 1800px;
  }

  .header__logo-img {
    height: 54px;
  }

  .page-hero {
    padding: 14rem 0 6rem;
  }

  .projects__grid--full {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- RESPONSIVE: SMALL SCREENS ---------- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid--full {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  .about__image::after {
    display: none;
  }

  /* Mobile header: EN/ES left, logo icon center, hamburger right */
  .header__inner {
    position: relative;
  }

  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header__logo-img {
    content: url('../../assets/img/logo-icon.svg');
    height: 44px;
    width: 44px;
  }

  .header__actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .lang-toggle {
    order: 1;
  }

  .hamburger {
    order: 2;
  }

  .hero__title-line {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero__title-line.accent {
    font-size: clamp(1rem, 5vw, 1.75rem);
  }

  .projects__grid,
  .projects__grid--full {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image {
    aspect-ratio: 16/9;
  }

  .about__stats {
    gap: 2rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }

  .contact__form-wrap {
    padding: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__office {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .footer__links {
    text-align: center;
  }

  .footer__social {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__social-icons {
    justify-content: center;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .header__inner {
    padding: 0 1rem;
  }

  .header__logo-img {
    height: 28px;
  }

  .page-hero {
    padding: 6rem 0 2rem;
  }

  .page-hero__title {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .contact__form-wrap {
    padding: 1.25rem;
  }

  .projects-filter {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.625rem;
  }

  .footer__bottom p {
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .marquee__track span {
    font-size: 0.8125rem;
  }
}
