/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colores del logo ==========*/
  --color-rojo-coral: #F05454;
  --color-verde-lima: #7FD856;
  --color-azul-cyan: #0EA5E9;
  --color-naranja: #FFB84D;
  --color-gris-oscuro: #3E4A5E;

  /*========== Colores base ==========*/
  --color-negro: #000000;
  --color-negro-card: #0A0A0A;
  --color-negro-hover: #111111;
  --color-blanco: #FFFFFF;
  --color-gris-medio: #A0AAB8;
  --color-gris-claro: #CCCCCC;

  /*========== Fuente y tipografía ==========*/
  --font-family: 'Fira Code', 'Courier New', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /*========== Espaciado ==========*/
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /*========== Bordes y sombras ==========*/
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  --shadow-glow-rojo: 0 0 20px rgba(240, 84, 84, 0.3);
  --shadow-glow-verde: 0 0 20px rgba(127, 216, 86, 0.3);
  --shadow-glow-azul: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-glow-naranja: 0 0 20px rgba(255, 184, 77, 0.3);

  /*========== Transiciones ==========*/
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /*========== Z-index ==========*/
  --z-fixed: 100;
  --z-modal: 1000;
  --z-particles: -1;
}

/*=============== RESET Y BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-blanco);
  background-color: var(--color-negro);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--color-negro);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-verde-lima), var(--color-azul-cyan));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-rojo-coral), var(--color-naranja));
}

/* Selección de texto */
::selection {
  background-color: var(--color-verde-lima);
  color: var(--color-negro);
}

::-moz-selection {
  background-color: var(--color-verde-lima);
  color: var(--color-negro);
}

/*=============== TIPOGRAFÍA ===============*/
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-gris-claro);
}

a {
  color: var(--color-azul-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-verde-lima);
}

ul {
  list-style: none;
}

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

/*=============== CLASES REUTILIZABLES ===============*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section__prompt {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-verde-lima);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-medium);
}

.section__prompt::before {
  content: '$ ';
  color: var(--color-rojo-coral);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  margin-bottom: var(--space-lg);
  color: var(--color-blanco);
}

.section__description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-gris-claro);
  font-size: var(--font-size-lg);
}

.highlight {
  color: var(--color-rojo-coral);
  position: relative;
}

.comment {
  color: var(--color-gris-oscuro);
  font-style: italic;
}

.code-bracket {
  font-size: 2em;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-rojo-coral), var(--color-naranja));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*=============== BOTONES ===============*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border: 2px solid;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn__icon {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.btn-primary {
  background-color: var(--color-rojo-coral);
  border-color: var(--color-rojo-coral);
  color: var(--color-blanco);
}

.btn-primary:hover {
  background-color: transparent;
  box-shadow: var(--shadow-glow-rojo);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-azul-cyan);
  color: var(--color-azul-cyan);
}

.btn-secondary:hover {
  background-color: var(--color-azul-cyan);
  color: var(--color-negro);
  box-shadow: var(--shadow-glow-azul);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/*=============== PARTICLES BACKGROUND ===============*/
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  opacity: 0.3;
}

/*=============== HEADER & NAVIGATION ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  border-bottom: 1px solid var(--color-gris-oscuro);
  transition: var(--transition-normal);
}

.header.scroll-header {
  box-shadow: 0 4px 20px rgba(127, 216, 86, 0.1);
  border-bottom-color: var(--color-verde-lima);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition-fast);
}

.logo-img:hover {
  filter: drop-shadow(var(--shadow-glow-verde));
}

.nav__list {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav__link {
  color: var(--color-gris-claro);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  position: relative;
  transition: var(--transition-fast);
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-verde-lima), var(--color-azul-cyan));
  transition: var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-blanco);
}

.nav__link:hover::before,
.nav__link.active::before {
  width: 100%;
}

.nav__cta {
  background-color: var(--color-rojo-coral);
  color: var(--color-blanco);
  border-radius: var(--border-radius-md);
  padding: var(--space-sm) var(--space-lg);
}

.nav__cta:hover {
  box-shadow: var(--shadow-glow-rojo);
  transform: translateY(-2px);
}

.nav__cta::before {
  display: none;
}

/* Live indicator - punto rojo animado */
.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ff0000;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* Mobile menu */
.nav__toggle,
.nav__close {
  display: none;
}

