/* ==========================================================================
   DESARROLLOWEB.US — PÁGINA DE SERVICIOS (V3 MASTER DESIGN SYSTEM)
   Fidelidad absoluta a la maqueta aprobada V3
   ========================================================================== */

/* Variables y base de servicios */
:root {
  --primary: #1766FF;
  --primary-hover: #0d52db;
  --primary-light: #ECF3FF;
  --primary-subtle: #F6F9FF;
  --secondary: #0B1633;
  --text-primary: #0B1633;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent-purple: #8B5CF6;
  --accent-gradient-text: linear-gradient(135deg, #1766FF 15%, #8B5CF6 85%);
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  overflow-x: hidden;
}

body.servicios-v3-body {
  background-color: #FFFFFF;
  color: var(--secondary);
  font-family: var(--font-family);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Ambient glow accents */
.ambient-glow-hero {
  position: absolute;
  top: 0;
  right: 0;
  width: 620px;
  height: 540px;
  background: radial-gradient(circle at 85% 15%, rgba(23, 102, 255, 0.08) 0%, rgba(139, 92, 246, 0.07) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-glow-left {
  position: absolute;
  top: 1400px;
  left: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 10% 50%, rgba(139, 92, 246, 0.06) 0%, rgba(23, 102, 255, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Indicador de página activa en navegación */
.site-header .nav-link.active {
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.site-header .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Eyebrow badge reutilizable */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background-color: #ECF3FF;
  border: 1px solid rgba(23, 102, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-pill .badge-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Tipografía de encabezados */
.section-headline {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.section-subtext {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN 02 — HERO SERVICIOS + MOCKUPS + MÉTRICAS
   ========================================================================== */
.servicios-hero {
  position: relative;
  z-index: 1;
  padding-top: 45px;
  padding-bottom: 30px;
}

.hero-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.96fr;
  align-items: center;
  gap: 36px;
  margin-bottom: 50px;
}

.hero-main-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 20px;
  max-width: 535px;
}

.hero-main-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(23, 102, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-pill-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 102, 255, 0.4);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #FFFFFF;
  color: var(--primary);
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-pill-secondary:hover {
  border-color: var(--primary);
  background-color: #F8FAFC;
  transform: translateY(-2px);
}

.btn-pill-secondary .icon-play {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Mockup visual de dispositivos */
.hero-visual-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-devices-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(11, 22, 51, 0.08));
  transition: transform 0.3s ease;
}

.hero-devices-img:hover {
  transform: translateY(-4px);
}

/* Barra de métricas */
.metrics-row-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px 30px;
  box-shadow: 0 6px 20px rgba(11, 22, 51, 0.04);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #E2E8F0;
}

.metric-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ECF3FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-circle svg {
  width: 20px;
  height: 20px;
}

.metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.metric-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECCIÓN 03 — SERVICIOS DIGITALES (6 TARJETAS EN 3x2)
   ========================================================================== */
.servicios-grid-section {
  position: relative;
  z-index: 1;
  padding-top: 65px;
  padding-bottom: 75px;
  background-color: #FFFFFF;
}

.section-split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-split-header .header-left {
  max-width: 540px;
}

.section-split-header .header-right {
  max-width: 460px;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.service-card-v3 {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.service-card-v3:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 14px 28px rgba(11, 22, 51, 0.06);
}

.service-card-title a{color:inherit;text-decoration:none}.service-card-title a:hover{color:#1766FF}
.service-card-v3 a:focus-visible{outline:3px solid #1766FF;outline-offset:4px}
.service-card-v3[id]{scroll-margin-top:100px}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ECF3FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
}

.service-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FAFC;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.service-card-v3:hover .service-arrow-circle {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateX(3px);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN 04 — PORTAFOLIO INTERACTIVO (CATÁLOGO DE PROYECTOS)
   ========================================================================== */
.portfolio-interactive-section {
  position: relative;
  z-index: 1;
  padding-top: 65px;
  padding-bottom: 80px;
  background-color: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.portfolio-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 30px;
}

.portfolio-header-left {
  max-width: 600px;
}

.portfolio-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-pill-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: #FFFFFF;
  color: var(--secondary);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pill-outline-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.portfolio-layout-v3 {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar de categorías */
.portfolio-categories-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 96px;
}

.portfolio-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.portfolio-category-btn .cat-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-category-btn .cat-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.portfolio-category-btn .cat-icon svg {
  width: 100%;
  height: 100%;
}

.portfolio-category-btn .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.portfolio-category-btn:hover:not(.active) {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--secondary);
}

.portfolio-category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(23, 102, 255, 0.25);
}

.portfolio-category-btn.active .cat-count {
  background: #FFFFFF;
  color: var(--primary);
}

/* Grid de proyectos */
.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11, 22, 51, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.project-card-box:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 14px 28px rgba(11, 22, 51, 0.08);
}

.project-card-thumb-wrap {
  width: 100%;
  height: 185px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 14px 0 14px;
}

.project-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: transform 0.3s ease;
}

.project-card-box:hover .project-card-thumb-wrap img {
  transform: scale(1.03);
}

.project-card-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-badge-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-category-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: #ECF3FF;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.project-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ECF3FF;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.project-card-box:hover .project-arrow-btn {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: translateX(2px);
}

.project-name-h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-desc-p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex-grow: 1;
}

/* ==========================================================================
   SECCIÓN 05 — NUESTRO PROCESO (4 PASOS HORIZONTALES CON CONECTOR)
   ========================================================================== */
.proceso-section {
  position: relative;
  z-index: 1;
  padding-top: 65px;
  padding-bottom: 75px;
  background-color: #FFFFFF;
}

.proceso-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.proceso-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 14px rgba(11, 22, 51, 0.03);
  transition: all 0.25s ease;
}

.proceso-step-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(11, 22, 51, 0.06);
}

.proceso-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.proceso-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1766FF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proceso-icon-circle svg {
  width: 20px;
  height: 20px;
}

.proceso-number-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.04em;
}

