/* ============== IMPORTACIÓN DE FUENTES Y SÍMBOLOS ============== */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* ============== VARIABLES CSS - NUEVO SISTEMA DE DISEÑO ============== */
:root {
  /* --- Paleta de Colores Principal (Fusión Ricco + Ecoproyectos) --- */
  --color-primary-gradient: linear-gradient(95deg, #a66bff, #7e4fd7);
  --color-primary-purple: #7e4fd7;
  --color-primary-pink: #a66bff;
  --color-accent-glow: rgba(166, 107, 255, 0.3);

  /* --- Colores de UI y Roles --- */
  --color-dark-bg: #0A192F;
  /* Azul Navy muy oscuro */
  --color-dark-bg-alt: #172A45;
  /* Azul un poco más claro para cards */
  --color-heading-light: #E6F1FF;
  /* Blanco azulado para títulos */
  --color-text-light-theme: #CCD6F6;
  /* Gris azulado claro para texto */
  --color-text-subtle: #8892B0;
  /* Gris más apagado para descripciones */
  --color-heading-dark-theme: #0A192F;
  --color-text-dark-theme: #5A646A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0F4F8;
  /* Gris muy frío y sutil */
  --color-border: #DDE4E9;
  --color-white: #FFFFFF;

  /* --- Tipografía y Layout --- */
  --font-primary: 'Onest', sans-serif;
  --container-width: 1140px;
  --section-padding: 6rem 0;
  --border-radius: 16px;
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --transition: all 0.3s ease-in-out;
}

/* ============== RESET Y CONFIGURACIÓN GLOBAL ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  color: var(--color-text-light-theme);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  color: var(--color-heading-light);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* ============== COMPONENTES GLOBALES ============== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  line-height: 1.2;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-subtle);
  max-width: 700px;
  margin: 1rem auto 0 auto;
}

.section-eyebrow {
  display: block;
  font-weight: 600;
  color: var(--color-primary-pink);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cta-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.cta-button {
  background: var(--color-primary-gradient);
  color: var(--color-white);
  box-shadow: 0 5px 15px var(--color-accent-glow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--color-accent-glow);
}

.outline-button {
  background-color: transparent;
  color: var(--color-primary-pink);
  border-color: var(--color-primary-pink);
}

.outline-button:hover {
  background-color: rgba(166, 107, 255, 0.1);
}

.text-gradient {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============== HEADER Y SIDEBAR ============== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.4s ease;
}

.nav-capsule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background-color: rgba(23, 42, 69, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .nav-capsule {
  width: 100%;
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-link {
    position: relative;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light-theme);
    transition: color 0.3s ease, background-color 0.3s ease;
  }

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions .cta-button {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 991px) {
  .nav-actions .cta-button {
    display: none;
  }
}

.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(166, 107, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: var(--color-primary-pink);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: var(--color-heading-light);
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 320px;
  height: 100vh;
  z-index: 999;
  background-color: var(--color-dark-bg-alt);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  display: flex;
  flex-direction: column;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
  visibility: visible;
  box-shadow: var(--shadow);
}

body.sidebar-open .hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-dark-bg-alt);
  gap: 0;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.sidebar-open .hamburger:hover {
  transform: rotate(90deg);
}

body.sidebar-open .hamburger span {
  background-color: var(--color-primary-pink);
}

body.sidebar-open .hamburger span:nth-child(1) {
  transform: translateY(1px) rotate(45deg);
}

body.sidebar-open .hamburger span:nth-child(2) {
  transform: translateY(-1px) rotate(-45deg);
}

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

.sidebar-nav ul {
  list-style: none;
  text-align: left;
}

.sidebar-link {
  display: block;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-heading-light);
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.sidebar-link:hover {
  color: var(--color-primary-pink);
}

/* ============== SECCIONES CLARAS Y OSCURAS ============== */
.dark-section {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light-theme);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-heading-light);
}

.light-section {
  background-color: var(--color-bg-alt);
  color: var(--color-text-dark-theme);
}

.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4 {
  color: var(--color-heading-dark-theme);
}

.light-section .section-eyebrow {
  color: var(--color-primary-purple);
}

.light-section .section-subtitle {
  color: var(--color-text-dark-theme);
}

/* ============== HERO SECTION ============== */
.hero {
  padding: 180px 0 120px 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-primary-gradient);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  animation-delay: -10s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 15s;
  animation-delay: -7s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 20s;
  animation-delay: -1s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 13s;
  animation-delay: -12s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 16s;
  animation-delay: -5s;
}

.particle:nth-child(7) {
  left: 5%;
  animation-duration: 14s;
  animation-delay: -8s;
}

.particle:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
  animation-delay: -14s;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.15;
}

.hero-blob.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary-purple);
  top: -150px;
  left: -200px;
}

.hero-blob.blob-2 {
  width: 450px;
  height: 450px;
  background: var(--color-primary-pink);
  bottom: -200px;
  right: -200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.user-avatars {
  display: flex;
}

.user-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-dark-bg);
  margin-left: -12px;
}

.user-avatars img:first-child {
  margin-left: 0;
}

.rating-info .stars {
  color: #FFC107;
  font-size: 1.1rem;
  line-height: 1;
}

.rating-info span {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
}

.hero-text h1 {
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-subtle);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-container {
  position: relative;
}

.hero-image-container img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
}

.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(23, 42, 69, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(166, 107, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: subtle-float 4s ease-in-out infinite;
}

.hero-floating-badge .material-symbols-outlined {
  font-size: 2rem;
  color: var(--color-primary-pink);
}

.hero-floating-badge p {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading-light);
}

@keyframes subtle-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

#badge-code {
  bottom: 20px;
  left: -30px;
  animation-delay: 0s;
}

#badge-ia {
  top: 20px;
  right: -40px;
  animation-delay: -1s;
}

#badge-uiux {
  bottom: 80px;
  right: -60px;
  animation-delay: -2.5s;
}

