/* ============================================
   NOSOTROS.CSS - Hero Aurora Flow + Resto de estilos
   ============================================ */

/* Hero compacto basado en patrón existente */
.hero-nos {
  position: relative;
  padding: clamp(18px, 4vw, 28px) 0 clamp(14px, 3vw, 22px);
  background: #f8fafc;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; width: 52vw; height: 52vw; max-width: 820px; max-height: 820px; filter: blur(32px); opacity: .35; border-radius: 50%; }
.hero-bg .b1 { left: -12vw; top: -10vw; background: radial-gradient(closest-side, rgba(30,144,255,.35), transparent 60%); animation: float 14s ease-in-out infinite; }
.hero-bg .b2 { right: -10vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(42,214,160,.35), transparent 60%); animation: float2 16s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(12px) } }
@keyframes float2 { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.hero-nos-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.hero-panel { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: clamp(12px, 2.2vw, 20px); }
.hero-title { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 8px; }
.hero-sub { color: #4b5563; margin: 0; }

.hero-visual { position: relative; min-height: clamp(160px, 22vw, 240px); }
.hero-photo { width: 100%; max-width: 520px; display:block; margin: 0 auto; border-radius: 20px; object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 10px 24px rgba(0,0,0,.08); position: relative; z-index: 1; }
.hero-visual::before{
  content: ""; position:absolute; right:0; top:-12%; bottom:-22%; width:100%;
  background: linear-gradient(160deg, rgba(30,144,255,.16), rgba(42,214,160,.16));
  backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 24px 0 0 24px;
}
.hero-rings { position: absolute; inset: auto 0 0 0; height: 40%; background: radial-gradient(closest-side, rgba(0,0,0,.06), transparent 65%); mask-image: radial-gradient(60% 60% at 50% 100%, #000 0%, transparent 70%); pointer-events: none; }

@media (max-width: 992px) {
  .hero-nos { padding: 18px 0 14px; }
  .hero-nos-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 170px; }
}

/* Sección About */
.about { padding: 52px 0; }
.about-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:16px; align-items:start; }
@media (max-width: 960px){ .about-grid { grid-template-columns: 1fr; } }

.about-aside { display:grid; gap:12px; }
.a-card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; box-shadow:0 8px 20px rgba(0,0,0,.05); overflow:hidden; }
.a-media img { width:100%; height:auto; display:block; aspect-ratio: 16/9; object-fit: cover; background:#eef2f7; }
.a-body { padding:12px 14px; }
.a-body strong { display:block; margin-bottom:4px; }

/* Sección Qué hacemos */
.what { padding: 52px 0; background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 60%); }
.what-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:16px;}
@media (max-width: 960px){ .what-grid { grid-template-columns: 1fr; } }
.what-visual img { width:100%; border-radius:14px; aspect-ratio: 4/3; object-fit: cover; background:#eef2f7; box-shadow: 0 8px 20px rgba(0,0,0,.05); }
.bullet-list { margin: 10px 0 12px 18px; }
.what-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }

/* Misión y Visión */
.mv { padding: 52px 0; }
.mv-grid { display:grid; gap:16px; }
.mv-cards { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 900px){ .mv-cards { grid-template-columns: 1fr; } }
.mv-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:16px; box-shadow:0 10px 24px rgba(0,0,0,.05); }
.mv-card-title { margin:0 0 6px; font-weight:800; font-size:18px; color:#111827; }

/* CTA final */
.nos-cta { padding: 48px 0; }
.nos-cta-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items:center; background: linear-gradient(135deg, rgba(42,214,160,.06), rgba(30,144,255,.06)); border:1px solid #e5e7eb; border-radius:16px; padding:18px; }
@media (max-width: 900px){ .nos-cta-grid { grid-template-columns: 1fr; } }
.cta-title { margin:0 0 6px; }
.cta-sub { margin:0; color:#4b5563; }
.cta-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
@media (max-width: 900px){ .cta-actions { justify-content:flex-start; } }

/* Hero interno estándar (reutiliza patrón de productos) */
.hero-internal {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px; /* altura del header */
}
.hero-internal-background { position: absolute; inset: 0; z-index: 0; }
.hero-internal-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-internal-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,130,194,0.85) 0%, rgba(0,155,168,0.75) 100%); z-index: 1; }
.hero-internal-content { position: relative; z-index: 2; width: 100%; padding: var(--space-6) 0; }
.breadcrumb { margin-bottom: var(--space-4); }
.breadcrumb ol { display:flex; flex-wrap:wrap; align-items:center; gap: var(--space-2); font-size:14px; color: rgba(255,255,255,0.9); }
.breadcrumb li { display:flex; align-items:center; gap: var(--space-2); }
.breadcrumb li:not(:last-child)::after { content:'/'; opacity:.6; }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: underline; text-decoration-thickness:1px; text-underline-offset:2px; transition: opacity var(--duration-normal) ease; }
.breadcrumb a:hover { opacity:.8; }
.breadcrumb li[aria-current="page"] { font-weight:600; color: var(--color-white); }
.hero-internal-title { font-size: 36px; font-weight: 800; color: var(--color-white); margin-bottom: var(--space-3); line-height: 1.2; }
.hero-internal-subtitle { font-size: var(--font-body-l); color: rgba(255,255,255,0.95); max-width: 700px; line-height: 1.5; }

