/* ===== Wrapper general ===== */
.b-proposito { background: var(--background, #fff); color: var(--foreground, #0f172a); }

/* ===== HERO ===== */
.propo-hero {         padding-top: 8rem;
        padding-bottom: 8rem;; background: linear-gradient(135deg,#eff6ff,#f1f5f9); }
.propo-hero__title { 
    font-weight: 700; 
    color: hsl(var(--primary, 222 47% 11%)); 
    text-align: center; 
    margin: 0 0 1.5rem;
    font-size: 3.75rem;
    line-height: 1;
    
}
.propo-hero__bar { width: 6rem; height: 4px; background: linear-gradient(90deg,hsl(var(--primary, 222 47% 11%)),hsl(var(--secondary, 262 83% 58%))); margin: 0 auto 1.5rem; border-radius: 999px; }
.propo-hero__lead { 
    max-width: 56rem; 
    margin: 0 auto; 
    text-align: center; 
    font-size: 1.5rem;
    line-height: 2rem;
    color: rgb(71 85 105);
    font-weight: 500;
}

/* ===== Sección principal ===== */
.propo-main { position: relative; padding: 4rem 0 5rem; background: linear-gradient(135deg,#eef2ff,#ffffff,#ecfeff); overflow: hidden; }
.propo-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 1024px){ .propo-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.propo-left__title, .propo-right__title { 
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700; 
    color: hsl(var(--primary));
    margin: 0 0 .75rem;
}
.propo-left__bar, .propo-right__bar { width: 4rem; height: 3px; background: linear-gradient(90deg,hsl(var(--secondary, 262 83% 58%)),hsl(var(--primary, 222 47% 11%))); margin-bottom: 1rem; border-radius: 999px; }
.propo-left__p { 
        margin-bottom: 2rem;
        font-size: 1rem;
        line-height: 1.625;
        --tw-text-opacity: 1;
        color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.propo-card { display:flex; gap:1rem; align-items:flex-start; background:#fff; border:1px solid rgba(15,23,42,.08); padding:1rem; border-radius:1rem; box-shadow: 0 10px 20px rgba(2,6,23,.06); transition: transform .25s ease, box-shadow .25s ease; }
.propo-card + .propo-card { margin-top: 1rem; }
.propo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(2,6,23,.08); }
.propo-card__icon { width:3rem; height:3rem; border-radius:.75rem; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg,#3b82f6,#6366f1); color:#fff; flex-shrink:0; }
.propo-card__h { 
    margin:0px;
    margin-bottom: .5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: hsl(var(--primary));
    
}
.propo-card__p { 
    font-size: .875rem;
    line-height: 1.625;
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
    
}

.propo-right__head { margin-bottom: 1rem; }
.propo-mv { display:flex; flex-direction:column; gap:1rem; margin-top:25px; }
.mission-card { border-radius:1rem; padding:2rem; box-shadow: 0 10px 20px rgba(2,6,23,.06); }
.mission-card--light { background: hsl(var(--muted, 210 40% 96%)); color: hsl(var(--foreground, 222 47% 11%)); }
.mission-card--primary { background: hsl(var(--primary, 222 47% 11%)); color: hsl(var(--primary-foreground, 0 0% 100%)); }
.mission-card__h {
    margin: 0px;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    
}
.mission-card__p { 
    font-size: 1rem;
    line-height: 1.625;
    opacity:.95; 
    margin: 0px;
    
}
.mission-card__p--light { color: #f8fafc; }

.propo-wave { position: absolute; left:0; right:0; bottom:-1px; }
.propo-wave__svg { display:block; width:100%; height:48px; fill:#fff; }

/* ===== Valores (grid + flip cards) ===== */
.propo-values {
    background: linear-gradient(135deg,#f1f5f9,#eff6ff); 
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.propo-values__head { text-align:center; max-width:56rem; margin: 0 auto 4rem; }
.propo-values__title { 
    font-weight: 700;
    color: hsl(var(--primary));
    font-size: 3rem;
    line-height: 1;
    margin:0px;
    margin-bottom: 24px;
    
}
.propo-values__bar { width: 5rem; height: 4px; background: linear-gradient(90deg,hsl(var(--secondary, 262 83% 58%)),hsl(var(--primary, 222 47% 11%))); margin: 0 auto 1rem; border-radius: 999px; }
.propo-values__lead { 
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
    font-size: 1.25rem;
    line-height: 1.75rem;
    
}
.propo-values__grid { display:grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 80rem; margin: 2rem auto 0; justify-items: center; }
@media (min-width: 768px){ .propo-values__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px){ .propo-values__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ===== Card flipping effect ===== */
.card-flip {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}
.face.face1 {
    height: 100%;
}
.card-flip .face {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-flip .face1 {
  background-size: cover;
  background-position: center;
  color: hsl(var(--primary-foreground, 0 0% 100%));
  transform: translateY(0);
  position: relative;
}
.card-flip .face1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.card-flip .face1 > * { position: relative; z-index: 2; }
.card-flip .face2 {
  background: hsl(var(--muted, 210 40% 96%));
  color: hsl(var(--muted-foreground, 215 16% 47%));
  padding: 20px;
  text-align: center;
  transform: translateY(100%);
}
.card-flip:hover .face1 { transform: translateY(-100%); }
.card-flip:hover .face2 { transform: translateY(0); }
.card-flip .title { font-size: 1.2rem; margin: 0; color:#fff; text-align:center; }
.card-flip .description { font-size: 1rem; margin: 0; line-height: 1.4; }

.icon-wrapper {
    text-align: center;
}

/* HERO */
@media (max-width: 768px) {
  .propo-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .propo-hero__title {
    font-size: 2rem;
    line-height: 1.2;
    padding: 0 1rem;
  }

  .propo-hero__lead {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 1rem;
  }
}

/* MAIN grid */
@media (max-width: 1023px) {
  .propo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .propo-left__title,
  .propo-right__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .propo-left__p {
    font-size: .95rem;
    line-height: 1.5;
  }
}

/* Cards */
@media (max-width: 768px) {
  .propo-card {
    align-items: flex-start;
    text-align: left;
  }
  .propo-card__icon {
    margin-bottom: .5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .propo-card__h {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .propo-card__p {
    font-size: .85rem;
    line-height: 1.4;
  }
}

/* Mission / Vision cards */
@media (max-width: 768px) {
  .mission-card {
    padding: 1.25rem;
  }
  .mission-card__h {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .mission-card__p {
    font-size: .9rem;
    line-height: 1.5;
  }
}


/* ===== Valores Responsive ===== */
@media (max-width: 768px) {
  .propo-main {
      padding-top: 2rem;
  }
  .b-proposito .propo-hero {
    display: none !important;
  }

  .b-proposito .propo-left {
    display: none !important;
  }
  .propo-values__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-flip {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Imagen con overlay + icono */
  .card-flip .face1 {
    position: relative;
    height: 120px;
    transform: none !important;
  }
  .card-flip .face1::before {
    background: rgba(0,0,0,0.45);
  }
  .card-flip .icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
  }
  .card-flip .title {
    color: #fff;
    font-size: 1.2rem;
    margin-top: .5rem;
  }

  /* Caja blanca con descripción */
  .card-flip .face2 {
    position: relative;
    transform: none !important;
    background: #fff;
    color: #1e293b;
    text-align: left;
    padding: 1.25rem;
  }
  .card-flip .face2 .description {
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
    color: hsl(241 49% 25%);
  }

  /* Desactivar hover flip */
  .card-flip:hover .face1,
  .card-flip:hover .face2 {
    transform: none !important;
  }
}