@media (max-width: 768px) {
  .hero-floating-badge {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .hero-floating-badge .material-symbols-outlined {
    font-size: 1.5rem;
  }

  .hero-floating-badge p {
    font-size: 0.8rem;
  }

  #badge-code {
    left: 10px;
    bottom: 10px;
  }

  #badge-ia {
    right: 10px;
    top: 10px;
  }

  #badge-uiux {
    display: none;
  }


}

/* ============== ABOUT SECTION V3 ============== */
.about-v3-section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
}

.about-v2-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark-bg);
  z-index: 0;
}

.about-v2-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.88);
}

.about-v3-section .container {
  position: relative;
  z-index: 1;
}

.about-v3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-v3-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-v3-text {
  text-align: center;
}

@media (min-width: 992px) {
  .about-v3-text {
    text-align: left;
  }
}

.about-v3-section .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.about-v3-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  color: var(--color-text-light-theme);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-v3-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.about-v3-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  text-align: left;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(23, 42, 69, 0.7);
  border-color: rgba(166, 107, 255, 0.4);
}

.stat-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-primary-pink);
}

.stat-number {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* ============== SERVICES GRID SECTION ============== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card-v2 {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary-purple);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: grid;
  place-items: center;
}

.service-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-white);
}

.service-card-v2 h3 {
  margin-bottom: 0.75rem;
}

/* ============== FASTALK SECTION ============== */
.fastalk-section {
  padding: 8rem 0;
  text-align: center;
  background: var(--color-primary-gradient);
}

.fastalk-content {
  max-width: 700px;
  margin: 0 auto;
}

.fastalk-logo-wrapper {
  margin-bottom: 2rem;
}

.fastalk-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.fastalk-description {
  font-size: 1.2rem;
  color: var(--color-heading-light);
  margin-bottom: 2.5rem;
}

.cta-button-white {
  background-color: var(--color-white);
  color: var(--color-primary-purple);
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button-white:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-3px);
}

/* ============== PROCESS TIMELINE ============== */
.process-timeline-section {
  padding-bottom: 8rem;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: var(--color-dark-bg-alt);
  border-radius: 2px;
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--color-primary-gradient);
  border-radius: 2px;
  z-index: 2;
  height: 0;
  transition: height 0.1s ease-out;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 250px;
}

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-dark-bg);
  border: 2px solid var(--color-dark-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s ease;
}

.timeline-dot::before {
  content: attr(data-step);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text-subtle);
  transition: color 0.4s ease;
}

.timeline-step.is-visible .timeline-dot {
  border-color: var(--color-primary-pink);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.timeline-step.is-visible .timeline-dot::before {
  color: var(--color-primary-pink);
}

.timeline-content {
  padding: 2rem;
  border-radius: var(--border-radius);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.timeline-step.is-visible .timeline-content {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step--right .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-step--left .timeline-content {
  grid-column: 1;
  text-align: right;
}

.step-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary-pink);
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.step-description {
  font-size: 1.1rem;
  color: var(--color-text-subtle);
  line-height: 1.7;
  max-width: 400px;
}

.timeline-step--right .step-description {
  margin-right: auto;
}

.timeline-step--left .step-description {
  margin-left: auto;
}

@media (max-width: 768px) {

  .process-timeline::after,
  .timeline-progress-bar {
    left: 30px;
  }

  .timeline-step {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    min-height: auto;
    margin-bottom: 3rem;
  }

  .timeline-dot {
    grid-column: 1;
    width: 50px;
    height: 50px;
  }

  .timeline-content {
    grid-column: 2;
    text-align: left !important;
    padding: 0;
    margin-left: 20px;
  }

  .step-description {
    margin-left: 0 !important;
  }
}

/* ============== FINAL CTA & CONTACT ============== */
.cta-final-v2-section {
  position: relative;
  padding: 10rem 0;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark-bg);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--color-text-subtle);
  margin-bottom: 3rem;
}

.cta-button-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--color-primary-gradient);
  color: var(--color-white);
  border: none;
  box-shadow: 0 10px 30px var(--color-accent-glow);
  transition: all 0.3s ease;
}

.cta-button-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--color-accent-glow);
}

.contact-v2-section {
  padding: 8rem 0;
}

.contact-v2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .contact-v2-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info .section-title,
.contact-info .section-eyebrow {
  text-align: left;
  margin-left: 0;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
  margin: 1.5rem 0 2.5rem 0;
}

.contact-list-v2 {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light-theme);
}

.contact-item .material-symbols-outlined {
  color: var(--color-primary-pink);
  font-size: 1.8rem;
}

.contact-item a:hover {
  color: var(--color-primary-pink);
}

.contact-form-wrapper {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 107, 255, 0.2);
}

.contact__founder-info {
  margin-top: 2.5rem;
  text-align: left;
}

.contact__founder-info h4 {
  font-size: 1.2rem;
  color: var(--color-heading-light);
  margin-bottom: 1rem;
}

.founder__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.founder__name {
  font-weight: 600;
  color: var(--color-heading-light);
}

.founder__title {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  margin-bottom: 1rem;
}

.founder__bio {
  font-size: 0.95rem;
  color: var(--color-text-subtle);
}

/* ============== FOOTER ============== */
.footer {
  padding-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: rgba(126, 79, 215, 0.05);
  border-radius: 50%;
  filter: blur(150px);
  bottom: -200px;
  left: -150px;
  z-index: 0;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.footer-logo img {
  height: 45px;
  margin-bottom: 1.5rem;
}

.footer-description {
  margin-bottom: 2rem;
  max-width: 300px;
  color: var(--color-text-subtle);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-text-subtle);
}

.footer-links a:hover {
  color: var(--color-primary-pink);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--color-text-subtle);
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--color-primary-pink);
}

.social-icons svg {
  fill: currentColor;
}

.footer-bottom {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: var(--color-text-subtle);
}

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

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ============== ANIMACIONES Y SCROLLBAR ============== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.service-grid .service-card-v2:nth-child(1) {
  transition-delay: 0.1s;
}

