/* =========================================================
   OIC - ENTREGA / RECEPCIÓN (CONSOLIDADO FINAL)
   Archivo: public/css/oic.entrega-recepcion.css
   Scope: .oic-er
========================================================= */

/* =========================================================
   1. BACKDROP GLOBAL (FOTO + VERDE)
   - Ajuste de encuadre para subir la foto y ocultar caras
   - El fondo vive en body::before para cubrir detrás del nav
========================================================= */
@supports selector(body:has(.oic-er)){

  body.oic-skin#top:has(.oic-er){
    position: relative;
    isolation: isolate;
    --er-bg-pos: center 90%;
  }

  body.oic-skin#top:has(.oic-er)::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
      radial-gradient(
        1200px 520px at 50% 12%,
        rgba(255,255,255,.14) 0%,
        rgba(255,255,255,.06) 35%,
        transparent 70%
      ),
      linear-gradient(
        180deg,
        rgba(0,0,0,.20) 0%,
        rgba(0,0,0,0) 40%
      ),
      linear-gradient(
        180deg,
        rgba(130,185,95,.88) 0%,
        rgba(143,195,108,.70) 40%,
        rgba(121,176,91,.85) 100%
      ),
      url("/public/images/EntregaRecepcion.jpg");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--er-bg-pos);
    background-blend-mode: screen, multiply, normal, normal;
  }

  body.oic-skin#top:has(.oic-er) header,
  body.oic-skin#top:has(.oic-er) .navbar,
  body.oic-skin#top:has(.oic-er) nav{
    position: relative;
    z-index: 10;
  }

  body.oic-skin#top:has(.oic-er) main,
  body.oic-skin#top:has(.oic-er) .main-content{
    position: relative;
    z-index: 5;
  }

  body.oic-skin#top:has(.oic-er) .oic-footer,
  body.oic-skin#top:has(.oic-er) footer{
    position: relative;
    z-index: 20;
  }
}

/* =========================================================
   2. BASE / TOKENS
========================================================= */
.oic-er{
  --wrap: 1180px;
  --pad-x: clamp(16px, 2.8vw, 32px);

  --magenta: var(--oic-magenta, #b01271);
  --magenta-2: var(--oic-magenta-2, #d14a9a);

  --radius-xl: 28px;
  --radius-lg: 22px;

  --shadow-md: 0 14px 34px rgba(0,0,0,.14);
  --shadow-lg: 0 22px 52px rgba(0,0,0,.18);
  --shadow-xl: 0 30px 78px rgba(0,0,0,.22);

  color: rgba(255,255,255,.92);
  background: transparent;
  overflow-x: clip;
}

.oic-er .oic-er-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =========================================================
   3. HERO
   - Solo layout + glow
========================================================= */
.oic-er-hero{
  position: relative;
  min-height: clamp(380px, 46vw, 620px);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px) 0;
  overflow: hidden;
  background: transparent;
}

.oic-er-hero::before{
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      900px 520px at 50% 30%,
      rgba(255,255,255,.16),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 50% 120%,
      rgba(0,0,0,.22),
      transparent 55%
    );
  filter: blur(2px);
}

.oic-er-hero .oic-er-wrap{
  position: relative;
  z-index: 1;
  text-align: center;
}

