/* ==========================================================================
   InCuadro Studio — Official Website Stylesheet (www.incuadro.com)
   Ingeniería Visual Comercial · Fidelidad 1:1 con Master One-Page
   ========================================================================== */

:root {
  --bg-deep: #09121d;
  --bg-navy: #112233;
  --bg-petrol: #1b344a;
  --bg-bar: rgba(10, 18, 30, 0.86);
  --bg-bar-solid: #0b1320;
  --text-white: #f4f3ec;
  --text-PureWhite: #ffffff;
  --text-muted: #9da4b0;
  --text-nav: #6a7484;
  --accent-orange: #e16a1b;
  --accent-orange-bright: #f27420;
  --accent-cyan: #7fd5cb;
  --accent-teal: #8bb9bc;
  --accent-olive: #82896f;
  --pill-border: rgba(120, 145, 175, 0.35);
  --pill-bg: rgba(15, 28, 43, 0.55);
  --pill-bg-hover: rgba(26, 47, 70, 0.82);
  --container-max: 1120px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 45% at 72% 10%, rgba(44, 82, 112, 0.48) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 20% 34%, rgba(35, 68, 96, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 85% 45% at 75% 62%, rgba(38, 73, 102, 0.38) 0%, transparent 72%),
    radial-gradient(ellipse 90% 40% at 35% 88%, rgba(31, 61, 88, 0.44) 0%, transparent 70%),
    url('assets/bg-atmosphere.webp');
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center top;
  background-attachment: scroll;
  color: var(--text-white);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-smooth), opacity var(--transition-smooth), transform var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 36px;
}

/* ==========================================================================
    Brand Logo Component (Exact Vector-Matched HTML/SVG Lockup)
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  line-height: 1;
  user-select: none;
}

.brand-logo svg {
  display: block;
  height: 44px;
  width: auto;
}

.brand-logo--large svg {
  height: 92px;
  width: auto;
}

/* ==========================================================================
   1. Top Sticky Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(12, 20, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.is-scrolled {
  background: rgba(9, 16, 26, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-nav);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-PureWhite);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Section Bar Header (Matches One-Page Section Dividers)
   ========================================================================== */
.section-bar {
  width: 100%;
  background: linear-gradient(90deg, rgba(14, 24, 38, 0.85) 0%, rgba(24, 41, 61, 0.72) 55%, rgba(14, 24, 38, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  margin-bottom: 44px;
}

.section-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.section-heading--orange {
  color: var(--accent-orange);
}

.section-subnav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.section-subnav a {
  font-size: 0.98rem;
  color: var(--text-nav);
  font-weight: 400;
}

.section-subnav a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   2. Hero Section — "Qué hacemos"
   ========================================================================== */
.hero-section {
  padding: 52px 0 88px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 54px;
}

.hero-mosaic-wrap {
  position: relative;
}

.hero-mosaic-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.42));
  transition: transform 0.5s ease;
}