.service-grid .service-card-v2:nth-child(2) {
  transition-delay: 0.2s;
}

.service-grid .service-card-v2:nth-child(3) {
  transition-delay: 0.3s;
}

.service-grid .service-card-v2:nth-child(4) {
  transition-delay: 0.15s;
}

.service-grid .service-card-v2:nth-child(5) {
  transition-delay: 0.25s;
}

.service-grid .service-card-v2:nth-child(6) {
  transition-delay: 0.35s;
}

/* ======================================================= */
/* ============ ESTILOS HEADER OBRA MAESTRA v3 ============= */
/* ======================================================= */

/* --- Contenedor Principal del Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  /* Espacio para que respire el contenedor interno */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- El contenedor que se transforma en cápsula --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Estado Inicial (Full-width, transparente) */
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  background-color: transparent;
  backdrop-filter: blur(0px);
  border: 1px solid transparent;
  border-radius: 50px;

  /* Transición súper suave para la transformación */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ESTADO SCROLLED (La Magia de la Cápsula) --- */
.site-header.scrolled .header-container {
  width: auto;
  /* Se encoge para ajustarse al contenido */
  margin-top: 0.5rem;
  /* Baja un poco para el efecto flotante */
  padding: 0.5rem 0.75rem;
  /* Padding interno de la cápsula */
  background-color: rgba(23, 42, 69, 0.7);
  /* Glassmorphism */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 95vw;
}


/* --- Animaciones de Entrada Orquestadas --- */
.header-logo,
.header-nav,
.header-actions {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.header-logo {
  animation-delay: 0.5s;
}

.header-nav {
  animation-delay: 0.6s;
}

.header-actions {
  animation-delay: 0.7s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Logo --- */
.header-logo {
  flex-shrink: 0;
  /* Evita que se encoja */
}

.header-logo img {
  height: 45px;
  transition: transform 0.3s ease;
}

/* --- Navegación de Escritorio --- */
.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: block;
  }

  .nav-list {
    position: relative;
    /* Clave para el highlight */
    display: flex;
    align-items: center;
  }
}

/* --- El Highlight Deslizante --- */
.nav-highlight {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(166, 107, 255, 0.15);
  border-radius: 50px;
  z-index: -1;
  opacity: 0;
  /* Inicia oculto */
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list:hover .nav-highlight {
  opacity: 1;
  /* Se muestra al entrar al área de navegación */
}

/* --- Enlaces de Navegación --- */
.nav-link {
  position: relative;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-light-theme);
  transition: color 0.3s ease;
}

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

/* --- Acciones y Botón Hamburguesa --- */
.header-actions {
  flex-shrink: 0;
  /* Evita que se encoja */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .cta-button {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 5px 15px rgba(126, 79, 215, 0.2);
}

@media (max-width: 991px) {
  .header-actions .cta-button {
    display: none;
  }
}

/* (El CSS para .hamburger y el sidebar se mantiene igual que en la versión anterior) */
.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(166, 107, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: var(--color-primary-pink);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: var(--color-heading-light);
  border-radius: 10px;
  transition: all 0.35s ease;
  transform-origin: center;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

/* ======================================================= */
/* ========= ESTILOS HERO SECTION V5 (DYNAMIC MATRIX) ====== */
/* ======================================================= */

/* --- Contenedor Principal --- */
.hero-v5 {
  min-height: 100vh;
  padding: 180px 0 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Contenido Centralizado --- */
.hero-v5-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Social Proof con Layout Vertical --- */
.hero-social-proof.stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* Espacio entre avatares, estrellas y texto */
}

.hero-social-proof.stacked .rating-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* --- Título con Animación por Palabras --- */
.hero-v5-title {
  font-size: clamp(6rem, 8vw, 6rem);
  /* Más controlado */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 1.5rem 0;
}

.hero-v5-title .title-line {
  display: block;
  overflow: hidden;
  /* Oculta el texto antes de la animación */
}

.hero-v5-title .title-line>span {
  display: block;
  transform: translateY(110%);
  animation: revealUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-v5-title .title-line:nth-of-type(1)>span {
  animation-delay: 0.5s;
}

.hero-v5-title .title-line:nth-of-type(2)>span {
  animation-delay: 0.7s;
}

@keyframes revealUp {
  to {
    transform: translateY(0);
  }
}

/* --- Seis Insignias Flotantes --- */
.hero-v5 .hero-floating-badge {
  position: absolute;
  z-index: 1;
  opacity: 0;
  animation: subtle-float 6s ease-in-out infinite, fadeIn 1s ease forwards;
}

/* Posicionamiento y retrasos de animación */
#badge-v5-code {
  top: 15%;
  left: 8%;
  animation-delay: -1s, 1s;
}

#badge-v5-ia {
  top: 35%;
  right: 10%;
  animation-delay: 0s, 1.2s;
}

#badge-v5-uiux {
  top: 60%;
  left: 15%;
  animation-delay: -3s, 1.4s;
}

#badge-v5-api {
  bottom: 10%;
  right: 25%;
  animation-delay: -5s, 1.6s;
}

#badge-v5-auto {
  top: 75%;
  right: 5%;
  animation-delay: -2s, 1.8s;
}

#badge-v5-data {
  bottom: 20%;
  left: 3%;
  animation-delay: -4s, 2s;
}

/* --- "Cosilla" extra: Guía de Scroll --- */
.scroll-down-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-subtle);
  z-index: 5;
  animation: bounce 2s infinite;
}

.scroll-down-hint .material-symbols-outlined {
  font-size: 2.5rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -15px);
  }

  60% {
    transform: translate(-50%, -7px);
  }
}