.oic-er-brand{
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.oic-er-logo{
  width: clamp(92px, 9vw, 120px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.oic-er-title{
  margin: 0;
  font-weight: 950;
  letter-spacing: .02em;
  color: #fff !important;
  text-transform: uppercase;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: .92;
  text-shadow: 0 14px 28px rgba(0,0,0,.30);
}

.oic-er-sub{
  margin: 10px auto 0;
  max-width: 900px;
  color: rgba(255,255,255,.94) !important;
  font-size: clamp(14px, 1.7vw, 20px);
  text-shadow: 0 10px 22px rgba(0,0,0,.22);
}

/* =========================================================
   4. ACCIONES
   - Hover elegante y más consistente
========================================================= */
.oic-er-actions{
  margin-top: clamp(18px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 340px));
  gap: clamp(16px, 2.4vw, 28px);
  justify-content: center;
}

.oic-er-action{
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 26px;
  text-decoration: none !important;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);

  transform: translateY(0);
  box-shadow: none;

  transition:
    transform .24s cubic-bezier(.4,0,.2,1),
    background .24s cubic-bezier(.4,0,.2,1),
    border-color .24s cubic-bezier(.4,0,.2,1),
    box-shadow .24s cubic-bezier(.4,0,.2,1);
}

.oic-er-action:hover{
  transform: translateY(-5px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  box-shadow:
    0 15px 35px rgba(0,0,0,.20),
    0 0 0 3px rgba(255,255,255,.05);
}

.oic-er-action:active{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

.oic-er-ic{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,.98);
  border: 4px solid var(--magenta);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);

  transform: translateY(0) scale(1);
  transition:
    transform .24s ease,
    box-shadow .24s ease;
}

.oic-er-ic img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: scale(1);
  transition: transform .24s ease;
}

.oic-er-action:hover .oic-er-ic{
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-lg);
}

.oic-er-action:hover .oic-er-ic img{
  transform: scale(1.03);
}

.oic-er-action-txt{
  color: #fff !important;
  text-align: center;
  line-height: 1.08;
}

.oic-er-action-txt strong{
  display: block;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .01em;
  text-shadow: 0 10px 20px rgba(0,0,0,.20);
}

.oic-er-action-txt span{
  display: block;
  margin-top: 4px;
  font-weight: 800;
  font-size: 19px;
  text-shadow: 0 10px 20px rgba(0,0,0,.20);
}

/* Focus accesible */
.oic-er-action:focus{
  outline: none;
}

.oic-er-action:focus-visible{
  outline: 3px solid rgba(255,255,255,.85);
  outline-offset: 6px;
  border-color: rgba(255,255,255,.32);
}

/* =========================================================
   5. INFO CARDS
   - Simetría visual y mejor legibilidad
========================================================= */
.oic-er-info{
  padding: clamp(26px, 3.2vw, 44px) 0 clamp(50px, 6vw, 90px);
  background: transparent;
}

.oic-er-grid{
  margin-top: -58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 2.2vw, 24px);
  align-items: stretch;
}

.oic-er-card{
  background: rgba(255,255,255,.98);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.oic-er-card-title{
  margin: 0 0 18px;
  text-align: center;
  color: var(--magenta) !important;
  font-weight: 950;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.15;
}

.oic-er-list{
  margin: 0;
  padding-left: 1.2rem;
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.6;
}

.oic-er-list li{
  margin-bottom: 10px;
}

.oic-er-sublist{
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

/* Burbuja central */
.oic-er-bubble{
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-self: center;

  background: var(--magenta);
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(176,18,113,.30);
}

.oic-er-bubble span{
  color: #fff;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
}

/* =========================================================
   6. RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .oic-er-grid{
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

  .oic-er-bubble{
    margin: 12px auto;
  }

  .oic-er-card{
    min-height: auto;
  }
}

@media (max-width: 720px){
  .oic-er-actions{
    grid-template-columns: 1fr;
  }

  .oic-er-hero{
    min-height: clamp(340px, 72vw, 520px);
    padding: 24px 0 30px;
  }

  .oic-er-title{
    font-size: clamp(32px, 9vw, 48px);
    line-height: .94;
  }

  .oic-er-sub{
    font-size: 14px;
  }

  .oic-er-action{
    padding: 18px 16px;
  }

  .oic-er-ic{
    width: 84px;
    height: 84px;
  }

  .oic-er-ic img{
    width: 46px;
    height: 46px;
  }
}

/* =========================================================
   7. REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce){
  .oic-er-action,
  .oic-er-ic,
  .oic-er-ic img{
    transition: none !important;
  }
}