/* ==========================================================================
   INTERIOR7 V3 — CASOS DE ESTUDIO (MULTIMEDIA & ZINE STYLING)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700&family=Caveat:wght@400;700&display=swap');

:root {
  --bg: #EBEBEB;
  --bg-alt: #F3F3F3;
  --black: #0C0C0C;
  --red: #EA3323;
  --cyan: #8AD9F5;
  --green: #82D9C5;
  --white: #FFFFFF;
  --gray: #707070;
  
  --font-main: 'Montserrat', sans-serif;
  --font-hand: 'Caveat', cursive;
  
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* === CRUMPLED PAPER GLOBAL TEXTURE OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='3' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='%23fff' surfaceScale='3'%3E%3CfeDistantLight azimuth='45' elevation='50'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* === HALFTONE PATTERN === */
.halftone {
  position: relative;
}
.halftone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
  background-size: 8px 8px;
  z-index: 1;
}

/* === NAVBAR === */
.navbar {
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--black);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  text-decoration: none;
  cursor: pointer;
}
.nav-logo img {
  height: 34px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white) !important;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--black);
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
  background: var(--red-orange);
}

/* === CASE HERO === */
.case-hero {
  padding: 80px 48px;
  border-bottom: 3px solid var(--black);
  background: var(--white);
  position: relative;
}
.case-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.case-tag {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  transform: rotate(-1.5deg);
}
.case-hero-text h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.case-hero-text h1 span.accent {
  color: var(--red);
}
.case-hero-desc {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 40px;
}
.case-hero-desc strong {
  color: var(--black);
  font-weight: 700;
}

/* Hero Metrics Box */
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 2px dashed rgba(0,0,0,0.15);
  padding-top: 30px;
}
.case-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.case-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Polaroid visual container in Hero */
.case-hero-visual {
  display: flex;
  justify-content: center;
}
.polaroid-frame {
  background: var(--white);
  border: 4px solid var(--black);
  padding: 16px 16px 44px 16px;
  box-shadow: 10px 10px 0px var(--black);
  transform: rotate(2deg);
  width: 100%;
  max-width: 440px;
  position: relative;
  transition: all var(--transition);
}
.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
/* Tape at the top of polaroid */
.polaroid-frame::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 100px;
  height: 30px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border: 1px dashed rgba(0,0,0,0.15);
  z-index: 5;
}
.polaroid-img-box {
  height: 320px;
  background: #E0E0E0;
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
  color: var(--black);
}

/* === GENERAL SECTIONS === */
section.case-section {
  padding: 100px 48px;
  border-bottom: 3px solid var(--black);
}
.case-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
  transform: rotate(-1.5deg);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.section-title span.accent {
  color: var(--red);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* === SERVICES APPLIED GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 30px;
  box-shadow: 5px 5px 0px var(--black);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 20px;
}
.service-card .tag {
  margin-top: auto;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
}

/* === MULTIMEDIA GALLERY SECTION === */
.gallery-section {
  padding: 100px 0;
  border-bottom: 3px solid var(--black);
  background-color: var(--bg-alt);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  padding: 0 48px;
  max-width: 1300px;
  margin: 0 auto;
}
.gallery-item {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 16px;
  box-shadow: 8px 8px 0px var(--black);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Tape variations on gallery polaroid-style crops */
.gallery-item::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 30px;
  width: 70px;
  height: 24px;
  background: rgba(255,255,255,0.4);
  border: 1px dashed rgba(0,0,0,0.12);
  transform: rotate(-5deg);
  z-index: 5;
}
.gallery-item:nth-child(even)::before {
  left: auto;
  right: 30px;
  background: rgba(138, 217, 245, 0.35);
  border-color: rgba(138, 217, 245, 0.5);
  transform: rotate(4deg);
}
.gallery-item:nth-child(3n)::before {
  background: rgba(234, 51, 35, 0.35);
  border-color: rgba(234, 51, 35, 0.5);
}
.gallery-img-box {
  height: 280px;
  border: 2px solid var(--black);
  background: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-info {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-caption {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--black);
}
.gallery-type-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 4px 10px;
  border: 1px solid var(--black);
}

/* === MULTIMEDIA VIDEO PLAYER FRAME === */
.video-showcase-container {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.video-player-frame {
  background: var(--black);
  border: 4px solid var(--black);
  box-shadow: 12px 12px 0px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}
.video-player-frame iframe,
.video-player-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* Tape elements holding the video screen frame */
.video-player-frame::before {
  content: 'VIDEO REAL';
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 5;
  border: 1.5px solid var(--black);
}

/* === NUMERICAL RESULTS SECTION === */
.results-section {
  background-color: var(--black);
  color: var(--white);
}
.results-section .section-title {
  color: var(--white);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.result-card {
  background: #151515;
  border: 3px solid rgba(255,255,255,0.15);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition);
}
.result-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.result-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
}
.result-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* === TESTIMONIAL SPEECH BUBBLE === */
.testimonial-section {
  background: var(--bg);
}
.testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--black);
  padding: 48px 40px;
  box-shadow: 8px 8px 0px var(--black);
  position: relative;
  text-align: center;
}
.testimonial-mark {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  position: absolute;
  top: -24px;
  left: 40px;
  background: var(--bg);
  padding: 0 10px;
}
.testimonial-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 24px;
}
.testimonial-text strong {
  font-weight: 800;
  color: var(--red);
}
.testimonial-author {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.testimonial-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* === CTA SECTION === */
.cta-section {
  background-color: var(--bg-alt);
  text-align: center;
  padding: 100px 48px;
}
.cta-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.cta-section h2 span.accent {
  color: var(--red);
}
.cta-section p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  font-weight: 500;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.footer-left {
  color: rgba(255,255,255,0.4);
}
.footer-left span {
  color: var(--red);
  font-weight: 800;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links a:hover {
  color: var(--red);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .case-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-hero-visual {
    order: -1;
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .case-hero {
    padding: 60px 24px;
  }
  section.case-section {
    padding: 60px 24px;
  }
  .gallery-grid {
    padding: 0;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
