

/* ================================
   QUIÉNES SOMOS — ESTILOS DEDICADOS
================================== */

.quienes-somos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #333;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ====================================
   HERO PRINCIPAL - DISEÑO PROFESIONAL
==================================== */

.hero-section {
  position: relative;
  background: url('../assets/img/hero-nueva.png') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  color: #fff;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* Capa oscura encima de la imagen */
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeInUp 1s ease-in-out forwards;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-section .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #f0f4f8;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #ffd54f;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}


/* Animación flotante decorativa */
@keyframes floatCircle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos decorativos flotantes */
.hero-section .decorative-circle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  backdrop-filter: blur(2px);
  z-index: -1;
  animation: floatCircle 4s ease-in-out infinite;
}

.hero-section .circle-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 5%;
}

.hero-section .circle-2 {
  width: 80px;
  height: 80px;
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
}

.hero-section .circle-3 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 20%;
  animation-delay: 0.5s;
}




/* ================================
   HISTORIA
================================== */
.history-section {
  margin-top: 4rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9fbfd, #eef4f8);
  border-left: 6px solid var(--color-principal, #0e3a5d);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  isolation: isolate;
}

.history-section:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

/* Elementos decorativos dinámicos */
.history-section::before,
.history-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.history-section::before {
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(14, 58, 93, 0.05);
  animation: floatCircle 6s ease-in-out infinite;
}

.history-section::after {
  bottom: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  background: rgba(14, 58, 93, 0.03);
  animation: floatCircle 8s ease-in-out infinite reverse;
}

/* Título */
.history-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-principal, #0e3a5d);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Párrafos */
.history-section p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #334155;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

/* Texto destacado */
.history-section strong {
  color: var(--color-principal, #0e3a5d);
  font-weight: 600;
}

/* Animación decorativa */
@keyframes floatCircle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
}



/* ================================
   MISIÓN Y VISIÓN EN GRID
================================== */
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  justify-content: center;
}

/* Caja individual */
.grid-2 article {
  flex: 1 1 320px;
  background: linear-gradient(135deg, #f9fbfd 0%, #eef4f8 100%);
  border-left: 5px solid var(--color-principal, #0e3a5d);
  border-radius: 16px;
  padding: 2.2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  isolation: isolate;
}

.grid-2 article:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* Encabezado */
.grid-2 h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-principal, #0e3a5d);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.grid-2 h3 i {
  color: var(--color-acento, #ffd54f);
  font-size: 1.4rem;
}

/* Texto */
.grid-2 p {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Decorativo elegante (círculo transparente) */
.grid-2 article::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(14, 58, 93, 0.04);
  border-radius: 50%;
  z-index: 0;
  animation: floatCircle 5s ease-in-out infinite;
}

/* Segunda figura decorativa */
.grid-2 article::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: rgba(14, 58, 93, 0.03);
  border-radius: 50%;
  z-index: 0;
  animation: floatCircle 7s ease-in-out infinite reverse;
}

/* Animación decorativa */
@keyframes floatCircle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}


