/* ============================================
   2mes4 — Innovation Studio
   Brand: Obsidian Navy #0F1B33 | Vibrant Teal #00C9A7
   Font: Inter
   Dark mode default
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: rgba(255,255,255,0.85);
  background: #0F1B33;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: #00C9A7;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00D4AA;
}

/* ---------- COLORS ---------- */
:root {
  --navy: #0F1B33;
  --navy-light: #1A2D5A;
  --teal: #00C9A7;
  --teal-dark: #009B80;
  --teal-electric: #00D4AA;
  --offwhite: #F7F7F5;
  --light-gray: #E8E8E5;
  --medium-gray: #64748B;
  --dark-gray: #334155;
  --near-black: #0A0A0F;
  --white: #FFFFFF;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.highlight-teal {
  color: #00C9A7;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-radius: 0;
}

.btn-primary {
  background: #00C9A7;
  color: #0F1B33;
  border-color: #00C9A7;
}

.btn-primary:hover {
  background: #00D4AA;
  border-color: #00D4AA;
  color: #0F1B33;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,201,167,0.3);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: #00C9A7;
  color: #00C9A7;
  background: rgba(0,201,167,0.1);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.25);
}

.btn-outline-navy:hover {
  border-color: #00C9A7;
  color: #00C9A7;
  background: rgba(0,201,167,0.08);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: #0A0A0F;
  color: rgba(255,255,255,0.8);
}

.section-dark h2 {
  color: #FFFFFF;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.55);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(0,201,167,0.1);
  border: 1px solid rgba(0,201,167,0.25);
  color: #00C9A7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-badge.light {
  border-color: rgba(0,201,167,0.3);
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  max-width: 600px;
  letter-spacing: -1px;
}

.section-title.light {
  color: #FFFFFF;
}

.section-title.center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin-bottom: 32px;
}

.section-desc.light {
  color: rgba(255,255,255,0.55);
}

.section-desc.wide {
  max-width: 750px;
}

.section-desc.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- SECTION GRID ---------- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-col-text {
  max-width: 540px;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.section-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.section-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #00C9A7;
  border-radius: 0;
}

/* ---------- IMAGE CARDS ---------- */
.image-card {
  position: relative;
}

.rounded-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.image-card-caption {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 6px;
  text-align: right;
}

.image-card-caption.light {
  color: rgba(255,255,255,0.2);
}

.image-card-wide {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,27,51,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-cta {
  background: #00C9A7;
  color: #0F1B33 !important;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #00D4AA;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,201,167,0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F1B33;
  overflow: hidden;
  padding-top: 64px;
  text-align: center;
}

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

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

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,27,51,0.85) 0%, rgba(15,27,51,0.7) 50%, rgba(15,27,51,0.95) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(0,201,167,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0,201,167,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-icon {
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: rgba(0,201,167,0.12);
  border: 1px solid rgba(0,201,167,0.3);
  color: #00C9A7;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-title-highlight {
  color: #00C9A7;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- STEPS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  padding: 40px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,201,167,0.12);
  color: #00C9A7;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ---------- EXPERIENCE / SLIDER ---------- */
.slider-container {
  overflow: hidden;
  padding: 0 24px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.slider-track {
  display: flex;
  gap: 60px;
  animation: scroll-slider 35s linear infinite;
  width: max-content;
  align-items: center;
}

.slider-track.paused {
  animation-play-state: paused;
}

@keyframes scroll-slider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slider-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: all var(--transition);
  padding: 8px 48px;
}

.slider-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.4;
  transition: all var(--transition);
  filter: grayscale(100%) brightness(1.2);
}

.slider-slide:hover .slider-logo-img {
  opacity: 0.8;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: all var(--transition);
  overflow: hidden;
}

.project-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.project-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  flex: 1;
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: #00C9A7;
  transition: color 0.2s;
}

.project-card:hover .project-link {
  color: #00D4AA;
}