.proceso-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.proceso-step-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Conectores sutiles */
.proceso-step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}

/* ==========================================================================
   SECCIÓN 06 — SOPORTE Y CRECIMIENTO (5 TARJETAS COMPACTAS)
   ========================================================================== */
.soporte-section {
  position: relative;
  z-index: 1;
  padding-top: 65px;
  padding-bottom: 75px;
  background-color: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.soporte-5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.soporte-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(11, 22, 51, 0.03);
}

.soporte-card-item:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 22px rgba(11, 22, 51, 0.06);
}

.soporte-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ECF3FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.soporte-icon-box svg {
  width: 20px;
  height: 20px;
}

.soporte-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.soporte-item-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN 07 — PREGUNTAS FRECUENTES (2 COLUMNAS DE ACORDEÓN)
   ========================================================================== */
.faq-section-v3 {
  position: relative;
  z-index: 1;
  padding-top: 65px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.faq-header-split-v3 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 30px;
}

.faq-two-columns-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.faq-item-card-v3 {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item-card-v3:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(11, 22, 51, 0.03);
}

.faq-item-card-v3.open {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(11, 22, 51, 0.05);
}

.faq-btn-trigger-v3 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
}

.faq-btn-left-v3 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
}

.faq-number-circle-v3 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ECF3FF;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-item-card-v3.open .faq-number-circle-v3 {
  background-color: var(--primary);
  color: #FFFFFF;
}

.faq-title-text-v3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.4;
}

