/* ==========================================================================
   PORTAFOLIO PROFESIONAL - ESTILOS PRINCIPALES
   Enfoque: Negocios Locales | Diseño Moderno, Limpio, Modular y Adaptable
   ========================================================================== */

/* --- Variables Globales y Sistema de Diseño --- */
:root {
  /* Paleta cromática: Neutros sofisticados + Acento Zafiro + Verde WhatsApp */
  --bg-main: #FAFAF9;           /* Piedra ultra suave */
  --bg-surface: #FFFFFF;        /* Superficie blanca limpia */
  --bg-subtle: #F4F4F5;         /* Gris sutil para contrastes */
  --bg-dark: #0F172A;           /* Pizarra profunda */
  --bg-dark-surface: #1E293B;

  --text-primary: #0F172A;      /* Grafito de alto contraste */
  --text-secondary: #475569;    /* Gris medio para lectura fluida */
  --text-muted: #64748B;        /* Gris claro para metadatos */
  --text-inverse: #F8FAFC;

  --accent-primary: #2563EB;     /* Azul cobalto profesional */
  --accent-primary-hover: #1D4ED8;
  --accent-primary-light: #EFF6FF;
  --accent-primary-border: #BFDBFE;

  --whatsapp: #16A34A;          /* Verde esmeralda de contacto */
  --whatsapp-hover: #15803D;
  --whatsapp-light: #F0FDF4;
  --whatsapp-border: #BBF7D0;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.14);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 76px;
}

/* --- Reseteo y Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: transparent;
}

ul {
  list-style: none;
}

/* --- Layout Contenedor --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-py {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

section[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }

@media (max-width: 768px) {
  .section-py {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* --- Encabezados de Sección --- */
