/* =============================================
   PROJECT PAGE STYLES
   ============================================= */

.project-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 120px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--gray-mid);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--black);
}

.breadcrumb span {
  color: var(--gray-mid);
}

/* Tags row */
.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-mid);
  border: 0.5px solid rgba(0,0,0,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Project header */
.project-header {
  margin-bottom: 48px;
}

.project-client-name {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.project-intro {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1.7;
}

/* Divider */
.project-divider {
  border: none;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  margin: 56px 0;
}

/* Section block */
.project-section {
  margin-bottom: 64px;
}

.project-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.project-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.project-section-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.project-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-section strong {
  color: var(--black);
  font-weight: 600;
}

/* Image placeholders */
.img-wide {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: #f0f0f0;
  border-radius: 0;
  margin: 32px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.img-square {
  width: 100%;
  aspect-ratio: 37 / 32;
  background: #f0f0f0;
  border-radius: 0;
  margin: 32px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Grid 2 cols for square images */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.img-grid-2 .img-square {
  margin: 0;
}

/* CTA link */
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
  margin: 8px 0 24px;
  transition: opacity 0.2s;
}

.project-cta:hover {
  opacity: 0.6;
}

/* Next project */
.next-project {
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding-top: 48px;
  margin-top: 80px;
}

.next-project-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

.next-project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: opacity 0.2s;
}

.next-project-link:hover {
  opacity: 0.6;
}

.next-project-link svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .project-page {
    padding: 40px 20px 80px;
  }
  .project-title {
    font-size: 32px;
  }
  .project-section h2 {
    font-size: 24px;
  }
  .img-grid-2 {
    grid-template-columns: 1fr;
  }
  .next-project-link {
    font-size: 24px;
  }
}

/* =============================================
   PROJECT HERO VIDEO
   ============================================= */

.project-hero {
  width: 100%;
  padding: 0 16px 0;
  background: var(--white);
  margin-bottom: 0;
}

.project-hero-frame {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.project-hero-frame video,
.project-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: cover;
}

/* =============================================
   PROJECT HERO LOGO OVERLAY
   ============================================= */

.project-hero-frame {
  position: relative;
}

.project-hero-logo {
  position: absolute;
  top: 50%;
  left: calc((100% - var(--max-width)) / 2 + 40px);
  transform: translateY(-50%);
}

.project-hero-logo img {
  height: 58px;
  width: auto;
}

/* Civitatis logo — tamaño específico */
.project-hero-logo img.logo-civitatis {
  height: 96px;
  width: auto;
}

/* =============================================
   PROJECT META INFO (Cliente / Industria)
   ============================================= */

.project-meta-info {
  display: flex;
  gap: 64px;
  margin-bottom: 32px;
  padding-top: 48px;
}

.project-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-meta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta-value {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

/* Fix project-client-name size to 64px */
.project-client-name {
  font-family: 'Syne', sans-serif;
  font-size: 64px !important;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-transform: none;
}

/* =============================================
   BRAND VIDEO + CTAs
   ============================================= */

.brand-video-wrap {
  width: 100%;
  margin: 32px 0 40px;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.brand-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.brand-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 20px;
}

.brand-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.brand-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  background: #EDEDED;
  border-radius: 0;
  padding: 18px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.brand-cta-btn:hover {
  background: var(--accent-blue);
  color: var(--white);
}

.brand-cta-arrow {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: filter 0.2s;
}

.brand-cta-btn:hover .brand-cta-arrow {
  filter: brightness(0) invert(1);
}

/* Videos inside square/wide boxes */
.img-square video,
.img-wide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* InShOt logo */
.project-hero-logo img.logo-inshot {
  height: 190px;
  width: auto;
}

/* Buddies logo */
.project-hero-logo img.logo-buddies {
  height: 58px;
  width: auto;
}

/* Buddies logo — override size */
.project-hero-logo img.logo-buddies {
  height: 80px !important;
  width: auto;
}

/* Wide 12:5 — excepción para Buddies UX */
.img-wide-12-5 {
  width: 100%;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  margin: 32px 0;
}

.img-wide-12-5 img,
.img-wide-12-5 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Extandard logo */
.project-hero-logo img.logo-extandard {
  height: 72px;
  width: auto;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.about-page h1 {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 40px;
}

.about-name {
  color: var(--accent-blue);
}

.about-page p {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-closing {
  color: var(--black) !important;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .about-page {
    padding: 60px 20px 80px;
  }
  .about-page h1 {
    font-size: 32px;
  }
}

.about-closing {
  margin-bottom: 16px !important;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--accent-blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.about-contact-btn:hover {
  opacity: 0.85;
}

.email-highlight {
  color: var(--accent-blue);
}
