/* ═══════════════════════════════════════════════
   INVERPRISMAFK SRL — Landing Page
   Diseño: "Corporate Prism"
   ═══════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #1B5E3A;
  --green-light: #2d8a56;
  --green-bg: #f0f7f3;
  --purple: #5C3D7A;
  --purple-light: #7e5ba0;
  --purple-bg: #f5f0f8;
  --blue: #2C4A6E;
  --blue-light: #4a7ab0;
  --blue-bg: #f0f4f8;
  --dark: #1a1a1a;
  --foreground: #1f1f1f;
  --muted: #6b6b6b;
  --bg: #fdfcfa;
  --card: #ffffff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-prism-bar {
  height: 3px;
  background: linear-gradient(to right, var(--green) 33%, var(--purple) 33% 66%, var(--blue) 66%);
  opacity: 0;
  transition: opacity 0.3s;
}

.header.scrolled .header-prism-bar {
  opacity: 1;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-logo.small {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: white;
  transition: color 0.3s;
}

.header.scrolled .brand-name {
  color: var(--foreground);
}

.brand-name.light {
  color: white;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

.header.scrolled .brand-sub {
  color: var(--muted);
}

.brand-sub.light {
  color: rgba(255,255,255,0.4);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.header.scrolled .nav-link {
  color: var(--foreground);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,40,25,0.85) 0%, rgba(20,25,50,0.75) 50%, rgba(40,20,55,0.70) 100%);
}

/* Geometric accents */
.hero-geo {
  position: absolute;
  display: none;
}

@media (min-width: 1024px) {
  .hero-geo { display: block; }
}

.geo-line-1 {
  top: 25%;
  right: 0;
  width: 300px;
  height: 2px;
  background: linear-gradient(to left, rgba(45,138,86,0.3), transparent);
  transform: rotate(-20deg);
}

.geo-line-2 {
  top: 35%;
  right: 40px;
  width: 200px;
  height: 2px;
  background: linear-gradient(to left, rgba(126,91,160,0.25), transparent);
  transform: rotate(-20deg);
}

.geo-line-3 {
  top: 45%;
  right: 80px;
  width: 150px;
  height: 2px;
  background: linear-gradient(to left, rgba(74,122,176,0.2), transparent);
  transform: rotate(-20deg);
}

.geo-diamond {
  bottom: 128px;
  right: 25%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,0.04);
  transform: rotate(45deg);
}

.hero-content {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-left {
  max-width: 640px;
}

.prism-bar-small {
  display: flex;
  gap: 4px;
  margin-bottom: 2rem;
}

.prism-bar-small span {
  display: block;
  height: 6px;
  width: 48px;
}

.prism-bar-small span:nth-child(1) { background: var(--green-light); }
.prism-bar-small span:nth-child(2) { background: var(--purple-light); }
.prism-bar-small span:nth-child(3) { background: var(--blue-light); }

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.2rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.8rem; }
}

.hero-title-accent {
  background: linear-gradient(to right, var(--green-light), var(--purple-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 2px;
}

.tag-green {
  border: 1px solid rgba(45,138,86,0.4);
  background: rgba(45,138,86,0.1);
}

.tag-purple {
  border: 1px solid rgba(126,91,160,0.4);
  background: rgba(126,91,160,0.1);
}

.tag-blue {
  border: 1px solid rgba(74,122,176,0.4);
  background: rgba(74,122,176,0.1);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--dark);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.2s var(--ease-out);
}

.hero-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.hero-btn:active {
  transform: scale(0.97);
}

/* Hero right facets */
.hero-right {
  display: none;
}

@media (min-width: 1024px) {
  .hero-right { display: block; }
}

.hero-facets {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.facet-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
}

.facet-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
}

.facet-num.green { color: var(--green-light); }
.facet-num.purple { color: var(--purple-light); }
.facet-num.blue { color: var(--blue-light); }

.facet-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.facet-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.5rem 0;
}