/* ================================
   VALORES
================================== */
.values-section{
    padding: clamp(1.5rem, 3vw, 3rem) 0;
  }
  .values-header{
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
    text-align: center;
  }
  .values-header h2{
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 .25rem;
  }
  .values-sub{
    margin: 0 auto 1.5rem;
    max-width: 52ch;
    color: #6b7280;
  }

  .values-list{
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    list-style: none;
    display: grid;
    gap: var(--values-gap);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .value-card{
    background: var(--card-bg);
    color: var(--card-fg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.875rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: transform .2s ease, outline-color .2s ease, box-shadow .2s ease;
  }
  .value-card:focus-visible{
    outline-color: var(--accent);
  }
  .value-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
  }

  .value-figure{
    inline-size: 56px;
    block-size: 56px;
    display: grid;
    place-items: center;
  }
  .ico{
    width: 56px;
    height: 56px;
    color: var(--accent);
  }

  /* --- Animaciones --- */
  @keyframes glowPulse{
    0%,100%{ filter: drop-shadow(0 0 0 rgba(43,108,176,.0)); transform: scale(1); }
    50%{ filter: drop-shadow(0 0 10px rgba(43,108,176,.35)); transform: scale(1.06); }
  }
  .ico-cross{ animation: glowPulse 2.2s ease-in-out infinite; }

  @keyframes heartBeat{
    0%, 20%, 60%, 100%{ transform: scale(1); }
    40%{ transform: scale(1.12); }
    80%{ transform: scale(1.06); }
  }
  .ico-heart{ transform-origin: center; animation: heartBeat 1.8s ease-in-out infinite; }

  @keyframes shine{
    0%{ clip-path: inset(0 100% 0 0); opacity:.3; }
    50%{ clip-path: inset(0 0 0 0); opacity:.8; }
    100%{ clip-path: inset(0 0 0 100%); opacity:.3; }
  }
  .ico-shield{ position: relative; }
  .ico-shield .check{ stroke-dasharray: 60 200; stroke-dashoffset: 200; animation: draw 2.6s ease forwards 0.3s; }
  @keyframes draw{ to{ stroke-dashoffset: 0; } }
  .ico-shield:after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.25) 35%, transparent 70%);
    animation: shine 2.8s linear infinite;
    pointer-events: none;
  }

  @keyframes link{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-2px); }
  }
  .ico-unity{ animation: link 2.4s ease-in-out infinite; }

  @keyframes lift{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-3px); }
  }
  .ico-service{ animation: lift 2.2s ease-in-out infinite; }

  /* Aparición suave al hacer scroll */
  .reveal{ opacity: 0; transform: translateY(8px); }
  .reveal.is-visible{ opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

  /* Respeto por reduced motion */
  @media (prefers-reduced-motion: reduce){
    .ico, .value-card, .reveal{ animation: none !important; transition: none !important; transform: none !important; }
  }

  


/* ================================
   LLAMADO A LA ACCIÓN
================================== */
.llamado-accion {
  margin: 5rem auto 0;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, #e0f7fa 0%, #f1f8e9 100%);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 960px;
  overflow: hidden;
}

.llamado-accion:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Título del CTA */
.llamado-accion h2 {
  color: var(--color-principal, #0e3a5d);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Descripción del CTA */
.llamado-accion p {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.6;
}

/* Botón de acción */
.llamado-accion .btn {
  display: inline-block;
  background-color: var(--color-acento, #00796b);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.llamado-accion .btn:hover,
.llamado-accion .btn:focus {
  background-color: #004d40;
  transform: scale(1.03);
}

/* ================================
   FRASE INSPIRADORA
================================== */
.frase-inspiradora {
  margin: 5rem auto 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(90deg, #f1f8f6 0%, #eaf4f3 100%);
  border-left: 6px solid var(--color-principal, #0e3a5d);
  border-radius: 10px;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
  max-width: 960px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: center;
}

/* Cita decorativa */
.frase-inspiradora::before {
  content: "“";
  font-size: 3rem;
  color: var(--color-acento, #0e3a5d);
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.2;
  font-family: Georgia, serif;
}

/* ================================
   ACCESIBILIDAD EXTRA
================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================
   RESPONSIVE
================================== */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.4rem;
  }

  .hero-section .lead {
    font-size: 1.15rem;
  }

  .hero-section::before {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 3.5rem 1.25rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section blockquote {
    font-size: 0.95rem;
  }
}

/* ================================
   Responsive - Mobile Adaptation
================================ */
@media (max-width: 768px) {
  .history-section {
    padding: 2rem 1.25rem;
    margin-top: 3rem;
  }

  .history-section h2 {
    font-size: 1.75rem;
  }

  .history-section p {
    font-size: 1rem;
  }

  .history-section::before {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .grid-2 article {
    padding: 1.5rem;
  }

  .grid-2 h3 {
    font-size: 1.4rem;
  }

  .grid-2 p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .values-section h2 {
    font-size: 1.75rem;
  }

  .values-list li {
    padding: 1.25rem;
  }

  .values-list li i {
    font-size: 1.5rem;
  }

  .values-list li span {
    font-size: 1rem;
  }
}

/* Responsive: Pantallas pequeñas */
@media (max-width: 600px) {
  .llamado-accion {
    padding: 2.5rem 1.5rem;
  }

  .llamado-accion h2 {
    font-size: 1.7rem;
  }

  .llamado-accion p {
    font-size: 1rem;
  }

  .llamado-accion .btn {
    font-size: 1rem;
    padding: 0.75rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .frase-inspiradora {
    font-size: 1.1rem;
    padding: 2rem 1.5rem;
  }

  .frase-inspiradora::before {
    font-size: 2.5rem;
    left: 10px;
  }
}