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

: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: 28px;
  --radius-full: 9999px;
  --container-max: 1220px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.nosotros-v4-body {
  background-color: #FFFFFF;
  color: var(--secondary);
  font-family: var(--font-family);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

.ambient-glow-middle {
  position: absolute;
  top: 1100px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 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 menú */
.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 14px;
  background-color: #ECF3FF;
  border: 1px solid rgba(23, 102, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Textos degradados institucionales */
.gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.br-desktop {
  display: block;
}

@media (max-width: 1024px) {
  .br-desktop {
    display: none;
  }
}

/* Botones principales estilo píldora */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(23, 102, 255, 0.25);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

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

/* ==========================================================================
   02. SECCIÓN HERO
   ========================================================================== */
.nosotros-hero {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 70px;
}

.hero-two-cols {
  display: grid;
  grid-template-columns: 1.12fr 1.05fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--secondary);
  margin-bottom: 22px;
  max-width: 560px;
}

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

.hero-visual-frame {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 36px rgba(11, 22, 51, 0.08);
  transition: transform 0.3s ease;
}

.hero-photo:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   03. SECCIÓN NUESTRA HISTORIA
   ========================================================================== */
.historia-section {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 80px;
}

.historia-two-cols {
  display: grid;
  grid-template-columns: 1.02fr 1.15fr;
  align-items: center;
  gap: 60px;
}

.historia-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.historia-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 36px rgba(11, 22, 51, 0.07);
}

/* Floating card "+8 años" */
.floating-badge-historia {
  position: absolute;
  bottom: -22px;
  left: -24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(11, 22, 51, 0.09);
  z-index: 2;
  transition: transform 0.25s ease;
}

.floating-badge-historia:hover {
  transform: translateY(-3px);
}

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

.floating-badge-icon svg {
  width: 22px;
  height: 22px;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
}

.floating-badge-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
  max-width: 140px;
}

.historia-content-col {
  max-width: 540px;
}

.section-headline {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 22px;
}

.historia-p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.historia-p:last-of-type {
  margin-bottom: 0;
}

/* ==========================================================================
   04. SECCIÓN NUESTROS VALORES
   ========================================================================== */
.valores-section {
  position: relative;
  z-index: 1;
  padding-top: 75px;
  padding-bottom: 85px;
  background-color: #FFFFFF;
}

.valores-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.valor-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(11, 22, 51, 0.03);
  transition: all 0.25s ease;
}

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

.valor-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.valor-icon-wrap.blue {
  background-color: #ECF3FF;
  color: #1766FF;
}

.valor-icon-wrap.purple {
  background-color: #F3EEFF;
  color: #8B5CF6;
}

.valor-icon-wrap.green {
  background-color: #EBFDF5;
  color: #10B981;
}

.valor-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.valor-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

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

/* ==========================================================================
   05. SECCIÓN CÓMO TRABAJAMOS
   ========================================================================== */
.como-section {
  position: relative;
  z-index: 1;
  padding-top: 75px;
  padding-bottom: 85px;
}

.como-two-cols {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 54px;
}

.como-content-col {
  max-width: 500px;
}

.como-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.como-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 36px rgba(11, 22, 51, 0.08);
}

/* Floating card "Personas reales soluciones reales" */
.floating-badge-como {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(11, 22, 51, 0.09);
  z-index: 2;
  transition: transform 0.25s ease;
}

.floating-badge-como:hover {
  transform: translateY(-3px);
}

.floating-badge-como .floating-badge-sub {
  max-width: 150px;
}

/* ==========================================================================
   06. SECCIÓN CTA FINAL
   ========================================================================== */
.cta-final-section {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 90px;
}

.cta-banner-v4 {
  background: linear-gradient(135deg, #ECF3FF 0%, #F5F1FF 100%);
  border: 1px solid rgba(23, 102, 255, 0.15);
  border-radius: 28px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: center;
  gap: 40px;
  box-shadow: 0 14px 34px rgba(23, 102, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cta-banner-left {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

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

.cta-banner-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-illustration-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(23, 102, 255, 0.08));
}

/* ==========================================================================
   07. FOOTER INSTITUCIONAL (5 COLUMNAS EXACTO A LA REFERENCIA)
   ========================================================================== */
.site-footer-v4 {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1;
}

.footer-v4-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.95fr 1.15fr 1.15fr;
  gap: 32px;
  margin-bottom: 45px;
}

.footer-v4-brand-col {
  display: flex;
  flex-direction: column;
}

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

.footer-v4-logo svg {
  width: 28px;
  height: 28px;
}

.footer-v4-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 260px;
}

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

.footer-v4-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-v4-social-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-v4-social-link svg {
  width: 15px;
  height: 15px;
}

.footer-v4-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.footer-v4-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-v4-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-v4-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-v4-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-v4-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-v4-newsletter-p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.footer-v4-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-v4-newsletter-input:focus {
  border-color: var(--primary);
}

.footer-v4-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-v4-newsletter-btn:hover {
  background: var(--primary-hover);
}

.footer-v4-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-v4-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

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

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

/* Laptop / Desktop intermedio (1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .footer-v4-top-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Tablet y Mobile Navigation */
@media (max-width: 992px) {
  .site-header .nav-links,
  .site-header .header-cta {
    display: none !important;
  }
  .site-header .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet (1024px a 768px) */
@media (max-width: 1024px) {
  .hero-two-cols {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-title {
    margin-left: auto;
    margin-right: auto;
  }
  .historia-two-cols {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .historia-visual-wrap {
    margin: 0 auto;
  }
  .historia-content-col {
    max-width: 100%;
  }
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .como-two-cols {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .como-visual-wrap {
    margin: 0 auto;
  }
  .como-content-col {
    max-width: 100%;
  }
  .cta-banner-v4 {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 38px 28px;
  }
  .cta-banner-left {
    max-width: 100%;
  }
  .footer-v4-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile estándar y pequeño (<= 640px) */
@media (max-width: 640px) {
  .nosotros-hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(1.52rem, 6.5vw, 1.95rem);
    line-height: 1.22;
  }
  .section-headline {
    font-size: clamp(1.48rem, 6.2vw, 1.85rem);
    line-height: 1.25;
  }
  .floating-badge-historia {
    bottom: -15px;
    left: 10px;
    padding: 10px 14px;
  }
  .floating-badge-como {
    bottom: -15px;
    right: 10px;
    padding: 10px 14px;
  }
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-banner-v4 {
    padding: 30px 18px;
  }
  .cta-banner-title {
    font-size: 1.65rem;
  }
  .footer-v4-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-v4-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
