﻿:root {
  --color-charcoal: #242526;
  --color-gray: #727273;
  --color-red: #d91e1e;
  --color-dark-red: #a62929;
  --color-cream: #f2f2f2;
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --max-width: 1200px;
  --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.25);
  --transition-base: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, rgba(36, 37, 38, 0.95), rgba(36, 37, 38, 0.8)),
    url("../img/zonda.jpg") center/cover fixed;
  color: var(--color-cream);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.9) 0%, rgba(36, 37, 38, 0.75) 45%, rgba(0, 0, 0, 0.92) 100%);
  backdrop-filter: blur(6px);
  z-index: -1;
}

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

a:hover,
a:focus {
  color: var(--color-red);
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(6, 6, 6, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--color-red);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 170px;
  height: 130px;
  border-radius: 18px;
  box-shadow: none;
  padding: 6px;
  background: rgba(0, 0, 0, 0.65);
}

nav ul {
  list-style: none;
}

.tenant-header__nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav li {
  position: relative;
}

nav a {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition-base);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-dark-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

nav a:hover::after,
nav a:focus::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--color-cream);
  cursor: pointer;
  font-size: 1.4rem;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 25%, rgba(217, 30, 30, 0.55), transparent 60%),
    radial-gradient(circle at 80% 35%, rgba(166, 41, 41, 0.45), transparent 55%),
    linear-gradient(160deg, rgba(20, 20, 20, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
  mix-blend-mode: screen;
  z-index: 0;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  justify-items: start;
  width: 100%;
}

.hero-text .hero-image {
  justify-self: center;
  margin-top: 2.5rem;
  width: clamp(320px, 64vw, 640px);
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  border: 2px solid rgba(242, 242, 242, 0.12);
}


.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

  .hero-text p {
    margin: 0;
    font-size: 1.05rem;
    max-width: 520px;
    color: rgba(242, 242, 242, 0.85);
  }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 30, 30, 0.2);
  color: var(--color-red);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(120deg, var(--color-red), var(--color-dark-red));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  border: 1px solid rgba(242, 242, 242, 0.25);
  color: var(--color-cream);
}

.button:hover,
.button:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-subtitle {
  color: rgba(242, 242, 242, 0.7);
  max-width: 540px;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(36, 37, 38, 0.92);
  border: 1px solid rgba(242, 242, 242, 0.08);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.card::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(217, 30, 30, 0.35), transparent 65%);
  opacity: 0;
  transition: var(--transition-base);
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.card p {
  color: rgba(242, 242, 242, 0.75);
  font-size: 0.97rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-red), var(--color-dark-red));
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 5px rgba(217, 30, 30, 0.25);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  margin-bottom: 0.4rem;
}

.highlight {
  background: linear-gradient(120deg, rgba(217, 30, 30, 0.25), rgba(36, 37, 38, 0.85));
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(217, 30, 30, 0.25);
  box-shadow: var(--shadow-strong);
}

.highlight h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.highlight p {
  color: rgba(242, 242, 242, 0.78);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag-cloud span {
  border: 1px solid rgba(242, 242, 242, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.7);
}

.masonry {
  column-count: 3;
  column-gap: 1.25rem;
}

.masonry figure {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.masonry img {
  cursor: zoom-in;
}

.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(36, 37, 38, 0.92);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table thead {
  background: rgba(217, 30, 30, 0.15);
}

.table th,
.table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
}

.table tbody tr:hover {
  background: rgba(217, 30, 30, 0.08);
}

.site-footer {
  border-top: 1px solid rgba(242, 242, 242, 0.08);
  background: rgba(0, 0, 0, 0.7);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.65);
}

.footer-content strong {
  color: var(--color-cream);
}

.social-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-list a {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 242, 0.12);
  transition: var(--transition-base);
}

.social-list a:hover,
.social-list a:focus {
  background: rgba(217, 30, 30, 0.25);
  border-color: rgba(217, 30, 30, 0.45);
}

.project-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

@media (max-width: 768px) {
  .project-list {
    grid-template-columns: 1fr;
  }
}

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

.project-card img {
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 0.875rem;
}

.project-logo {
  margin-inline: auto;
  max-width: 374px;
}

.project-logo--ruta {
  max-width: 212px;
}

.project-card .button {
  align-self: flex-start;
}

.card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: rgba(242, 242, 242, 0.78);
}

.card li {
  margin-bottom: 0.4rem;
}

label span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(36, 37, 38, 0.85);
  border: 1px solid rgba(242, 242, 242, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--color-cream);
  font-family: var(--font-body);
  transition: var(--transition-base);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(217, 30, 30, 0.6);
  box-shadow: 0 0 0 3px rgba(217, 30, 30, 0.25);
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(242, 242, 242, 0.4) 50%),
    linear-gradient(135deg, rgba(242, 242, 242, 0.4) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 15px) calc(50% - 4px);
  background-size: 8px 8px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .tenant-header__nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(6, 6, 6, 0.96);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(242, 242, 242, 0.08);
    transform: translateY(-5px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
  }

  .tenant-header__nav-links[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(217, 30, 30, 0.18);
    border: 1px solid rgba(217, 30, 30, 0.35);
  }

  .nav-container {
    position: relative;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .cta-group {
    width: 100%;
  }

  .button {
    flex: 1;
    justify-content: center;
  }

  .masonry {
    column-count: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
}

[data-animate="visible"] {
  animation: fade-up 0.9s ease forwards;
}


















/* Blog */
.blog-feed {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.blog-entry {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-entry:hover,
.blog-entry:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.blog-entry__media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.04);
  align-self: center;
}

.blog-entry__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-entry:hover .blog-entry__media img,
.blog-entry:focus-within .blog-entry__media img {
  transform: scale(1.06);
}

.blog-entry__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-entry__meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.blog-entry__meta time {
  color: rgba(242, 242, 242, 0.6);
}

.blog-entry__content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-entry__content p {
  color: rgba(242, 242, 242, 0.88);
}

.blog-entry__highlights {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-entry__highlights li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(242, 242, 242, 0.78);
}

.blog-entry__highlights li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0.4rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red), var(--color-dark-red));
  box-shadow: 0 0 0 4px rgba(217, 30, 30, 0.15);
}

.blog-entry__footer {
  margin-top: auto;
}

@media (max-width: 960px) {
  .blog-entry {
    grid-template-columns: 1fr;
  }

  .blog-entry__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .blog-entry__meta {
    gap: 0.5rem;
  }
}
/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--color-charcoal);
  border: 1px solid rgba(242, 242, 242, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal[data-open="true"] .modal__content {
    transform: scale(1);
}

.modal__content h2 {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(242, 242, 242, 0.1);
}

.modal__body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
}

.modal__body p {
    margin-bottom: 1rem;
    color: rgba(242, 242, 242, 0.85);
}

.modal__content--gallery {
  max-width: min(960px, 90vw);
}

.modal__body--gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
}

.modal__image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}


.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 242, 242, 0.1);
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--color-cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-base);
}

.modal__close:hover {
    background: var(--color-red);
    transform: rotate(90deg);
}

body.modal-open {
    overflow: hidden;
}

