/*
 * From Uiverse.io by eslam-hany - https://uiverse.io/eslam-hany/nasty-zebra-54
 * MIT License, Copyright (c) eslam-hany (Eslam Hany)
 */

/* Cuadrícula 4×2 a 100vh con recorte circular concéntrico en las 4 esquinas del centro */
.grid-zebra-login {
  --gap-grid: 16px;
  --radio-corte: 89px;
  --offset-gap: 8px;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
}

/* Tarjetas translúcidas con blur real sobre las esferas 3D del fondo */
.tarjeta-zebra {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1.5px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(24, 30, 34, 0.11), inset 0 1.5px 0 rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.tarjeta-zebra:hover,
.tarjeta-zebra:focus-visible,
.tarjeta-zebra.zebra-abierta {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 44px var(--glow);
}

/* Recortes circulares concéntricos en las 4 esquinas que abrazan el botón central de Google */
.tarjeta-zebra.corte-br {
  -webkit-mask-image: radial-gradient(circle var(--radio-corte) at calc(100% + var(--offset-gap)) calc(100% + var(--offset-gap)), transparent 98.5%, #000 100%);
  mask-image: radial-gradient(circle var(--radio-corte) at calc(100% + var(--offset-gap)) calc(100% + var(--offset-gap)), transparent 98.5%, #000 100%);
}
.tarjeta-zebra.corte-bl {
  -webkit-mask-image: radial-gradient(circle var(--radio-corte) at calc(0% - var(--offset-gap)) calc(100% + var(--offset-gap)), transparent 98.5%, #000 100%);
  mask-image: radial-gradient(circle var(--radio-corte) at calc(0% - var(--offset-gap)) calc(100% + var(--offset-gap)), transparent 98.5%, #000 100%);
}
.tarjeta-zebra.corte-tr {
  -webkit-mask-image: radial-gradient(circle var(--radio-corte) at calc(100% + var(--offset-gap)) calc(0% - var(--offset-gap)), transparent 98.5%, #000 100%);
  mask-image: radial-gradient(circle var(--radio-corte) at calc(100% + var(--offset-gap)) calc(0% - var(--offset-gap)), transparent 98.5%, #000 100%);
}
.tarjeta-zebra.corte-tl {
  -webkit-mask-image: radial-gradient(circle var(--radio-corte) at calc(0% - var(--offset-gap)) calc(0% - var(--offset-gap)), transparent 98.5%, #000 100%);
  mask-image: radial-gradient(circle var(--radio-corte) at calc(0% - var(--offset-gap)) calc(0% - var(--offset-gap)), transparent 98.5%, #000 100%);
}

/* Esquinas opuestas estilo nasty-zebra-54 */
.tarjeta-zebra::before,
.tarjeta-zebra::after {
  position: absolute;
  content: "";
  width: 18%;
  height: 19%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), height 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.45s ease;
  z-index: 1;
  pointer-events: none;
}

.tarjeta-zebra::before {
  top: 0;
  right: 0;
  background: rgba(53, 59, 61, 0.78);
  border-radius: 0 20px 0 100%;
}

.tarjeta-zebra::after {
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--c1-glass), var(--c2-glass));
  border-radius: 0 100% 0 20px;
}

/* En tarjetas cuyo recorte toca la esquina del pétalo, agrandar el pétalo para abrazar el arco */
.tarjeta-zebra.corte-bl::after,
.tarjeta-zebra.corte-tr::before {
  width: 34%;
  height: 28%;
}

/* Tarjeta SEAES: colores luminosos no oscuros */
.tarjeta-zebra-seaes::before {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.76), rgba(236, 72, 153, 0.76));
}
.tarjeta-zebra-seaes::after {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.80) 0%, rgba(236, 72, 153, 0.80) 34%, rgba(59, 130, 246, 0.82) 68%, rgba(20, 184, 166, 0.82) 100%);
}

.tarjeta-zebra:hover::before,
.tarjeta-zebra:hover::after,
.tarjeta-zebra:focus-visible::before,
.tarjeta-zebra:focus-visible::after,
.tarjeta-zebra.zebra-abierta::before,
.tarjeta-zebra.zebra-abierta::after {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.zebra-frente {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.tarjeta-zebra:hover .zebra-frente,
.tarjeta-zebra:focus-visible .zebra-frente,
.tarjeta-zebra.zebra-abierta .zebra-frente {
  opacity: 0;
  transform: scale(0.92);
}

.zebra-num {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 6px;
  background: var(--c1);
  color: #ffffff;
  box-shadow: 0 6px 14px var(--glow);
}

.zebra-icono {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  color: var(--c1);
  box-shadow: 0 8px 18px rgba(24, 30, 34, 0.08);
}
.zebra-icono svg { width: 100%; height: 100%; display: block; }

.logo-utsjr-card {
  height: clamp(58px, 7.6vh, 80px);
  width: auto;
  max-width: 92%;
  object-fit: contain;
  display: block;
}

.zebra-frente h2 {
  margin: 0;
  font-family: var(--fuente-display);
  font-size: clamp(1.32rem, 1.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.16;
  color: #161a1d;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

.zebra-frente .titulo-seaes-grande {
  font-size: clamp(2.4rem, 3.2vw, 3.35rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.zebra-reverso {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.tarjeta-zebra:hover .zebra-reverso,
.tarjeta-zebra:focus-visible .zebra-reverso,
.tarjeta-zebra.zebra-abierta .zebra-reverso {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.3s ease 0.14s, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.seaes-reverso-marca {
  font-family: var(--fuente-display);
  font-size: clamp(2.2rem, 2.8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 3px 14px rgba(10, 16, 22, 0.28);
}

.zebra-reverso h3 {
  margin: 0;
  font-family: var(--fuente-display);
  font-size: clamp(1.26rem, 1.5vw, 1.54rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(10, 16, 22, 0.30);
  line-height: 1.18;
}

.tarjeta-zebra-seaes .zebra-reverso h3 {
  font-size: clamp(1.24rem, 1.48vw, 1.52rem);
  line-height: 1.24;
  max-width: 24ch;
}

.zebra-reverso .linea-luminosa {
  margin: 2px auto;
  width: 60px;
  height: 4px;
  background: #ffffff;
}

.zebra-reverso p {
  margin: 0;
  font-size: clamp(1.06rem, 1.18vw, 1.22rem);
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(10, 16, 22, 0.26);
  line-height: 1.44;
  max-width: 34ch;
}

@media (max-width: 1024px) {
  .grid-zebra-login {
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .tarjeta-zebra {
    height: 268px;
    backdrop-filter: blur(12px) saturate(175%);
    -webkit-backdrop-filter: blur(12px) saturate(175%);
  }
  .tarjeta-zebra.corte-br,
  .tarjeta-zebra.corte-bl,
  .tarjeta-zebra.corte-tr,
  .tarjeta-zebra.corte-tl {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tarjeta-zebra.corte-bl::after,
  .tarjeta-zebra.corte-tr::before {
    width: 18%;
    height: 19%;
  }
}

@media (max-width: 600px) {
  .grid-zebra-login { grid-template-columns: 1fr; }
  .tarjeta-zebra { height: 248px; }
}
