/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  background: #0a0a0a;
  scrollbar-color: rgba(255, 255, 255, 0.1) black;
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: "Exo 2", system-ui, sans-serif;
  line-height: 1.5;
  color: #e5e5e5;
  background: #0a0a0a;
  
}
/* Solo la página principal sin scroll; el video ocupa toda la pantalla */
body.page--home {
  overflow: hidden;
  height: 100%;
}

.hidden { display: none !important; }

/* ===== Transparent header (reusable) ===== */
.header--transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header--transparent .header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header--transparent .header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.header--transparent .header__logo-img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header--transparent .header__logo-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header--transparent .header__logo:hover .header__logo-img {
  opacity: 0.9;
}

.header--transparent .header__logo:hover .header__logo-name {
  color: rgba(255, 255, 255, 0.9);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
}

.lang-switcher__current {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.lang-switcher__link {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.lang-switcher__link:hover {
  color: #fff;
}

.lang-switcher > *:first-child:not(:only-child)::after {
  content: " · ";
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.menu--transparent .menu__inner {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu--transparent .menu__inner a {
  font-family: "Orbitron", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.menu--transparent .menu__inner a:hover,
.menu--transparent .menu__inner a.active {
  color: #fff;
}

.menu-trigger--transparent {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #fff;
}
.menu-trigger--transparent.hidden { display: none !important; }
.menu--transparent.hidden { display: none !important; }

.menu-trigger--transparent svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .menu--transparent .menu__inner {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .menu-trigger--transparent {
    display: block;
  }
}

/* ===== Hero with video background ===== */
.hero--video {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero__logo {
  display: block;
  width: min(100px, 45vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.hero__title {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-family: "Exo 2", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero__socials .social-icon {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero__socials .social-icon:hover {
  color: #fff;
  transform: scale(1.1);
}

.hero__socials .social-icon:focus {
  outline: none;
  color: #fff;
}

.hero__socials .social-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ===== Inner pages (Projects, Contact) ===== */
.page-content {
  padding: 6rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
}

.page-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-align: center;
}

.page-content .post-content {
  line-height: 1.7;
  color: #e5e5e5;
}

/* ===== Projects grid (variable aspect ratio) ===== */
.page-content--projects {
  max-width: 1400px;
}

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

.projects-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}

.projects-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.projects-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.projects-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.projects-card:hover .projects-card__overlay {
  opacity: 1;
}

.projects-card__title {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35em;
  letter-spacing: 0.02em;
}

.projects-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .projects-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  }
}

/* ===== Projects modal ===== */
.projects-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.projects-modal--open {
  opacity: 1;
  visibility: visible;
}

.projects-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.projects-modal__box {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  background: #141414;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  cursor: default;
}

.projects-modal__content {
  padding: 1.5rem 1.5rem 1.75rem;
}

.projects-modal__title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.projects-modal__desc {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.projects-modal__media {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
}

.projects-modal__media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.projects-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ===== Contact page & form ===== */
.page-content--contact {
  max-width: 560px;
}

.contact-intro {
  margin-bottom: 2rem;
  color: rgba(229, 229, 229, 0.9);
}

.contact-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-alert--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.contact-alert--hidden {
  display: none !important;
}

.contact-form__hp {
  margin: 0;
  position: absolute;
  left: -9999px;
}

.contact-form__field {
  margin: 0 0 1.25rem;
}

.contact-form__field label {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
}

.contact-form__field .required {
  color: #f87171;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: "Exo 2", sans-serif;
  font-size: 1rem;
  color: #e5e5e5;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(229, 229, 229, 0.4);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  margin: 1.5rem 0 0;
}

.contact-form__btn {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form__btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.contact-form__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ===== Services list (alternating media / text) ===== */
.page-content--services {
  max-width: 1100px;
}

.services-intro {
  margin-bottom: 2.5rem;
  color: rgba(229, 229, 229, 0.9);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item--reverse {
  direction: rtl;
}

.service-item--reverse > * {
  direction: ltr;
}

.service-item__media {
  min-width: 0;
}

.service-media__wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
}

.service-media__wrap--video {
  aspect-ratio: 16 / 9;
}

.service-media__wrap iframe,
.service-media__wrap video {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.service-media__wrap video {
  object-fit: contain;
}

.service-media__wrap--image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.service-item__text {
  padding: 0 0.5rem;
}

.service-item__title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.service-item__description {
  font-size: 1rem;
  color: rgba(229, 229, 229, 0.9);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-item,
  .service-item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.25rem;
    padding: 2rem 0;
  }

  .service-item__media {
    order: -1;
  }
}