.section-header {
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  background: var(--accent-primary-light);
  border: 1px solid var(--accent-primary-border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: normal;
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

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

/* Marca / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navegación Desktop */
.nav-desktop {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.8rem;
  }
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* Acciones en Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-wa-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-wa-btn {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Drawer Móvil */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  background-color: var(--bg-surface);
  z-index: 2500;
  box-shadow: var(--shadow-xl);
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.mobile-nav-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.drawer-close {
  font-size: 1.8rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: auto;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-link:hover {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
}

.drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem 0;
  position: relative;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.hero-title .highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (max-width: 540px) {
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hero-badge-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-badge-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tarjeta de Resumen Visual en Hero */
.hero-visual {
  display: flex;
  justify-content: center;
}

.demo-preview-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  transition: transform var(--transition-normal);
}

.demo-preview-card:hover {
  transform: translateY(-4px);
}

.browser-header {
  background: #F1F5F9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.browser-dot:nth-child(1) { background: #FDA4AF; }
.browser-dot:nth-child(2) { background: #FCD34D; }
.browser-dot:nth-child(3) { background: #86EFAC; }

.browser-address {
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-media-box {
  position: relative;
  height: 230px;
  background: #1B3B2B;
  overflow: hidden;
}

.preview-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.demo-preview-card:hover .preview-media-box img {
  transform: scale(1.04);
}

.preview-overlay-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  letter-spacing: 0.4px;
}

.preview-body {
  padding: 1.5rem;
}

.preview-project-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.preview-project-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.preview-project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.preview-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.feature-chip {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.preview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   2. SECCIÓN PROYECTOS DESTACADOS
   ========================================================================== */
.projects-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.project-featured-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
  .project-featured-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.project-image-col {
  position: relative;
  min-height: 340px;
  background: #111827;
  overflow: hidden;
}

.project-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-featured-layout:hover .project-image-col img {
  transform: scale(1.03);
}

.project-demo-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.project-info-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .project-info-col {
    padding: 1.75rem;
  }
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.project-sector {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-primary);
}

.project-divider {
  color: var(--border-medium);
}

.project-scope {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.project-narrative {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .project-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--accent-primary);
  font-weight: 800;
  flex-shrink: 0;
}

.project-tech-stack {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stack-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 0.5rem;
}

.stack-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.project-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 500px) {
  .project-cta-group .btn {
    width: 100%;
  }
}

/* ==========================================================================
   3. SECCIÓN SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-surface);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary-border);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-highlight-list li::before {
  content: '•';
  color: var(--accent-primary);
  font-weight: bold;
}

/* ==========================================================================
   4. SECCIÓN SOBRE MÍ
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

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

.about-card-aside {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.about-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.about-avatar-emblem {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.about-card-aside h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.about-card-aside p.role {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.about-points-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-point-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.about-point strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.about-point span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.about-content p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-content strong {
  color: var(--text-primary);
}

.about-transparency-note {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-primary);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. SECCIÓN PROCESO DE TRABAJO
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.process-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary-border);
}

.step-num-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   6. SECCIÓN CONTACTO DIRECTO (WHATSAPP FORM)
   ========================================================================== */
.contact-section {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.contact-text-col .section-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #93C5FD;
  border-color: rgba(147, 197, 253, 0.3);
}

.contact-text-col .section-title {
  color: #FFFFFF;
}

.contact-text-col .section-desc {
  color: #94A3B8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.contact-method-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.method-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon-wa {
  background: var(--whatsapp);
}

.method-details strong {
  display: block;
  font-size: 0.98rem;
  color: #FFFFFF;
}

.method-details span {
  font-size: 0.82rem;
  color: #94A3B8;
}

/* Tarjeta del Formulario WhatsApp */
.contact-form-card {
  background: #FFFFFF;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 560px) {
  .contact-form-card {
    padding: 1.75rem;
  }
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.whatsapp-builder-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0B0F19;
  color: #94A3B8;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

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

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 1rem;
}

.footer-demo-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-links-list a:hover {
  color: #FFFFFF;
  padding-left: 3px;
}

.footer-bottom {
  background-color: #060911;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   MODAL DE FICHA TÉCNICA (PROYECTO CONCEPTUAL)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.modal-title-box span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.modal-close-btn {
  font-size: 1.8rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-section h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-section p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .modal-tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-tech-item {
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.modal-tech-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.modal-tech-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Los tracks y sus hijos pueden contraerse por debajo del ancho del contenido. */
.hero-grid > *, .project-featured-layout > *, .services-grid > *,
.about-layout > *, .process-grid > *, .contact-layout > *,
.footer-top-grid > *, .project-features-grid > *, .modal-tech-grid > *,
.brand, .brand-text, .about-avatar-row > div, .about-point > div,
.method-details, .modal-title-box, .form-group {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-group input, .form-group select, .form-group textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.btn svg, .browser-dots, .pulse-dot-green,
.header-actions, .modal-close-btn, .drawer-close {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .about-card-aside, .project-info-col, .contact-form-card {
    padding: 1.25rem;
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 1.25rem;
  }

  .preview-card-footer .btn, .modal-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Presentación del logo original: encuadres CSS, sin modificar la imagen. */
.mobile-nav-drawer .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-mark { display: block; position: relative; width: 112px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: 6px; background: #080808; }
.brand-mark img { position: absolute; width: 150%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -47.5%); }
.brand-sub { font-size: .65rem; }
.site-header .brand { width: 166px; flex-shrink: 0; flex-direction: column; align-items: center; gap: 2px; }
.navbar-brand-mark { width: 144px; height: 37px; background: transparent; border-radius: 0; }
.navbar-brand-sub { font-size: 7px; line-height: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.about-brand-mark { width: 64px; height: 64px; }
.about-brand-mark { border-radius: 50%; border: 1px solid #94a3b866; box-shadow: 0 2px 6px #0f172a14; }
.about-brand-mark img {
  width: 130%;
  transform: translate(-50%, -45.3%);
  /* Se aísla el nombre completo: los textos decorativos del cartel quedan fuera. */
  clip-path: inset(36.4% 16% 45.8% 16%);
}
.navbar-brand-mark img { transform: translate(-50%, -45.3%); clip-path: inset(36.4% 16% 45.8% 16%); filter: invert(1) contrast(1.5); mix-blend-mode: multiply; }
.about-avatar-row { flex-wrap: nowrap; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.about-avatar-row > div { flex: 1; }
.about-card-aside .about-avatar-row h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.about-card-aside .about-avatar-row p.role { color: var(--text-secondary); font-weight: 500; line-height: 1.5; }
.commercial-terms p { margin: 12px 0 0; font-size: inherit; }