/* --- Ajustes para Móvil --- */
@media (max-width: 992px) {
  #badge-v5-api {
    display: none;
  }

  /* Ocultamos algunas en tablet */
  #badge-v5-data {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-v5 {
    padding: 150px 0 100px 0;
  }

  .hero-v5-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  #badge-v5-auto {
    display: none;
  }

  /* Ocultamos más en móvil */
  #badge-v5-uiux {
    top: 55%;
    left: 5%;
  }

  #badge-v5-code {
    top: 18%;
    left: 2%;
  }

  #badge-v5-ia {
    top: 25%;
    right: 2%;
  }
}

/* ============================================== */
/* === ESTILOS RESPONSIVE PARA BOTONES (MÓVIL) === */
/* ============================================== */

/* Se activa en pantallas de 768px de ancho o menos */
@media (max-width: 768px) {

  /* 1. Ajusta el contenedor de los botones para que los apile */
  .hero-buttons {
    flex-direction: column;
    /* Apila los botones verticalmente en lugar de en fila */
    align-items: center;
    /* Centra los botones en el contenedor */
    width: 100%;
    /* Asegura que el contenedor ocupe el ancho completo */
    gap: 1rem;
    /* Mantiene un espacio consistente entre los botones apilados */
  }

  /* 2. Aplica el 100% de ancho a los botones dentro del Hero */
  .hero-buttons .cta-button,
  .hero-buttons .outline-button {
    width: 100%;
    /* Los botones ocupan todo el ancho disponible */

    /* Opcional pero MUY recomendado:
       Un ancho máximo para que no se vean demasiado estirados en pantallas
       de móvil un poco más anchas (ej. 400px - 768px).
       Puedes ajustar o quitar este valor si lo prefieres. */
    max-width: 400px;
  }
}

/* ======================================================= */
/* ====== ESTILOS ABOUT SECTION V4 (INTEGRATED SHOWCASE) === */
/* ======================================================= */

/* --- Contenedor Principal --- */
.about-v4-section {
  padding: 8rem 0;
  position: relative;
  /* Para los blobs y partículas */
}

/* --- Contenido Centralizado --- */
.about-v4-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-v4-text {
  max-width: 800px;
  /* Limita el ancho del texto para legibilidad */
  margin-bottom: 4rem;
  /* Espacio entre el texto y la barra de stats */
}

/* --- Frase Resaltada en el Párrafo --- */
.highlight-text {
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* --- El "Stats Showcase" Horizontal --- */
.stats-showcase {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 900px;
  padding: 2rem;
  border-radius: var(--border-radius);

  /* Efecto Glassmorphism */
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* El borde con gradiente (detalle premium) */
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image:
    linear-gradient(to right, rgba(23, 42, 69, 0.5), rgba(23, 42, 69, 0.5)),
    /* Color de fondo */
    linear-gradient(to right, rgba(166, 107, 255, 0.1), rgba(126, 79, 215, 0.3));
  /* Color del borde */
}

/* --- Cada Stat dentro del Showcase --- */
.stat-item {
  flex: 1;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

/* Separadores verticales entre los stats */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(166, 107, 255, 0.3), transparent);
}

.stat-item .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-primary-pink);
}

.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  background: linear-gradient(to right, var(--color-white), var(--color-text-light-theme));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* --- Ajustes para Móvil --- */
@media (max-width: 768px) {
  .stats-showcase {
    flex-direction: column;
    /* Apila los stats verticalmente */
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  /* Oculta los separadores verticales en móvil */
  .stat-item:not(:last-child)::after {
    display: none;
  }

  /* Añade separadores horizontales en móvil */
  .stat-item:not(:last-child) {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(166, 107, 255, 0.15);
  }
}

/* ======================================================= */
/* ====== ESTILOS SERVICES V4 (DYNAMIC FLOW GRID) ======== */
/* ======================================================= */

/* --- Contenedor Principal con Fondo Texturizado --- */
.services-v4-section {
  position: relative;
  background-color: var(--color-dark-bg);
  background-image:
    linear-gradient(rgba(166, 107, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(166, 107, 255, 0.03) 1px, var(--color-dark-bg) 1px);
  background-size: 40px 40px;
}

/* --- El "Dynamic Flow Grid" --- */
.dynamic-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  /* Da una altura mínima a las filas */
  gap: 1.5rem;
}

/* --- LA MAGIA DEL LAYOUT: Colocación Asimétrica --- */
/* La primera tarjeta ocupa 2 columnas */
.dynamic-flow-grid .flow-card:nth-child(1) {
  grid-column: span 2;
}

/* La cuarta tarjeta ocupa 2 columnas, creando el zig-zag */
.dynamic-flow-grid .flow-card:nth-child(4) {
  grid-column: span 2;
}

/* --- Tarjeta Individual con Efecto Shine --- */
.flow-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(166, 107, 255, 0.15);
  background: radial-gradient(circle at 0% 0%, var(--color-dark-bg-alt), var(--color-dark-bg) 60%);
  overflow: hidden;
  /* Muy importante para el efecto shine */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* --- El Efecto "Aurora Shine" --- */
.flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  /* Más ancho que la tarjeta */
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(166, 107, 255, 0.1), transparent 70%);
  transform: translateX(-100%) skewX(-20deg);
  /* Inicia fuera, a la izquierda */
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.flow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.flow-card:hover::before {
  transform: translateX(100%) skewX(-20deg);
  /* Se desliza hacia la derecha al hacer hover */
}


/* --- Icono con Sombra --- */
.flow-icon {
  margin-bottom: 1.5rem;
}

.flow-icon .material-symbols-outlined {
  font-size: 2.8rem;
  color: var(--color-primary-pink);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.flow-card:hover .flow-icon .material-symbols-outlined {
  transform: scale(1.1);
  text-shadow: 0 0 15px var(--color-accent-glow);
}

/* --- Textos y Flecha (heredan estilos de la V3) --- */
.flow-card h3 {
  margin-bottom: 1rem;
  color: var(--color-heading-light);
}

.flow-card p {
  color: var(--color-text-subtle);
  font-size: 0.95rem;
}

.flow-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--color-text-subtle);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.flow-card:hover .flow-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-primary-pink);
}