.faq-icon-indicator-v3 {
  width: 22px;
  height: 22px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item-card-v3.open .faq-icon-indicator-v3 {
  transform: rotate(45deg);
}

.faq-drawer-body-v3 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-drawer-content-v3 {
  padding: 0 20px 20px 66px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN 08 — CTA FINAL
   ========================================================================== */
.cta-final-section-v3 {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
}

.cta-banner-v3 {
  background: radial-gradient(circle at 85% 30%, rgba(220, 235, 255, 0.75) 0%, rgba(246, 249, 255, 0.5) 45%, #FFFFFF 85%),
              linear-gradient(135deg, rgba(23, 102, 255, 0.05) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(23, 102, 255, 0.15);
  border-radius: 24px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 102, 255, 0.04);
}

.cta-banner-left-v3 {
  max-width: 580px;
}

.cta-banner-heading-v3 {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.cta-banner-sub-v3 {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cta-banner-actions-v3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 280px;
}

.btn-cta-blue-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(23, 102, 255, 0.3);
  border: none;
  width: 100%;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cta-blue-v3:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(23, 102, 255, 0.4);
  transform: translateY(-2px);
}

.btn-cta-white-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: #FFFFFF;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cta-white-v3:hover {
  background: #F0F5FF;
  transform: translateY(-2px);
}

.btn-cta-icon-v3 {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SECCIÓN 09 — FOOTER INSTITUCIONAL V3
   ========================================================================== */
.footer-v3-container {
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding-top: 50px;
  padding-bottom: 30px;
}

.footer-v3-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-v3-brand-col .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-v3-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-v3-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-v3-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s ease;
}

.footer-v3-social-link:hover {
  color: var(--primary);
  background-color: #F1F5F9;
}

.footer-v3-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-v3-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
}

.footer-v3-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-v3-links-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-v3-newsletter-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-v3-newsletter-form {
  display: flex;
  align-items: center;
  position: relative;
}

.footer-v3-newsletter-input {
  width: 100%;
  padding: 10px 44px 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--secondary);
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-v3-newsletter-input:focus {
  border-color: var(--primary);
}

.footer-v3-newsletter-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.footer-v3-newsletter-btn:hover {
  background: var(--primary-hover);
}

.footer-v3-bottom-bar {
  border-top: 1px solid #F1F5F9;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-v3-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-v3-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   Validaciones para Laptop (1280px), Tablet (768px) y Mobile (390px/360px)
   ========================================================================== */

/* Laptop / Desktop mediano (1200px) */
@media (max-width: 1200px) {
  .hero-main-title {
    font-size: 2.85rem;
  }
  .services-cards-3x2 {
    gap: 18px;
  }
  .portfolio-layout-v3 {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  .soporte-5-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-v3-top-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
}

/* Tablet (1024px a 768px) */
@media (max-width: 1024px) {
  .br-desktop {
    display: none;
  }
  .hero-two-cols {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hero-main-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-row {
    justify-content: center;
  }
  .hero-visual-frame {
    margin-top: 10px;
  }
  .metrics-row-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .metric-item:not(:last-child)::after {
    display: none;
  }
  .section-split-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-split-header .header-right {
    text-align: left;
    max-width: 100%;
  }
  .services-cards-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-layout-v3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portfolio-categories-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .portfolio-category-btn {
    width: auto;
    padding: 9px 14px;
  }
  .portfolio-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proceso-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .proceso-step-card:not(:last-child)::after {
    display: none;
  }
  .soporte-5-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-two-columns-wrap {
    grid-template-columns: 1fr;
  }
  .cta-banner-v3 {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .cta-banner-actions-v3 {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-v3-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile estándar y pequeño (<= 640px) */
@media (max-width: 640px) {
  .servicios-hero {
    padding-top: 24px;
  }
  .hero-main-title {
    font-size: clamp(1.42rem, 6.2vw, 1.82rem);
    line-height: 1.22;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
  }
  .metrics-row-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .section-headline {
    font-size: 1.85rem;
  }
  .services-cards-3x2 {
    grid-template-columns: 1fr;
  }
  .portfolio-header-split {
    flex-direction: column;
    align-items: flex-start;
  }
  .portfolio-layout-v3 {
    grid-template-columns: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .portfolio-categories-sidebar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-categories-sidebar::-webkit-scrollbar {
    display: none;
  }
  .portfolio-category-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .portfolio-cards-grid {
    grid-template-columns: 1fr;
  }
  .proceso-flow-grid {
    grid-template-columns: 1fr;
  }
  .soporte-5-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-v3 {
    padding: 28px 18px;
  }
  .cta-banner-heading-v3 {
    font-size: 1.65rem;
  }
  .footer-v3-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-v3-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