/* ---------- BLOG PREVIEW ---------- */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.blog-preview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-preview-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.blog-preview-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-preview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-preview-tag {
  font-size: 11px;
  font-weight: 600;
  color: #00C9A7;
  background: rgba(0,201,167,0.1);
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-preview-date {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

.blog-preview-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-preview-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-preview-title a:hover {
  color: #00C9A7;
}

.blog-preview-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  flex: 1;
}

.blog-preview-link {
  font-size: 14px;
  font-weight: 600;
  color: #00C9A7;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-preview-link:hover {
  color: #00D4AA;
}

.blog-preview-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- CONTACT / FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 20px;
}

.contact-benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contact-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  line-height: 1.6;
}

.contact-benefits li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00C9A7;
  font-weight: 700;
  font-size: 16px;
}

.contact-form-wrapper {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px;
}

.form-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all var(--transition);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-input:focus {
  outline: none;
  border-color: #00C9A7;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.12);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #0F1B33;
  color: #FFFFFF;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(0,201,167,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #00C9A7;
  font-weight: 700;
}

.form-success p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0A0A0F;
  color: rgba(255,255,255,0.4);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer-logo {
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.footer-subtagline {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  color: #00C9A7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-link:hover {
  color: #00C9A7;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

/* ---------- SPLIT GRID (INTRO BLOCK) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-content {
  max-width: 520px;
}
.split-content .section-title {
  text-align: left;
  margin-bottom: 16px;
}
.split-content .section-desc {
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: 24px;
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.benefit-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #00C9A7;
  font-weight: 600;
}
.split-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-content {
    max-width: 100%;
  }
  .split-content .section-title,
  .split-content .section-desc {
    text-align: center;
  }
}

/* ---------- OPEN SOURCE SECTION ---------- */
.opensource-section {
  padding: 100px 0;
  background: #0F1B33;
}

.opensource-section .section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin-bottom: 48px;
}

.opensource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.opensource-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.opensource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #00C9A7;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.opensource-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.opensource-card:hover::before {
  transform: scaleY(1);
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0,201,167,0.1);
  border: 1px solid rgba(0,201,167,0.25);
  color: #00C9A7;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.os-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.os-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  flex: 1;
}

.os-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-tag {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.tech-tag:hover {
  border-color: rgba(0,201,167,0.3);
  color: #00C9A7;
  background: rgba(0,201,167,0.06);
}

.os-card-links {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.os-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #00C9A7;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.os-card-link:hover {
  color: #00D4AA;
}

/* ---------- STUDIO / CREATIVIDAD ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.studio-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
  overflow: hidden;
}

.studio-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.studio-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.studio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.studio-card:hover .studio-card-img img {
  transform: scale(1.05);
}

.studio-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.studio-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(0,201,167,0.1);
  border: 1px solid rgba(0,201,167,0.2);
  color: #00C9A7;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.studio-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.studio-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  flex: 1;
}

.studio-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #00C9A7;
  transition: color 0.2s;
}

.studio-card-link:hover {
  color: #00D4AA;
}

.studio-cta {
  text-align: center;
  margin-top: 48px;
}
.studio-cta-text {
  font-size: 15px;
  color: rgba(15,27,51,0.6);
  margin-bottom: 16px;
}
.inline-link {
  color: #0C7C7B;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(12,124,123,0.3);
  transition: all 0.2s;
}
.inline-link:hover {
  color: #00C9A7;
  text-decoration-color: #00C9A7;
}

/* ---------- TECNOLOGÍA ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #00C9A7;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.tech-card:hover::before {
  transform: scaleY(1);
}

.tech-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.tech-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  flex: 1;
}

.tech-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-card-links {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tech-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #00C9A7;
  transition: color 0.2s;
}

.tech-card-link:hover {
  color: #00D4AA;
}

.tech-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BLOG / ARTICLE ---------- */
.blog-header {
  padding: 120px 0 40px;
  background: #0F1B33;
}

.blog-header-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.blog-header-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
}

.blog-section {
  padding: 60px 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: #00C9A7;
  background: rgba(0,201,167,0.04);
  transform: translateY(-4px);
}