/*=============== HERO SECTION ===============*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__prompt {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-verde-lima);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-verde-lima);
  border-radius: var(--border-radius-sm);
  background-color: rgba(127, 216, 86, 0.05);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}

.typing-text {
  display: inline;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--color-verde-lima);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero__description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
  color: var(--color-gris-claro);
}

.hero__cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-gris-medio);
  font-size: var(--font-size-sm);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
  font-size: var(--font-size-xl);
  color: var(--color-verde-lima);
}

/*=============== WHY US SECTION ===============*/
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background-color: var(--color-negro-card);
  padding: var(--space-2xl);
  border: 1px solid var(--color-gris-oscuro);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-rojo-coral), var(--color-verde-lima), var(--color-azul-cyan));
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--color-verde-lima);
  box-shadow: var(--shadow-glow-verde);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--color-blanco);
}

.feature-card__description {
  color: var(--color-gris-claro);
  line-height: 1.6;
}

/*=============== SERVICES SECTION ===============*/
.services {
  background: linear-gradient(180deg, transparent, rgba(127, 216, 86, 0.02), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.service-card {
  background-color: var(--color-negro-card);
  padding: var(--space-2xl);
  border: 1px solid var(--color-gris-oscuro);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-rojo-coral), var(--color-naranja), var(--color-verde-lima), var(--color-azul-cyan));
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: var(--color-verde-lima);
  box-shadow: var(--shadow-glow-verde);
  transform: translateY(-5px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.service-card__icon {
  font-size: 2.5rem;
}

.service-card__number {
  font-size: var(--font-size-sm);
  color: var(--color-gris-oscuro);
  font-weight: var(--font-weight-bold);
}

.service-card__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-blanco);
}

.service-card__description {
  color: var(--color-gris-claro);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.service-card__features {
  margin-bottom: var(--space-xl);
}

.service-card__features li {
  color: var(--color-gris-claro);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.service-card__features li::before {
  content: '✓';
  color: var(--color-verde-lima);
  margin-right: var(--space-sm);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-azul-cyan);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-verde-lima);
  gap: var(--space-md);
}

.arrow {
  transition: var(--transition-fast);
}

/*=============== DUALITY SECTION ===============*/
.duality {
  background: radial-gradient(circle at center, rgba(127, 216, 86, 0.05), transparent);
}

.duality__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.duality__description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  color: var(--color-gris-claro);
}

.duality__topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.topic-tag {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(127, 216, 86, 0.1);
  border: 1px solid var(--color-verde-lima);
  border-radius: var(--border-radius-md);
  color: var(--color-verde-lima);
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.topic-tag:hover {
  background-color: var(--color-verde-lima);
  color: var(--color-negro);
}

.duality__quote {
  font-style: italic;
  color: var(--color-gris-medio);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-verde-lima);
}

.duality__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.planet {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, var(--color-azul-cyan), var(--color-rojo-coral));
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.5);
  animation: rotate 20s linear infinite;
}

.orbit {
  width: 250px;
  height: 250px;
  border: 2px dashed var(--color-gris-oscuro);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 30s linear infinite reverse;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
}

.stars::before,
.stars::after {
  content: '✦';
  position: absolute;
  color: var(--color-verde-lima);
  font-size: var(--font-size-xl);
  animation: twinkle 3s infinite;
}

.stars::before {
  top: 20%;
  left: 10%;
}

.stars::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/*=============== BLOG LATEST SECTION ===============*/
.blog-latest {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05), transparent);
}

.blog-latest__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.blog-card {
  background-color: var(--color-negro-card);
  border: 1px solid rgba(127, 216, 86, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--color-verde-lima);
  box-shadow: var(--shadow-glow-verde);
  transform: translateY(-5px);
}

.blog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.blog-card__category {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-gris-medio);
}

.blog-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-blanco);
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-card__title a:hover {
  color: var(--color-verde-lima);
}

.blog-card__excerpt {
  color: var(--color-gris-claro);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(127, 216, 86, 0.1);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-gris-medio);
}

.meta-icon {
  font-size: var(--font-size-sm);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-verde-lima);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.blog-card__link:hover {
  gap: var(--space-md);
}

.blog-card__link .arrow {
  transition: var(--transition-fast);
}

.blog-latest__cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

.loading-message {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-gris-medio);
  font-size: var(--font-size-lg);
}

/*=============== PROCESS SECTION ===============*/
.process__timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: var(--space-3xl);
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-verde-lima), var(--color-azul-cyan));
}

.process__step {
  position: relative;
  margin-bottom: var(--space-3xl);
  padding-left: var(--space-2xl);
}

.process__number {
  position: absolute;
  left: -50px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-rojo-coral), var(--color-naranja));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-blanco);
  box-shadow: var(--shadow-glow-rojo);
}