/* Hero bottom cut */
.hero-bottom-cut {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-bottom-cut svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── SERVICES ─── */
.services {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .services { padding: 8rem 0; }
}

.services-accent {
  position: absolute;
  top: 80px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accent-line {
  display: block;
  width: 4px;
  border-radius: 0;
}

.accent-line.green { height: 160px; background: linear-gradient(to bottom, var(--green), transparent); }
.accent-line.purple { height: 128px; background: linear-gradient(to bottom, var(--purple), transparent); margin-left: 8px; }
.accent-line.blue { height: 96px; background: linear-gradient(to bottom, var(--blue), transparent); margin-left: 16px; }

.services-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .services-header {
    grid-template-columns: 5fr 7fr;
    margin-bottom: 5rem;
  }
}

.services-header-right {
  display: flex;
  align-items: flex-end;
}

.prism-bar-compact {
  display: flex;
  gap: 0;
  height: 4px;
  width: 96px;
  margin-bottom: 1.25rem;
}

.prism-bar-compact span {
  flex: 1;
  display: block;
}

.prism-bar-compact span:nth-child(1) { background: var(--green-light); }
.prism-bar-compact span:nth-child(2) { background: var(--purple-light); }
.prism-bar-compact span:nth-child(3) { background: var(--blue-light); }

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.75rem; }
}

.section-title.light {
  color: white;
}

.section-desc {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 500px;
}

/* Service rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 5fr 7fr;
    margin-bottom: 3rem;
  }

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

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

.service-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-image { height: auto; min-height: 300px; }
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.3;
}

.overlay-green { background: var(--green); }
.overlay-purple { background: var(--purple); }
.overlay-blue { background: var(--blue); }

.service-number {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  font-weight: bold;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .service-number {
    bottom: 24px;
    left: 24px;
    font-size: 3.5rem;
  }
}

.service-number.green { color: var(--green-light); }
.service-number.purple { color: var(--purple-light); }
.service-number.blue { color: var(--blue-light); }

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .service-content { padding: 3rem; }
}

.bg-green-light { background: var(--green-bg); }
.bg-purple-light { background: var(--purple-bg); }
.bg-blue-light { background: var(--blue-bg); }

.service-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-green { background: var(--green); }
.icon-purple { background: var(--purple); }
.icon-blue { background: var(--blue); }

.service-icon-line {
  height: 1px;
  width: 60px;
  opacity: 0.3;
}

.line-green { background: var(--green); }
.line-purple { background: var(--purple); }
.line-blue { background: var(--blue); }

.service-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.service-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ─── ABOUT ─── */
.about {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about { padding: 8rem 0; }
}

.about-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

@media (min-width: 768px) {
  .about-bg {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
  }
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.about-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .about-text { font-size: 1.1rem; }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-item {
  padding-top: 1rem;
}

.stat-green { border-top: 2px solid var(--green-light); }
.stat-purple { border-top: 2px solid var(--purple-light); }
.stat-blue { border-top: 2px solid var(--blue-light); }

.stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .stat-value { font-size: 2rem; }
}

.stat-value.green { color: var(--green-light); }
.stat-value.purple { color: var(--purple-light); }
.stat-value.blue { color: var(--blue-light); }

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* About right card */
.about-right {
  position: relative;
}

.about-card-frame {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(255,255,255,0.06);
  transform: rotate(2deg);
}

.about-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
}

@media (min-width: 768px) {
  .about-card { padding: 2.5rem; }
}

.about-card-section {
  padding: 0.75rem 0;
}

.about-card-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.about-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

.dot.green { background: var(--green-light); }
.dot.purple { background: var(--purple-light); }
.dot.blue { background: var(--blue-light); }

.about-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.75rem 0;
}

/* ─── CONTACT ─── */
.contact {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .contact { padding: 8rem 0; }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.contact-green {
  border-left: 2px solid var(--green-light);
  background: rgba(240, 247, 243, 0.5);
}

.contact-purple {
  border-left: 2px solid var(--purple-light);
  background: rgba(245, 240, 248, 0.5);
}

.contact-blue {
  border-left: 2px solid var(--blue-light);
  background: rgba(240, 244, 248, 0.5);
}

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

.contact-item-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.contact-item-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ─── FOOTER ─── */
.footer {
  background: #1a1714;
}

.footer-prism-bar {
  height: 4px;
  background: linear-gradient(to right, var(--green) 33%, var(--purple) 33% 66%, var(--blue) 66%);
}

.footer-inner {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ─── ANIMATIONS ─── */
@media (prefers-reduced-motion: no-preference) {
  .animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }

  .animate-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── MOBILE MENU ─── */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.header.scrolled .mobile-menu-btn span {
  background: var(--foreground);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1rem;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

@media (max-width: 767px) {
  .mobile-nav {
    display: flex;
    max-height: 0;
    padding: 0 1rem;
  }

  .mobile-nav.open {
    max-height: 240px;
    padding: 0.75rem 1rem;
  }
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: var(--green);
}