.blog-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  color: #00C9A7;
  background: rgba(0,201,167,0.1);
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-date {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #00C9A7;
}

.blog-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #00C9A7;
  transition: color 0.2s;
}

.blog-card-link:hover {
  color: #00D4AA;
}

.blog-section-label {
  grid-column: 1 / -1;
  margin-top: 24px;
}

/* Article Layout */
.article {
  padding: 40px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  color: #00C9A7;
  background: rgba(0,201,167,0.1);
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-reading-time,
.article-date {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.article-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.article-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 650px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: #FFFFFF;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #FFFFFF;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.article-body strong {
  color: #FFFFFF;
  font-weight: 600;
}

.article-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 48px 0;
}

.article-quote {
  margin: 32px 0;
  padding: 24px 32px;
  background: rgba(0,201,167,0.04);
  border-left: 4px solid #00C9A7;
}

.article-quote p {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.article-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
}

.article-table td {
  color: rgba(255,255,255,0.7);
}

.article-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.article-cta-inline {
  margin: 32px 0;
  padding: 24px 32px;
  background: rgba(0,201,167,0.04);
  border: 1px solid rgba(0,201,167,0.15);
}

.article-cta-inline p {
  margin-bottom: 16px;
}

.article-final-cta {
  margin: 48px 0;
  padding: 36px;
  background: rgba(0,201,167,0.04);
  border: 1px solid rgba(0,201,167,0.15);
  text-align: center;
}

.article-final-cta h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.article-final-cta p {
  margin-bottom: 24px;
}

.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.article-related h3 {
  margin-bottom: 16px;
}

.article-related ul {
  list-style: none;
  padding: 0;
}

.article-related li {
  margin-bottom: 10px;
}

.article-related a {
  color: #00C9A7;
  font-weight: 500;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.sidebar-widget p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: #00C9A7;
}

.sidebar-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,201,167,0.1);
  color: #00C9A7;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 88px 0 12px;
  background: #0F1B33;
  font-size: 13px;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #00C9A7;
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.2);
  margin: 0 8px;
}

.breadcrumb-current {
  color: rgba(255,255,255,0.7);
}

/* Blog Topbar */
.blog-topbar {
  background: rgba(0,201,167,0.06);
  border-bottom: 1px solid rgba(0,201,167,0.12);
  padding: 10px 0;
  font-size: 13px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.topbar-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-keywords {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-label {
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  font-size: 12px;
}

.topbar-keyword {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-keyword:hover {
  color: #00C9A7;
}

.topbar-sep {
  color: rgba(255,255,255,0.15);
}

.topbar-cta {
  color: #00C9A7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.topbar-cta:hover {
  color: #00D4AA;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; margin-bottom: 24px; }

  /* Nav */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15,27,51,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-tagline {
    font-size: 11px;
  }

  /* Section Grid */
  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-col-visual {
    display: none;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 28px 24px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Blog */
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Open Source */
  .opensource-grid {
    grid-template-columns: 1fr;
  }

  .opensource-card {
    padding: 24px;
  }

  /* Studio / Creatividad */
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-card-img {
    height: 200px;
  }

  /* Tecnología */
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    padding: 24px;
  }

  .tech-cta {
    flex-direction: column;
    align-items: center;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header-title {
    font-size: 30px;
  }

  /* Article */
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .article-header h1 {
    font-size: 28px;
  }

  /* Topbar */
  .topbar-container {
    flex-direction: column;
    gap: 8px;
  }

  .topbar-sep {
    display: none;
  }

  /* Slider */
  .slider-logo-img {
    max-height: 36px;
  }

  .slider-track {
    gap: 40px;
  }
}

/* Small tablet (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px;
  }

  .slider-logo-img {
    max-height: 28px;
  }

  .slider-track {
    gap: 32px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }

  .section-title {
    font-size: 42px;
  }
}

/* Extra large (1280px+) */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 72px;
  }
}
