/*
Theme Name: Gracia V1
Theme URI: https://graciastudio.com
Author: Cristian y Lili
Author URI: https://graciastudio.com
Description: Tema personalizado y optimizado para rendimiento extremo (Sin constructores).
Version: 1.0
Text Domain: gracia
*/

/* --- VARIABLES GLOBALES --- */
:root {
  --bg-dark: #111111;
  --text-light: #F5F5F5;
  --text-gray: #A1A1AA;
  --accent-purple: #AB8EF7;
  --font-heading: 'Objectivity', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

/* --- CARGA DE FUENTES LOCALES --- */
@font-face {
  font-family: 'Objectivity';
  src: url('./fonts/Objectivity-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Objectivity';
  src: url('./fonts/Objectivity-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Objectivity';
  src: url('./fonts/Objectivity-BoldSlanted.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --- RESET BÁSICO --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.text-accent {
  color: var(--accent-purple);
}

/* --- ESTRUCTURA Y LAYOUT --- */
.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAVEGACIÓN --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
  background-color: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nav Menu Desktop */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #C7B7FB;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(-20px);
}

.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav {
  list-style: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-nav a {
  color: #FFF;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
}

/* Mobile Toggle Animation */
.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 48rem) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-btn {
    display: none !important;
  }
  .logo img {
    height: 1.5rem;
  }
}

#mobile-sticky-btn {
  display: none;
}

@media (max-width: 48rem) {
  #mobile-sticky-btn {
    display: inline-flex;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    z-index: 900;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #mobile-sticky-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
}

.logo img {
  height: 2.25rem;
  width: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  color: #FFF !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #9C5FFF 0%, #6118CD 100%);
  box-shadow: 
    0 8px 25px rgba(129, 63, 232, 0.5), /* Outer Glow */
    inset 0 2px 4px rgba(255, 255, 255, 0.5), /* Top inner highlight */
    inset 0 -3px 6px rgba(0, 0, 0, 0.4); /* Bottom inner shadow */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(180deg, #A875FF 0%, #722DD4 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 15px 35px rgba(156, 95, 255, 0.7),
    inset 0 3px 6px rgba(255, 255, 255, 0.6),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 4px 15px rgba(129, 63, 232, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover::after {
  animation: shineSweep 1.5s ease-in-out forwards;
}

@keyframes shineSweep {
  0% { left: -150%; }
  100% { left: 200%; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- HERO SECTION --- */
.hero {
  padding: 8.75rem 0 3.75rem 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url('./assets/fondo-negro.jpg') no-repeat center center fixed;
  background-size: cover;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.75rem;
}

.hero-text {
  flex: 1;
  max-width: 40.625rem;
}

.hero-text h1 {
  font-size: 4rem;
  /* Ajustado según developer tools */
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-text .text-accent.pero {
  font-style: italic;
  font-size: 2.25rem;
  position: absolute;
  transform: translateY(0.125rem) rotate(339deg);
  margin-left: 0.5rem;
}

.hero-text .text-underline {
  color: var(--accent-purple);
  font-style: italic;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-text .text-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  /* Sube la línea para que quede detrás del descendente de la p */
  width: 100%;
  height: 0.375rem;
  background-color: var(--accent-purple);
  z-index: -1;
  /* Línea detrás del texto */
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.75rem;
  /* Alto de línea exacto de Figma */
  color: #FFFFFF;
  max-width: 30rem;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image .main-mockup {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}

/* --- FLECHA SCROLL CIRCULAR --- */
.scroll-down {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  width: 8.75rem;
  height: 8.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.circular-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateText 15s linear infinite;
}

.circular-text text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  fill: var(--text-gray);
  letter-spacing: 0.05em;
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.scroll-arrow {
  width: 2rem;
  height: 2rem;
  z-index: 2;
}

/* --- SECCIÓN EL PROBLEMA --- */
.problema {
  background-color: #EEEAFD;
  color: var(--bg-dark);
  padding: 6.25rem 0;
  position: relative;
  overflow: hidden;
}

/* Efecto de ruido SVG para la sección */
.problema::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Círculos con desenfoque */
.glow-circle {
  position: absolute;
  width: 28.75rem;
  height: 28.75rem;
  border-radius: 50%;
  background-color: var(--accent-purple);
  /* Usamos el acento, el blur y la opacidad lo mezclarán con el fondo */
  filter: blur(15.625rem);
  /* 500 en Figma suele equivaler a ~15.625rem en radio de CSS */
  z-index: 0;
}

.circle-left {
  top: -6.25rem;
  left: -12.5rem;
}

.circle-right {
  bottom: -9.375rem;
  right: -12.5rem;
}

.problema .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
  /* Para que quede por encima de los círculos borrosos y el ruido */
}

.problema-col-izq {
  grid-column: span 8;
}

.problema-col-der {
  grid-column: span 4;
}

.badge {
  display: inline-block;
  background-color: transparent;
  color: #813FE8;
  border: 1px solid #813FE8;
  padding: 0.375rem 1rem;
  border-radius: 624.938rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.problema h2 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-purple-1 {
  color: #813FE8;
}

.problema-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3f3f46;
}

/* --- SECCIÓN 3 PROBLEMAS --- */
.problemas-lista {
  background-color: #FFFFFF;
  padding: 6.25rem 0;
  color: var(--bg-dark);
}

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.problema-card {
  grid-column: span 4;
}

.problema-icono {
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.problema-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
}

.problema-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4A4A55;
}

.problema-text b {
  color: var(--bg-dark);
  font-weight: 700;
}

/* --- SECCIÓN ENFOQUE --- */
.enfoque {
  background: linear-gradient(135deg, #EBE6FC, #FDFDFF);
  padding: 8.75rem 0;
  color: var(--bg-dark);
}

.enfoque .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.enfoque-col-izq {
  grid-column: 1 / span 4;
}

.enfoque-col-der {
  grid-column: 6 / span 7;
}

.enfoque-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3f3f46;
}

.enfoque-col-der h2 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- SECCIÓN BENEFICIOS --- */
.beneficios {
  background-color: #FFFFFF;
  padding: 6.25rem 0;
  color: var(--bg-dark);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.beneficio-card {
  grid-column: span 4;
}

.beneficio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.beneficio-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4A4A55;
}

/* --- SECCIÓN METODOLOGÍA (DARK) --- */
.metodologia {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 8.75rem 0;
}

.text-center {
  text-align: center;
}

.metodologia-header {
  max-width: 50rem;
  margin: 0 auto 5rem auto;
}

.metodologia-header h2 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.text-bold {
  font-weight: 700 !important;
}

.badge-dark {
  border-color: rgba(171, 142, 247, 0.3);
  color: var(--accent-purple);
}

.metodologia-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-top: 1.5rem;
}

/* TABLA COMPARATIVA */
.tabla-comparativa {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 6.25rem;
  box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.3);
}

.tabla-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Columna Destacada */
.tabla-col.col-destacada {
  background-color: rgba(171, 142, 247, 0.04);
  border-left: 1px solid rgba(171, 142, 247, 0.15);
  border-right: 1px solid rgba(171, 142, 247, 0.15);
}

.tabla-header-row .col-destacada {
  background-color: #813FE8;
  border-left: 1px solid #813FE8;
  border-right: 1px solid #813FE8;
}

.tabla-row:last-child {
  border-bottom: none;
}

.tabla-col {
  padding: 2rem 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tabla-col:last-child {
  border-right: none;
}

.tabla-header-row {
  background-color: rgba(255, 255, 255, 0.03);
}

.tabla-header-row .tabla-col {
  padding: 1.5rem 0.5rem;
}

.tabla-header-row strong {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.tabla-col span {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.bg-purple {
  background-color: #813FE8;
  color: #FFF;
}

.bg-purple span {
  color: rgba(255, 255, 255, 0.8);
}

/* PASOS */
.metodologia-pasos {
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}

.paso {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.paso-num {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  color: #E7E7E7;
}

.paso-content h3 {
  font-size: 1.25rem;
  color: #C7B7FB;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.paso-content ul {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.paso-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: #E7E7E7;
}

.paso-content li strong {
  color: var(--text-light);
}

/* --- PORTAFOLIO INTRO --- */
.portafolio-intro {
  background-color: #F8F7FF;
  padding: 8.75rem 0 6.25rem 0;
  color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.portafolio-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

.portafolio-intro .container {
  position: relative;
  z-index: 2;
}

.badge-portafolio {
  border-color: rgba(114, 45, 212, 0.3);
  color: #722DD4;
}

.portafolio-header {
  max-width: 50rem;
}

.portafolio-header h2 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.portafolio-header p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4A4A55;
}

/* --- PORTAFOLIO GALERÍA --- */
.portafolio-galeria {
  background-color: #FFFFFF;
  padding-top: 3.75rem;
  padding-bottom: 7.5rem;
}

.portafolio-item {
  position: relative;
  margin-bottom: 3.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
  cursor: default;
}

.portafolio-item:last-child {
  margin-bottom: 0;
}

.portafolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.portafolio-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portafolio-item:hover .portafolio-img {
  transform: scale(1.05);
}

.portafolio-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  color: #FFF;
  z-index: 2;
}

.portafolio-tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.375rem 1rem;
  border-radius: 624.938rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(0.25rem);
}

.portafolio-overlay h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
}

/* --- CTA & FOOTER --- */
.cta-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 10rem 0 6.25rem 0;
}

.cta-content {
  max-width: 50rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #9263F2;
  color: #FFF;
  padding: 1rem 2.25rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #7A4CD9;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.25rem rgba(146, 99, 242, 0.3);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}


.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-gray);
  padding-bottom: 5rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-mission {
  max-width: 37.5rem;
  margin: 0 auto 2.5rem auto;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS PEQUEÑAS)
================================================== */
@media (max-width: 48rem) {

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.2 !important;
  }

  /* Contenedores */
  .container {
    padding: 0 1.5rem;
  }

  /* Header & Hero */
  .site-header {
    padding: 1rem 0;
  }

  .nav-links {
    display: none;
    /* Menú hamburguesa pendiente */
  }

  .hero {
    padding: 7rem 0 3rem 0;
    overflow-x: hidden;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.05;
  }

  .hero-text .text-accent.pero {
    font-size: 1.25rem;
    transform: translateY(-0.312rem) translateX(0.312rem) rotate(339deg);
  }

  .hero-text .text-underline::after {
    bottom: 0.25rem;
    height: 0.25rem;
  }

  .hero p {
    font-size: 1.125rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 80%;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    padding-bottom: 3.75rem;
  }

  .hero-image {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 12.5rem;
    height: 7.5rem;
    margin: 0;
    z-index: -1;
  }

  .hero-image .main-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }

  .scroll-down {
    bottom: -2.5rem;
    left: initial;
    width: 8.125rem;
    height: 8.125rem;
    right: 0;
  }

  .floating-card {
    display: none;
  }

  /* El Problema */
  .problema {
    padding: 3.75rem 0;
  }

  .problema .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .problema-col-izq,
  .problema-col-der {
    grid-column: span 1;
  }

  .problema h2 {
    font-size: 2rem;
  }

  /* Lista 3 Problemas */
  .problemas-lista {
    padding: 3.75rem 0;
  }

  .problemas-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .problema-card {
    grid-column: span 1;
  }

  /* Enfoque */
  .enfoque {
    padding: 3.75rem 0;
  }

  .enfoque .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .enfoque-col-der,
  .enfoque-col-izq {
    grid-column: span 1;
  }

  .enfoque-col-der {
    order: -1;
    /* Mover el H2 arriba del párrafo en móvil */
  }

  .enfoque h2 {
    font-size: 2rem;
  }

  /* Beneficios */
  .beneficios {
    padding: 3.75rem 0;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .beneficio-card h3 {
    margin-bottom: 0.5rem;
  }

  .beneficio-card {
    grid-column: span 1;
  }

  /* Metodología */
  .metodologia {
    padding: 5rem 0;
  }

  .metodologia-header h2 {
    font-size: 2rem;
  }

  .metodologia-intro {
    margin-top: 0.5rem;
    line-height: 1.3;
  }

  .tabla-comparativa {
    overflow-x: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(171, 142, 247, 0.3);
  }

  .tabla-row {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    position: relative;
  }

  .tabla-col:first-child {
    display: none;
  }

  .tabla-col {
    padding: 1.25rem 0.75rem;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Efecto Versus creativo en el centro */
  .tabla-row:not(.tabla-header-row)::after {
    content: "VS";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-dark);
    color: var(--accent-purple);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(171, 142, 247, 0.3);
    z-index: 5;
  }

  .metodologia-header h2 br {
    display: none;
  }

  .paso {
    flex-direction: column;
    gap: 1rem;
  }

  .paso-num {
    font-size: 3rem;
  }

  /* Portafolio */
  .portafolio-intro {
    padding: 3.75rem 0;
  }

  .portafolio-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .portafolio-galeria {
    padding-top: 0;
    padding-bottom: 0;
  }

  .portafolio-tag {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
  }

  .portafolio-galeria .container {
    padding: 0;
  }

  .portafolio-item {
    margin-bottom: 0;
    border-radius: 0;
  }

  .portafolio-overlay {
    bottom: 1rem;
    left: 1.25rem;
    right: 1.5rem;
  }

  .portafolio-overlay h3 {
    font-size: 1.5rem;
  }

  /* CTA y Footer */
  .cta-footer {
    padding: 6.25rem 0 3.75rem 0;
  }

  .cta-content h2 {
    font-size: 2.25rem;
  }

  .btn-primary, .btn-outline {
    justify-content: center;
    width: auto;
  }

  .btn-large {
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
  }
}

/* --- ANIMACIONES DE SCROLL (REVEAL) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- SECCIÓN ÚLTIMOS ARTÍCULOS --- */
.ultimos-articulos {
  padding: 7.5rem 0;
  background: linear-gradient(135deg, #EBE6FC, #FDFDFF);
  color: var(--bg-dark);
}

.ultimos-articulos-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--bg-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 48rem) {
  .ultimos-articulos {
    padding: 4rem 0;
  }
  .ultimos-articulos-title {
    font-size: 2.125rem;
  }
  .articulos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}