/* --- Ajustes para Móvil y Tablet --- */
@media (max-width: 992px) {
  .dynamic-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Todas las tarjetas ocupan 1 columna en tablet */
  .dynamic-flow-grid .flow-card:nth-child(1),
  .dynamic-flow-grid .flow-card:nth-child(4) {
    grid-column: span 1;
  }

  /* La primera tarjeta puede ser destacada ocupando todo el ancho */
  .dynamic-flow-grid .flow-card:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .dynamic-flow-grid {
    grid-template-columns: 1fr;
  }

  /* Todas las tarjetas ocupan 1 columna, sin excepción */
  .dynamic-flow-grid .flow-card:nth-child(1) {
    grid-column: span 1;
  }
}


/* ======================================================= */
/* ========= ESTILOS FASTALK V4 (GALAXY CANVAS) ========== */
/* ======================================================= */

.fastalk-v4-section {
  padding: 8rem 0;
  overflow: hidden;
}

.fastalk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .fastalk-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

/* --- Columna Izquierda: El Lienzo de la Galaxia --- */
.fastalk-galaxy-canvas {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 2rem auto;
  aspect-ratio: 1 / 1;
}

/* --- El Logo Central Protagonista --- */
.central-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  /* Tamaño grande y audaz */
  height: auto;
  z-index: 3;
  border-radius: 25%;
  /* Bordes redondeados pero no un círculo completo */
  /* Sombra con resplandor para el efecto de energía */
  filter: drop-shadow(0 0 25px var(--color-accent-glow));
  animation: pulse-glow-logo 5s infinite ease-in-out;
}

@keyframes pulse-glow-logo {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 25px var(--color-accent-glow));
  }

  50% {
    transform: translate(-50%, -50%) scale(1.03);
    filter: drop-shadow(0 0 35px var(--color-accent-glow));
  }
}


/* --- Detalle Premium: Líneas de Conexión --- */
.connecting-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connecting-lines line {
  stroke: rgba(166, 107, 255, 0.15);
  stroke-width: 1px;
  stroke-dasharray: 5 5;
  /* Línea punteada */
  animation: pulse-line 30s linear infinite;
}

@keyframes pulse-line {
  to {
    stroke-dashoffset: 100;
  }
}

/* --- Nodos Flotantes de la Constelación --- */
.node-item {
  position: absolute;
  width: 95px;
  height: 95px;
  z-index: 2;
  border-radius: 50%;
  background-color: rgba(23, 42, 69, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light-theme);
  animation: subtle-float 6s ease-in-out infinite;
  padding: 5px;
  /* Espacio para el texto de dos líneas */
}

.node-item p {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 5px;
}

.node-item .material-symbols-outlined {
  font-size: 1.8rem;
}

.node-item svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* Posicionamiento Orgánico de los 10 Nodos */
#node-support {
  top: 5%;
  left: 35%;
  animation-delay: -1s;
}

#node-kiosk {
  top: 15%;
  right: 5%;
  animation-delay: -3.5s;
}

#node-calls {
  top: 40%;
  left: -5%;
  animation-delay: -2s;
}

#node-recruit {
  top: 75%;
  left: 5%;
  animation-delay: -4s;
}

#node-quote {
  top: 90%;
  left: 40%;
  animation-delay: 0s;
}

#node-schedule {
  top: 50%;
  right: -5%;
  animation-delay: -3s;
}

#node-whatsapp {
  top: 80%;
  right: 10%;
  animation-delay: -5.5s;
}

#node-orders {
  top: 5%;
  right: 30%;
  animation-delay: -2.5s;
}

#node-interest {
  top: 65%;
  left: -2%;
  animation-delay: -5s;
}

#node-products {
  top: 95%;
  right: 45%;
  animation-delay: -1.5s;
}


/* --- (Los estilos para .fastalk-text-content se mantienen igual) --- */
.fastalk-text-content .section-title,
.fastalk-text-content .section-eyebrow {
  text-align: left;
  margin-left: 0;
}

.fastalk-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
  margin: 1.5rem 0 2.5rem 0;
}

.fastalk-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.fastalk-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
}

.fastalk-benefits-list li:nth-child(n+1) {
  animation-delay: 0.1s * n;
}

/* Animación escalonada */
.fastalk-benefits-list .material-symbols-outlined {
  color: var(--color-primary-pink);
}

/* ======================================================= */
/* ====== ESTILOS FASTALK V4 - POSICIONAMIENTO CIRCULAR ==== */
/* ======================================================= */

/* --- Nodos Flotantes de la Constelación --- */
.node-item {
  position: absolute;
  /* Todos los nodos ahora parten del centro absoluto del contenedor */
  top: 50%;
  left: 50%;
  width: 95px;
  height: 95px;
  margin: -47.5px 0 0 -47.5px;
  /* Centrado perfecto con la mitad de su tamaño */
  z-index: 2;
  border-radius: 50%;
  background-color: rgba(23, 42, 69, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light-theme);
  animation: subtle-float 6s ease-in-out infinite;
  padding: 5px;
}

.node-item p {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 5px;
}

.node-item .material-symbols-outlined {
  font-size: 1.8rem;
}

.node-item svg {
  width: 1.8rem;
  height: 1.8rem;
}

/*
  LA MAGIA: Posicionamiento circular usando transformaciones.
  Cada nodo se rota un ángulo y luego se empuja hacia afuera (translateY).
  Finalmente, se contra-rota para que el texto quede derecho.
  El radio de la órbita es de 220px.
*/

#node-support {
  transform: rotate(-105deg) translateY(-220px) rotate(105deg);
  animation-delay: -1s;
}

#node-orders {
  transform: rotate(-70deg) translateY(-220px) rotate(70deg);
  animation-delay: -2.5s;
}

#node-kiosk {
  transform: rotate(-35deg) translateY(-220px) rotate(35deg);
  animation-delay: -3s;
}