.process__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-blanco);
}

.process__description {
  color: var(--color-gris-claro);
  line-height: 1.6;
}

/*=============== CTA FINAL SECTION ===============*/
.cta-final {
  background: radial-gradient(circle at center, rgba(240, 84, 84, 0.1), transparent);
  text-align: center;
}

.cta-final__content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-final__title {
  margin-bottom: var(--space-lg);
}

.cta-final__description {
  font-size: var(--font-size-lg);
  color: var(--color-gris-claro);
  margin-bottom: var(--space-2xl);
}

.cta-final__contact {
  margin-top: var(--space-xl);
  font-size: var(--font-size-lg);
}

.cta-final__contact a {
  color: var(--color-azul-cyan);
  font-weight: var(--font-weight-medium);
}

.cta-final__contact a:hover {
  color: var(--color-verde-lima);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--color-negro-card);
  border-top: 1px solid var(--color-gris-oscuro);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  width: 150px;
  margin-bottom: var(--space-md);
}

.footer__description {
  color: var(--color-gris-claro);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

.footer__rfc {
  color: var(--color-gris-oscuro);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.footer__title {
  color: var(--color-blanco);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-lg);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: var(--color-gris-claro);
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-verde-lima);
  padding-left: var(--space-xs);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gris-claro);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.footer__icon {
  font-size: var(--font-size-lg);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gris-oscuro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright,
.footer__made-with {
  color: var(--color-gris-oscuro);
  font-size: var(--font-size-sm);
}

/*=============== SCROLL TO TOP ===============*/
.scroll-top {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  width: 50px;
  height: 50px;
  background-color: var(--color-verde-lima);
  color: var(--color-negro);
  border: none;
  border-radius: 50%;
  font-size: var(--font-size-2xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-glow-verde);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(127, 216, 86, 0.5);
}

/*=============== RESPONSIVE DESIGN ===============*/
@media screen and (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

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

  .duality__visual {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 3.5rem;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  /* Mobile Navigation */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--space-3xl) var(--space-xl);
    transition: var(--transition-normal);
    border-left: 1px solid var(--color-verde-lima);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .nav__link {
    font-size: var(--font-size-lg);
  }

  .nav__close {
    display: block;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
    color: var(--color-blanco);
    cursor: pointer;
  }

  .nav__toggle {
    display: block;
    cursor: pointer;
  }

  .nav__toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-blanco);
    position: relative;
    transition: var(--transition-fast);
  }

  .nav__toggle-icon::before,
  .nav__toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--color-blanco);
    transition: var(--transition-fast);
  }

  .nav__toggle-icon::before {
    top: -8px;
  }

  .nav__toggle-icon::after {
    top: 8px;
  }

  .logo-img {
    height: 35px;
  }

  .hero__cta {
    flex-direction: column;
  }

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

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .blog-latest__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process__timeline {
    padding-left: var(--space-2xl);
  }

  .process__number {
    left: -35px;
    width: 40px;
    height: 40px;
    font-size: var(--font-size-sm);
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
  }

  .btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
  }
}

/*=============== BOTÓN FLOTANTE WHATSAPP ===============*/
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-normal);
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  animation: none;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-verde-lima), #5fb848);
  border: 2px solid var(--color-verde-lima);
  border-radius: 50%;
  box-shadow: var(--shadow-glow-verde);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #8fe070, var(--color-verde-lima));
  box-shadow: 0 0 30px rgba(127, 216, 86, 0.5);
  transform: scale(1.05);
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-verde-lima), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.whatsapp-btn:hover::before {
  opacity: 0.3;
  animation: spin 3s linear infinite;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-negro);
  position: relative;
  z-index: 1;
}

.whatsapp-tooltip {
  background-color: var(--color-negro-card);
  border: 1px solid var(--color-verde-lima);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-blanco);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  pointer-events: none;
  box-shadow: var(--shadow-glow-verde);
}

.whatsapp-tooltip::before {
  content: '$ ';
  color: var(--color-verde-lima);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Animación de pulso */
@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/*=============== ARTICLE CTA BOX ===============*/
.article-cta-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(127, 216, 86, 0.1));
  border: 2px solid var(--color-azul-cyan);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.article-cta-box .live-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ff0000;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

.article-cta-box h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-blanco);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.article-cta-box p {
  color: var(--color-gris-claro);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.article-cta-box .btn {
  position: relative;
  z-index: 1;
  margin-top: var(--space-md);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none; /* Ocultar tooltip en móvil para no obstruir */
  }
}

@media screen and (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}