/* Page Header (Aurora Flow) - Versión mejorada con imagen empotrada */
.page-header {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
  background: linear-gradient(135deg, #0082C2 0%, #009BA8 100%);
}

/* Wrapper para contener la imagen dentro del container con efecto empotrado */
.page-header-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5; /* Por encima de las auroras */
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

/* La imagen con efecto de profundidad empotrado solo en los lados */
.page-header-image img {
  width: 50%;
  max-width: calc((1200px * 0.50));
  height: 100%;
  object-fit: cover;
  margin-right: calc((100vw - 1200px) / 2);
  border-radius: 12px 0 0 12px; /* Solo redondeo en el lado izquierdo */

  /* Sombra interna para efecto empotrado en los lados */
  box-shadow:
          inset 3px 0 12px rgba(0,0,0,.35),
          inset 8px 0 20px rgba(0,0,0,.2),
          inset -2px 0 8px rgba(0,0,0,.15),
          -2px 0 8px rgba(0,0,0,.3);

  /* Borde sutil para definir los bordes laterales */
  border-left: 2px solid rgba(255,255,255,.15);
  border-right: 2px solid rgba(0,0,0,.2);

  position: relative;
}

/* En pantallas menores al container, ocupa el 30% */
@media (max-width: 1240px) {
  .page-header-image img {
    margin-right: 20px;
  }
}

/* Aurora flow ajustada */
.page-header-aurora {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.aurora-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  opacity: .6;
  mix-blend-mode: screen;
  filter: blur(60px);
}

.aurora-layer-1 {
  background: radial-gradient(circle at 30% 50%, #0082C2 0%, transparent 50%);
  animation: aurora-flow-1 12s ease-in-out infinite;
}

.aurora-layer-2 {
  background: radial-gradient(circle at 70% 30%, #009BA8 0%, transparent 50%);
  animation: aurora-flow-2 15s ease-in-out infinite;
}

.aurora-layer-3 {
  background: radial-gradient(circle at 50% 70%, #00C2B8 0%, transparent 50%);
  animation: aurora-flow-3 18s ease-in-out infinite;
}

@keyframes aurora-flow-1 {
  0%,100%{ transform: translate(-20%,-20%) scale(1);}
  50%{ transform: translate(10%,10%) scale(1.1);}
}

@keyframes aurora-flow-2 {
  0%,100%{ transform: translate(10%,10%) scale(1);}
  50%{ transform: translate(-20%,-10%) scale(1.15);}
}

@keyframes aurora-flow-3 {
  0%,100%{ transform: translate(0%,15%) scale(1);}
  50%{ transform: translate(15%,-15%) scale(1.1);}
}

/* Partículas */
.page-header-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1){ left:35%; top:20%; animation-delay:0s; animation-duration:6s; }
.particle:nth-child(2){ left:50%; top:60%; animation-delay:1s; animation-duration:8s; }
.particle:nth-child(3){ left:70%; top:30%; animation-delay:2s; animation-duration:7s; }
.particle:nth-child(4){ left:85%; top:70%; animation-delay:1.5s; animation-duration:9s; }
.particle:nth-child(5){ left:60%; top:80%; animation-delay:.5s; animation-duration:7.5s; }

@keyframes particle-float {
  0%,100%{ transform: translate(0,0); opacity:0;}
  10%{opacity:1;}
  90%{opacity:1;}
  100%{ transform: translate(10px,-30px); opacity:0;}
}

/* Contenido del header */
.page-header-content {
  position: relative;
  z-index: 4;
  color: var(--color-white);
}

.page-breadcrumb {
  margin-bottom: 12px;
}

.page-breadcrumb ol {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
}

.page-breadcrumb li {
  display:flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.85);
}

.page-breadcrumb li:not(:last-child)::after {
  content: ">";
  font-size: 14px;
  opacity:.6;
}

.page-breadcrumb a {
  color: rgba(255,255,255,.85);
  text-decoration:none;
  transition: color 200ms ease;
  position: relative;
}

.page-breadcrumb a::after {
  content:"";
  position:absolute;
  bottom:-2px;
  left:0;
  width:0;
  height:1px;
  background: rgba(255,255,255,.9);
  transition: width 200ms ease;
}

.page-breadcrumb a:hover {
  color:#fff;
}

.page-breadcrumb a:hover::after {
  width:100%;
}

.page-breadcrumb li[aria-current="page"] {
  color:#fff;
  font-weight:600;
}

.page-header-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
  animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
  0%,100%{ text-shadow:0 2px 20px rgba(0,0,0,.15);}
  50%{ text-shadow:0 2px 30px rgba(255,255,255,.2);}
}

.page-header-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Líneas decorativas */
.page-header-lines {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
  opacity:.3;
}

.deco-line {
  position:absolute;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  height:1px;
}

.deco-line-1 {
  top:30%;
  left:30%;
  right:0;
  animation: line-expand 4s ease-in-out infinite;
}

.deco-line-2 {
  bottom:35%;
  left:35%;
  right:0;
  animation: line-expand 4s ease-in-out infinite 2s;
}

@keyframes line-expand {
  0%,100%{ transform: scaleX(.8); opacity:.2;}
  50%{ transform: scaleX(1); opacity:.4;}
}

/* Responsive para hero */
@media (max-width: 768px) {
  .page-header {
    height: 160px;
  }

  .page-header-title {
    font-size: 32px;
  }

  .page-header-subtitle {
    font-size: 14px;
  }
}