#node-schedule {
  transform: rotate(35deg) translateY(-220px) rotate(-35deg);
  animation-delay: -0.5s;
}

#node-whatsapp {
  transform: rotate(70deg) translateY(-220px) rotate(-70deg);
  animation-delay: -4s;
}

#node-products {
  transform: rotate(105deg) translateY(-220px) rotate(-105deg);
  animation-delay: -1.5s;
}

#node-reclutar {
  transform: rotate(145deg) translateY(-220px) rotate(-145deg);
  animation-delay: -5s;
}

#node-interest {
  transform: rotate(180deg) translateY(-220px) rotate(-180deg);
  animation-delay: -3.8s;
}

#node-calls {
  transform: rotate(215deg) translateY(-220px) rotate(-215deg);
  animation-delay: -2.2s;
}

#node-quote {
  transform: rotate(250deg) translateY(-220px) rotate(-250deg);
  animation-delay: -4.5s;
}


/* --- Ajuste responsivo para el radio del círculo --- */
@media (max-width: 992px) {

  /* Hacemos el radio más pequeño en tablets */
  #node-support {
    transform: rotate(-105deg) translateY(-190px) rotate(105deg);
  }

  #node-orders {
    transform: rotate(-70deg) translateY(-190px) rotate(70deg);
  }

  #node-kiosk {
    transform: rotate(-35deg) translateY(-190px) rotate(35deg);
  }

  #node-schedule {
    transform: rotate(35deg) translateY(-190px) rotate(-35deg);
  }

  #node-whatsapp {
    transform: rotate(70deg) translateY(-190px) rotate(-70deg);
  }

  #node-products {
    transform: rotate(105deg) translateY(-190px) rotate(-105deg);
  }

  #node-reclutar {
    transform: rotate(145deg) translateY(-190px) rotate(-145deg);
  }

  #node-interest {
    transform: rotate(180deg) translateY(-190px) rotate(-180deg);
  }

  #node-calls {
    transform: rotate(215deg) translateY(-190px) rotate(-215deg);
  }

  #node-quote {
    transform: rotate(250deg) translateY(-190px) rotate(-250deg);
  }


}

@media (max-width: 480px) {

  /* Y aún más pequeño en móviles */
  #node-support {
    transform: rotate(-105deg) translateY(-150px) rotate(105deg);
  }

  #node-orders {
    transform: rotate(-70deg) translateY(-150px) rotate(70deg);
  }

  #node-kiosk {
    transform: rotate(-35deg) translateY(-150px) rotate(35deg);
  }

  #node-schedule {
    transform: rotate(35deg) translateY(-150px) rotate(-35deg);
  }

  #node-whatsapp {
    transform: rotate(70deg) translateY(-150px) rotate(-70deg);
  }

  #node-products {
    transform: rotate(105deg) translateY(-150px) rotate(-105deg);
  }

  #node-reclutar {
    transform: rotate(145deg) translateY(-150px) rotate(-145deg);
  }

  #node-interest {
    transform: rotate(180deg) translateY(-150px) rotate(-180deg);
  }

  #node-calls {
    transform: rotate(215deg) translateY(-150px) rotate(-215deg);
  }

  #node-quote {
    transform: rotate(250deg) translateY(-150px) rotate(-250deg);
  }
}

/* ======================================================= */
/* ====== NUEVO POSICIONAMIENTO DE NODOS (CONSTELACIÓN) === */
/* ======================================================= */

/* --- Posicionamiento Uniforme de los 10 Nodos --- */
#node-support {
  top: 10%;
  left: 28%;
  animation-delay: -1s;
}

#node-registrar-pedidos {
  top: 15%;
  left: 42%;
  animation-delay: -4.5s;
}

/* ID actualizado */
#node-kioscos {
  top: 20%;
  right: 20%;
  animation-delay: -3.5s;
}

#node-agendar {
  top: 48%;
  right: 10%;
  animation-delay: -3s;
}

/* ID actualizado */
#node-whatsapp {
  bottom: 20%;
  right: 28%;
  animation-delay: -5.5s;
}

#node-consultar-productos {
  bottom: 5%;
  left: 25%;
  animation-delay: -1.5s;
}

/* ID actualizado */
#node-reclutar {
  bottom: 45%;
  left: 5%;
  animation-delay: -4s;
}

#node-registrar-interes {
  bottom: 60%;
  left: 10%;
  animation-delay: -5s;
}

/* ID actualizado */
#node-llamadas {
  top: 45%;
  left: 0%;
  animation-delay: -2s;
}

/* ID actualizado */

/* Renombramos los IDs de los nuevos nodos para que coincidan con la lógica anterior */
#node-orders {
  display: none;
}

/* Ocultamos los IDs viejos para evitar duplicados */
#node-interest {
  display: none;
}

#node-products {
  display: none;
}

/* ======================================================= */
/* ====== ESTILOS PORTFOLIO V1 (KINETIC WALL) ============ */
/* ======================================================= */

.portfolio-v1-section {
  position: relative;
  padding: 8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Crucial para que el marquee no desborde */
}

/* --- El Muro Cinético de Fondo --- */
.kinetic-wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  /* Gradiente para oscurecer y dar legibilidad al texto superior */
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.kinetic-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.8);
  /* Overlay oscuro */
  z-index: 2;
}

/* --- Las Filas en Movimiento --- */
.kinetic-row {
  display: flex;
  flex-shrink: 0;
  /* Evita que las filas se encojan */
  gap: 1.5rem;
  animation: scroll-left 80s linear infinite;
}

.kinetic-row.reverse {
  animation-name: scroll-right;
}