.hero-mosaic-wrap:hover .hero-mosaic-img {
  transform: translateY(-3px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-right: 12px;
}

.hero-lead {
  font-size: clamp(1.32rem, 2.15vw, 1.78rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1.22rem, 1.95vw, 1.68rem);
  font-weight: 700;
  color: var(--text-PureWhite);
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.hero-tagline-break {
  display: block;
}

/* ==========================================================================
   3. Section — "Cómo trabajamos"
   ========================================================================== */
.process-section {
  position: relative;
  padding-bottom: 64px;
  overflow: hidden;
}

.process-content-wrap {
  position: relative;
  max-width: 920px;
}

.process-list-col {
  position: relative;
  width: 100%;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.process-item {
  position: relative;
  padding-left: 24px;
}

.process-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1.35;
}

.process-item-title {
  font-size: clamp(1.22rem, 1.85vw, 1.56rem);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.34;
  margin-bottom: 4px;
}

.process-item-desc {
  font-size: clamp(1.12rem, 1.7vw, 1.44rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.38;
}

.process-closing {
  margin-top: 48px;
  max-width: 820px;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.35;
  border-left: 2px solid var(--accent-orange);
  padding-left: 22px;
}

/* ==========================================================================
   4. Section — "Casos"
   ========================================================================== */
.cases-section {
  position: relative;
  padding-bottom: 72px;
}

.cases-intro-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.cases-intro-text {
  max-width: 780px;
  font-size: clamp(1.2rem, 1.85vw, 1.58rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.36;
}

.layout-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 19, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.layout-btn {
  background: transparent;
  border: none;
  color: var(--text-nav);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-btn:hover {
  color: var(--text-white);
}

.layout-btn.is-active {
  background: rgba(225, 106, 27, 0.18);
  color: var(--text-PureWhite);
  border: 1px solid rgba(225, 106, 27, 0.45);
}

/* Editorial 1-Column Default (Matches Master One-Page 1:1) */
.cases-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

/* Optional 2-Column Desktop Grid Mode */
.cases-showcase.is-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-figure {
  position: relative;
  width: 100%;
  max-width: 960px;
  cursor: zoom-in;
  transition: transform var(--transition-smooth);
}

.case-figure:hover {
  transform: translateY(-4px);
}

.case-img {
  width: 100%;
  height: auto;
  display: block;
}

.case-zoom-hint {
  position: absolute;
  bottom: 9%;
  right: 7%;
  background: rgba(10, 18, 30, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-white);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.case-figure:hover .case-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.case-caption {
  width: 100%;
  max-width: 840px;
  margin-top: -12px;
  padding: 0 24px;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.32;
  text-align: left;
}

.cases-showcase.is-grid-2 .case-caption {
  font-size: 1.15rem;
  margin-top: -4px;
  padding: 0 12px;
}

/* ==========================================================================
   5. Section — "Contacto" & Footer
   ========================================================================== */
.contact-section {
  padding-bottom: 96px;
}

.contact-lead {
  max-width: 900px;
  font-size: clamp(1.28rem, 2.05vw, 1.76rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.38;
  margin-bottom: 72px;
}

.contact-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  margin-bottom: 58px;
}

.contact-tagline {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 340px;
  padding: 15px 34px;
  border-radius: 18px;
  background: var(--pill-bg);
  border: 2px solid rgba(55, 68, 86, 0.85);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  font-weight: 400;
  transition: all var(--transition-smooth);
}

.contact-pill::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -2px;
  height: 2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0%, transparent 75%);
  transition: opacity var(--transition-smooth);
}

.contact-pill:hover {
  background: var(--pill-bg-hover);
  border-color: rgba(127, 213, 203, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(127, 213, 203, 0.14);
}

.contact-pill-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-pill-pointer {
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-smooth);
}

.contact-pill:hover .contact-pill-pointer {
  transform: scale(1.1) translate(-2px, -2px);
}

.contact-email-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 18px;
  color: var(--text-white);
  font-size: clamp(1.18rem, 1.7vw, 1.44rem);
  font-weight: 400;
}

.contact-email-link:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.contact-email-icon {
  width: 42px;
  height: 34px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer-meta {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-nav);
}

/* ==========================================================================
   Lightbox Modal for High-Resolution Case Inspection
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 12, 20, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
   flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-PureWhite);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: min(94vw, 1100px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 14px;
  max-width: 760px;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-mosaic-img {
    margin: 0 auto;
    max-width: 480px;
  }

  .hero-copy {
    text-align: left;
    padding-right: 0;
  }

  .process-content-wrap {
    max-width: 100%;
  }

  .cases-showcase.is-grid-2 {
    grid-template-columns: 1fr;
  }

  .layout-switcher {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 22px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo svg {
    height: 36px;
  }

  .brand-logo--large svg {
    height: 68px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 16, 26, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .section-subnav {
    display: none;
  }

  .section-icon {
    width: 52px;
    height: 52px;
  }

  .case-caption {
    margin-top: -4px;
    padding: 0 8px;
  }

  .contact-pill {
    min-width: 290px;
    width: 100%;
    max-width: 340px;
    padding: 14px 24px;
  }
}