/* Animaciones de desplazamiento */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* Se mueve la mitad (el contenido duplicado) */
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* --- Tarjeta de Proyecto Individual --- */
.project-card {
  position: relative;
  flex-shrink: 0;
  width: 420px;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(166, 107, 255, 0.1);
  transition: transform 0.4s ease;
}

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

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-name {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Efectos de Hover --- */
.kinetic-row:hover {
  animation-play-state: paused;
  /* Pausa la animación de la fila al pasar el cursor */
}

.project-card:hover {
  transform: scale(1.05);
  z-index: 10;
  /* La tarjeta se pone por encima de las demás */
}

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

.project-card:hover::after,
.project-card:hover .project-name {
  opacity: 1;
  transform: translateY(0);
}


/* --- Contenido Fijo en Primer Plano --- */
.portfolio-header {
  position: relative;
  z-index: 3;
  /* Por encima del muro cinético y su overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 750px;
}

/* ======================================================= */
/* ====== ESTILOS PROCESS V2 (GLASSMORPHISM FLOW) ======== */
/* ======================================================= */

.process-v2-section {
  padding-bottom: 8rem;
}

.process-v2-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* La línea de fondo (el "track") */
.process-v2-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: var(--color-dark-bg-alt);
  border-radius: 2px;
  z-index: 1;
}

/* La barra de progreso animada */
.process-v2-timeline .timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--color-primary-gradient);
  border-radius: 2px;
  z-index: 2;
  height: 0;
  transition: height 0.1s ease-out;
}

/* Cada paso en la línea de tiempo */
.process-v2-timeline .timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 220px;
}

/* El punto numerado */
.process-v2-timeline .timeline-dot {
  grid-column: 2;
  grid-row: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-dark-bg);
  border: 2px solid var(--color-dark-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s ease;
}

.process-v2-timeline .timeline-dot::before {
  content: attr(data-step);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text-subtle);
  transition: color 0.4s ease;
}

/* --- El contenido de texto con Glassmorphism --- */
.process-v2-timeline .timeline-content {
  padding: 2rem;
  border-radius: var(--border-radius);

  /* Efecto Glassmorphism */
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 107, 255, 0.2);

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.process-v2-timeline .timeline-content:hover {
  transform: translateY(20px) scale(1.03);
  /* Mantiene la Y para no desalinear */
}

/* Efecto "Glow on View" */
.process-v2-timeline .timeline-step.is-visible .timeline-dot {
  border-color: var(--color-primary-pink);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.process-v2-timeline .timeline-step.is-visible .timeline-dot::before {
  color: var(--color-primary-pink);
}

.process-v2-timeline .timeline-step.is-visible .timeline-content {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 30px rgba(126, 79, 215, 0.1);
}

/* Posicionamiento alterno */
.process-v2-timeline .timeline-step--right .timeline-content {
  grid-column: 3;
  text-align: left;
}

.process-v2-timeline .timeline-step--left .timeline-content {
  grid-column: 1;
  text-align: right;
}

.process-v2-timeline .step-eyebrow {
  color: var(--color-primary-pink);
}

.process-v2-timeline .step-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.process-v2-timeline .step-description {
  color: var(--color-text-subtle);
}


/* ======================================================= */
/* ============ LA CORRECCIÓN CLAVE PARA MÓVIL ============= */
/* ======================================================= */
@media (max-width: 768px) {

  /* Mueve la línea de tiempo a la izquierda */
  .process-v2-timeline::after,
  .process-v2-timeline .timeline-progress-bar {
    left: 25px;
    /* Fija la línea a 25px del borde */
    transform: translateX(0);
  }

  /* Reestructura la rejilla de cada paso */
  .process-v2-timeline .timeline-step {
    /* Crea dos columnas: una para el punto y otra para el contenido */
    grid-template-columns: 50px 1fr;
    gap: 0 1.5rem;
    /* Sin gap vertical, 1.5rem de gap horizontal */
    min-height: auto;
    margin-bottom: 2.5rem;
  }

  /* Posiciona el punto en la primera columna */
  .process-v2-timeline .timeline-dot {
    grid-column: 1;
    width: 50px;
    height: 50px;
  }

  /* FUERZA TODO EL CONTENIDO A LA SEGUNDA COLUMNA, alineado a la izquierda */
  .process-v2-timeline .timeline-step--left .timeline-content,
  .process-v2-timeline .timeline-step--right .timeline-content {
    grid-column: 2;
    text-align: left !important;
    padding: 1.5rem;
    /* Ajusta el padding para móvil */
  }
}

/* ======================================================= */
/* =========== ESTILOS FOOTER V2 (AURORA FOOTER) =========== */
/* ======================================================= */

.aurora-footer {
  position: relative;
  /* ARREGLO CLAVE: Esto evita el scroll horizontal */
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 2rem;
}


/* --- La Rejilla del Footer --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Una columna en móvil por defecto */
  gap: 3rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Layout Responsivo --- */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Dos columnas en tablet pequeña */
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    /* Layout de 4 columnas con la primera más ancha */
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* --- Estilos de las Columnas --- */
.footer-col--about .footer-logo img {
  height: 45px;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--color-text-subtle);
  margin-bottom: 2rem;
  max-width: 320px;
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* --- Enlaces con Hover Mejorado --- */
.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-text-subtle);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(5px);
  /* Efecto de deslizamiento sutil */
}

/* --- Iconos Sociales Rediseñados --- */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-subtle);
  background: transparent;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--color-white);
  background: var(--color-primary-gradient);
  /* Se rellena con el gradiente */
  border-color: transparent;
  transform: translateY(-4px);
  /* Efecto de "salto" */
  box-shadow: 0 10px 20px var(--color-accent-glow);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* --- Parte Inferior del Footer --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: var(--color-text-subtle);
  font-size: 0.9rem;
}

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

.footer-bottom a {
  color: var(--color-text-subtle);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary-pink);
  text-decoration: underline;
}

/* ======================================================= */
/* ====== ESTILOS FAQ V3 (INTERACTIVE GLASS PANE) ======== */
/* ======================================================= */

.faq-v3-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

/* Fondo de luz ambiental sutil */
.faq-background-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--color-primary-purple), transparent 70%);
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr 1.5fr;
    /* Columna de texto más estrecha */
    align-items: flex-start;
  }
}

/* --- Columna Izquierda: Intro y CTA --- */
.faq-intro .section-title,
.faq-intro .section-eyebrow {
  text-align: left;
  margin-left: 0;
}

.faq-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
  margin: 1.5rem 0 2.5rem 0;
}

/* --- Columna Derecha: Acordeón --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  position: relative;
  border-radius: var(--border-radius);
  /* Efecto Glassmorphism */
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 107, 255, 0.2);
  transition: all 0.4s ease;
}

/* El estado "active" con borde de gradiente y brillo */
.faq-item.active {
  box-shadow: 0 0 30px var(--color-accent-glow);
  border-color: transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image:
    linear-gradient(to right, rgba(23, 42, 69, 0.5), rgba(23, 42, 69, 0.5)),
    var(--color-primary-gradient);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading-light);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.8rem;
  color: var(--color-text-subtle);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: #fafafa;
  line-height: 1.8;
  border-top: 1px solid rgba(166, 107, 255, 0.1);
  padding-top: 1.5rem;
  margin: 0 1.5rem;
}

/* ======================================================= */
/* ====== ESTILOS PRICING V2 (MONOLITH TIER) ============ */
/* ======================================================= */

.pricing-v2-section {
  padding: 8rem 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  /* Asegura que todas las tarjetas se estiren a la misma altura */
}

/* --- Tarjeta de Precios Estándar (Estética Monolito) --- */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  background-color: var(--color-dark-bg-alt);
  border: 1px solid rgba(166, 107, 255, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Efecto Hover: Resplandor Interior y Borde Iluminado */
.pricing-card:hover {
  transform: translateY(-12px);
  border-color: rgba(166, 107, 255, 0.4);
  box-shadow:
    /* Sombra externa suave para el efecto de elevación */
    0 20px 40px rgba(0, 0, 0, 0.2),
    /* Resplandor interior (glow from within) */
    inset 0 0 60px rgba(126, 79, 215, 0.1);
}

/* Contenido interno con estructura detallada */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.5rem 2rem;
}

.card-header {
  text-align: left;
  padding-bottom: 1.5rem;
  /* Línea divisoria */
  border-bottom: 1px solid rgba(166, 107, 255, 0.1);
}

.card-header h3 {
  font-size: 1.5rem;
}

.card-price {
  margin-top: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.card-price .currency {
  font-size: 1rem;
}

.card-description {
  flex-grow: 1;
  /* Esto empuja el CTA hacia el final */
  padding: 1.5rem 0;
  color: var(--color-text-subtle);
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light-theme);
}

.card-features .material-symbols-outlined {
  color: var(--color-primary-pink);
  font-size: 1.2rem;
}

.card-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  /* Línea divisoria */
  border-top: 1px solid rgba(166, 107, 255, 0.1);
}

.card-cta .outline-button {
  width: 100%;
}

/* --- Tarjeta Premium Destacada --- */
.pricing-card--premium {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding: 3rem;
  background: var(--color-primary-gradient);
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pricing-card--premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px var(--color-accent-glow);
}

.premium-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .premium-content-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .premium-header {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 2rem;
  }
}

.premium-header h3 {
  font-size: 2rem;
  color: var(--color-white);
}

.premium-header .card-price {
  font-size: 3rem;
  color: var(--color-white);
}

.premium-header .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.premium-header .cta-button {
  margin-top: 1.5rem;
  background: var(--color-white);
  color: var(--color-primary-purple);
}

.premium-features .features-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.premium-features .card-features li,
.premium-features .material-symbols-outlined {
  color: var(--color-white);
}

.premium-features .material-symbols-outlined {
  font-size: 1.4rem;
}

/* --- CTA para Paquetes Personalizados --- */
.custom-package-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-radius: var(--border-radius);
  background: var(--color-dark-bg-alt);
  border: 1px dashed rgba(166, 107, 255, 0.3);
}

@media(min-width: 768px) {
  .custom-package-cta {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.custom-cta-icon .material-symbols-outlined {
  font-size: 3rem;
  color: var(--color-primary-pink);
}

.custom-cta-text h3 {
  margin-bottom: 0.5rem;
}

.custom-cta-text p {
  color: var(--color-text-subtle);
  max-width: 50ch;
}

.custom-package-cta .cta-button {
  flex-shrink: 0;
}

.pricing-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  font-style: italic;
}


/* --- Ajustes Responsivos --- */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card:nth-child(3) {
    grid-column: auto;
  }
}

/* ======================================================= */
/* ====== ESTILOS PORTAFOLIO V2 (UNIFORM GRID) =========== */
/* ======================================================= */

/* --- Hero Section de la página de Portafolio --- */
.portfolio-hero-section {
  padding: 180px 0 80px 0;
  text-align: center;
}

.portfolio-hero-section .section-title {
  font-size: clamp(3rem, 7vw, 5rem);
}

/* --- Galería de Proyectos Uniforme --- */
.portfolio-gallery-section {
  padding-top: 0;
  padding-bottom: 8rem;
}

.portfolio-gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  /* Una columna por defecto para móvil */
}

/* Rejilla de 2 columnas para tablets */
@media (min-width: 768px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Rejilla de 3 columnas para escritorio (diseño "fijo") */
@media (min-width: 1024px) {
  .portfolio-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Tarjeta de Proyecto Individual --- */
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  /* Proporción consistente */
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--color-dark-bg-alt);
  border: 1px solid rgba(166, 107, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* Overlay de texto */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95), transparent);
  transform: translateY(100%);
  /* Inicia oculto abajo */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .card-overlay {
  transform: translateY(0);
  /* Se desliza hacia arriba */
}

.card-overlay h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.card-overlay p {
  color: var(--color-text-subtle);
}


/* Detalle Premium: Icono de Flecha Animado */
.external-link-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 42, 69, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--color-white);

  /* Animación de entrada */
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .external-link-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}