/* =========================================
   IMPERIAL CLUB - Estilos
   ========================================= */

/* =========================================
   HERO CON FORMULARIO DE LOGIN
   ========================================= */
/* Sección Hero principal: ocupa como mínimo el 100% de la altura de la pantalla (100vh), con imagen de fondo fija */
.ic-hero {
  position: relative;
  min-height: 100vh;
  background-image: url('images/imperial_club_hero.webp');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Cortina oscura transparente de tinte verdoso (rgba 0, 60, 55, 0.68) superpuesta sobre la foto de fondo */
.ic-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 55, 0.68);
  z-index: 1;
}

/* Contenedor principal de contenido del hero elevado con z-index: 2 por encima de la cortina */
.ic-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 60px 40px 20px;
  width: 100%;
  max-width: 1100px;
  flex-wrap: wrap;
}

/* Título de la izquierda */
.ic-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Título gigante dorado "CLUB IMPERIAL" de 4.5rem con sombra de texto 3D */
.ic-hero-club {
  font-size: 4.5rem;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ic-hero-name {
  font-size: 4.5rem;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Puntos decorativos dorados debajo del título */
.ic-hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ic-hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4af37;
  opacity: 0.7;
}

/* =========================================
   FORMULARIO DE LOGIN / ACCESO IMPERIAL
   ========================================= */
/* Tarjeta flotante semi-transparente con efecto de desenfoque de cristal (backdrop-filter: blur(10px)) */
.ic-login-box {
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 35px 40px;
  width: 100%;
  max-width: 430px;
  backdrop-filter: blur(10px);
}

.ic-login-header {
  margin-bottom: 25px;
}

.ic-login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.ic-login-exclusive {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

.ic-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Grupos de campos de entrada (cédula y PIN) */
.ic-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ic-input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  padding-left: 2px;
}

/* Campos de entrada de texto oscuros con borde fino */
.ic-input-group input {
  width: 100%;
  background: #11141d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border 0.3s, background 0.3s;
}

.ic-input-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Al enfocar o seleccionar el campo de texto: cambia el borde a dorado (#d4af37) */
.ic-input-group input:focus {
  border-color: #d4af37;
  background: #1a1e2b;
}

.ic-input-pin input {
  padding-right: 50px;
}

/* Botón flotante de ojito (mostrar/ocultar contraseña PIN) */
.ic-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.ic-eye-btn svg {
  width: 20px;
  height: 20px;
}

/* Botón principal de Iniciar Sesión en dorado deslumbrante */
.ic-login-btn {
  background: #d4af37;
  color: #000;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
  margin-top: 4px;
}

/* Al pasar el ratón por el botón de login: se ilumina y eleva ligeramente 2px */
.ic-login-btn:hover {
  background: #f0cc55;
  transform: translateY(-2px);
}

.ic-made-for {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-top: 4px;
}

.ic-made-for span {
  color: #d4af37;
}

/* =========================================
   MODAL DE LOGIN Y REGISTRO
   ========================================= */
/* Ventana modal flotante fijada con fondo oscuro difuminado (z-index: 1000) */
.ic-login-modal-overlay,
.ic-register-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.ic-login-modal,
.ic-register-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 430px;
}

/* Al agregarse la clase .show: hace visible la ventana emergente modal */
.ic-login-modal-overlay.show,
.ic-login-modal.show,
.ic-register-modal-overlay.show,
.ic-register-modal.show {
  opacity: 1;
  visibility: visible;
}

.ic-login-modal.show,
.ic-register-modal.show {
  transform: translate(-50%, -50%);
}

/* Botón 'X' para cerrar la ventana modal */
.ic-close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.ic-close-modal:hover {
  color: #d4af37;
}

/* =========================================
   BOTONES INFERIORES DEL HERO
   ========================================= */
.ic-hero-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  padding: 30px 20px 50px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botones redondeados estilo cápsula (border-radius: 50px) */
.ic-btn {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Botón con contorno transparente y borde dorado */
.ic-btn-outline {
  border: 2px solid #d4af37;
  color: #d4af37;
  background: transparent;
}

.ic-btn-outline:hover {
  background: #d4af37;
  color: #000;
}

/* Botón con relleno sólido de color dorado */
.ic-btn-filled {
  background: #d4af37;
  color: #000;
  border: 2px solid #d4af37;
}

.ic-btn-filled:hover {
  background: #f0cc55;
  border-color: #f0cc55;
}


/* =========================================
   TARJETAS DE MEMBRESÍA (RED CARD & BLACK CARD)
   ========================================= */
/* Sección de tarjetas de fidelidad con fondo oscuro elegante en degradado borgoña */
.ic-cards-section {
  background: linear-gradient(to bottom, #0a0a0f 0%, #2a0a0f 30%, #3d0f18 50%, #2a0a0f 70%, #0a0a0f 100%);
  padding: 70px 20px;
}

/* Grilla de 2 columnas para mostrar la tarjeta roja y la tarjeta negra en paralelo */
.ic-cards-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Animación de entrada al desplazarse por la pantalla */
.ic-card-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ic-card-wrapper.ic-card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tarjeta 3D interactiva con proporción exacta de tarjeta de crédito (aspect-ratio: 1.586) */
.ic-card {
  position: relative;
  aspect-ratio: 1.586;
  cursor: pointer;
  perspective: 1000px;
  transition: transform 0.4s ease;
}

/* Al pasar el ratón por encima de la tarjeta: se eleva 8px y se agranda un 2% (scale 1.02) */
.ic-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Riel interior que ejecuta el giro en 180 grados en el eje Y (rotateY 180deg) */
.ic-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Al agregarse la clase .flipped: gira la tarjeta para mostrar el reverso */
.ic-card.flipped .ic-card-flip-inner {
  transform: rotateY(180deg);
}

/* Cara frontal y cara trasera de la tarjeta */
.ic-card-front, .ic-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.ic-card-front {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

/* La cara trasera se inicializa rotada 180 grados */
.ic-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

/* Degradado metálico dorado para Gold Card */
.ic-card-gold {
  background: linear-gradient(135deg, #5a3d00 0%, #b8860b 30%, #d4af37 55%, #c6962a 75%, #8b6914 100%);
}

/* Degradado rojo para Classic Red Card */
.ic-card-red {
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 50%, #ff4d4d 100%);
}

/* Degradado negro mate premium para Black Card */
.ic-card-black {
  background: linear-gradient(135deg, #111 0%, #222 50%, #0a0a0a 100%);
}

/* Manchas luminosas/blobs decorativos de luz desenfocada de fondo (filter: blur(40px)) */
.ic-card-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
}

.ic-card-blob-1 {
  width: 180px;
  height: 180px;
  background: #7a0000;
  top: -40px;
  left: -40px;
}

.ic-card-blob-2 {
  width: 120px;
  height: 120px;
  background: #990000;
  bottom: -20px;
  right: -20px;
}

.ic-card-blob-3 {
  width: 160px;
  height: 160px;
  background: rgba(212,175,55,0.3);
  top: -30px;
  right: -30px;
}

.ic-card-blob-4 {
  width: 140px;
  height: 140px;
  background: rgba(212,175,55,0.4);
  bottom: -40px;
  left: -20px;
}

/* Elementos realistas del reverso de la tarjeta (banda magnética y código CVV) */
.ic-card-magnetic-stripe {
  width: 100%;
  height: 50px;
  background: #0a0a0a;
  margin-top: 35px;
}

.ic-card-signature-row {
  display: flex;
  padding: 20px 28px;
  gap: 15px;
  align-items: center;
}

.ic-card-signature {
  flex: 1;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.03) 4px, rgba(255,255,255,0.03) 5px);
}

.ic-card-cvv {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  height: 40px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  position: relative;
}

.ic-card-cvv span {
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.6;
}

.ic-card-back-text {
  padding: 0 28px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  line-height: 2;
  flex-grow: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.ic-card-back-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 28px;
}

.ic-card-contact p {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}
.ic-card-contact p:first-child {
  color: rgba(255,255,255,0.8);
}

/* Logo de los dos círculos entrelazados tipo Mastercard */
.ic-card-mc-logo {
  display: flex;
  opacity: 0.8;
}

.ic-card-mc-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.ic-mc-red { background: rgba(235, 0, 27, 0.9); }
.ic-mc-orange { background: rgba(247, 158, 27, 0.9); margin-left: -14px; }
.ic-mc-gold1 { background: rgba(212, 175, 55, 0.9); }
.ic-mc-gold2 { background: rgba(212, 175, 55, 0.6); margin-left: -14px; }

/* En la tarjeta Black Card, el color dorado resalta las firmas y códigos */
.ic-card-black .ic-card-signature {
  border-color: rgba(212,175,55,0.3);
  color: rgba(212,175,55,0.5);
}
.ic-card-black .ic-card-cvv {
  border-color: rgba(212,175,55,0.4);
  color: #d4af37;
}
.ic-card-black .ic-card-cvv span {
  color: #d4af37;
  opacity: 0.8;
}
.ic-card-black .ic-card-contact p:first-child {
  color: #d4af37;
}

.ic-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ic-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ic-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ic-badge-gold {
  background: rgba(255,255,255,0.2);
  color: #fff8e1;
}

.ic-badge-red {
  background: rgba(255,255,255,0.15);
  color: #ffcccc;
}

.ic-card-contactless {
  opacity: 0.5;
}

.ic-card-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ic-card-name-black {
  color: #ffffff;
}


/* =========================================
   ETIQUETAS Y DETALLES DE LAS TARJETAS (PILLS & CHIPS)
   ========================================= */
.ic-card-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.ic-card-subtitle-gold {
  color: #fff8e1;
}

.ic-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ic-card-chip-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Chip EMV dorado/rojo de simulación de chip inteligente de la tarjeta */
.ic-card-chip {
  width: 36px;
  height: 28px;
  border-radius: 5px;
}

.ic-chip-gold {
  background: linear-gradient(135deg, #d4af37, #8b6914);
  border: 1px solid rgba(255,255,255,0.3);
}

.ic-chip-red {
  background: linear-gradient(135deg, #cc3333, #991111);
  border: 1px solid rgba(255,255,255,0.2);
}

.ic-card-number {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  font-weight: 600;
}

/* Etiquetas o pildoritas de beneficios en la tarjeta (ic-pill) */
.ic-card-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ic-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ic-pill-gold {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

.ic-pill-red {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Información adicional debajo de cada tarjeta */
.ic-card-info {
  padding: 20px 8px 0;
}

.ic-card-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ic-card-info-desc {
  font-size: 0.88rem;
  color: #c9c9c9;
  line-height: 1.6;
}

/* =========================================
   SECCIÓN TÉRMINOS Y CONDICIONES DEL CLUB
   ========================================= */
.ic-terms {
  background: #0a0a0f;
  padding: 70px 20px;
}

.ic-terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.ic-terms-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4af37;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212,175,55,0.3);
}

.ic-benefits-title {
  margin-top: 50px;
}

.ic-terms-sub {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4af37;
  margin: 30px 0 15px;
}

.ic-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ic-list li {
  color: #c9c9c9;
  font-size: 0.92rem;
  line-height: 1.7;
}

.ic-bullets {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.ic-bullets li {
  color: #c9c9c9;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ic-intro-text {
  color: #c9c9c9;
  font-size: 0.95rem;
  margin: 18px 0 8px;
  line-height: 1.7;
}

.ic-footer-note {
  color: rgba(200,200,200,0.6);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer del Club */
.site-footer {
  background: #060814;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  max-height: 80px;
  width: auto;
}

/* =========================================
   RESPONSIVE (Ajustes para celulares y tabletas en Club Imperial)
   ========================================= */
@media (max-width: 768px) {
  /* En pantallas móviles cambia el banner del hero a 1 sola columna vertical centrada */
  .ic-hero-content {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px 10px;
    align-items: center;
  }

  .ic-hero-left {
    align-items: center;
    text-align: center;
  }

  .ic-hero-club,
  .ic-hero-name {
    font-size: 3rem;
    text-align: center;
  }

  .ic-hero-dots {
    justify-content: center;
  }

  .ic-login-box {
    padding: 25px 22px;
    max-width: 100%;
  }

  .ic-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .ic-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Cambia la grilla de tarjetas Red y Black a 1 sola columna vertical */
  .ic-cards-container {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 400px;
  }

  .ic-card-front {
    padding: 20px 16px;
  }

  .ic-card-name {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }

  .ic-card-subtitle {
    margin-bottom: 12px;
    font-size: 0.6rem;
  }

  .ic-card-bottom {
    gap: 8px;
  }

  .ic-pill {
    padding: 4px 10px;
    font-size: 0.6rem;
  }

  .ic-card-pills {
    justify-content: flex-start;
    gap: 6px;
  }
  
  .ic-card-magnetic-stripe {
    margin-top: 20px;
    height: 40px;
  }
  
  .ic-card-signature-row {
    padding: 10px 16px;
    gap: 10px;
  }
  
  .ic-card-signature {
    height: 30px;
    font-size: 0.6rem;
  }
  
  .ic-card-cvv {
    height: 30px;
    font-size: 0.8rem;
  }
  
  .ic-card-cvv span {
    top: -12px;
    font-size: 0.5rem;
  }
  
  .ic-card-back-text {
    padding: 0 16px;
    font-size: 0.55rem;
    line-height: 1.5;
  }
  
  .ic-card-back-footer {
    padding: 10px 16px;
  }
  
  .ic-card-contact p {
    font-size: 0.55rem;
  }
  
  .ic-login-modal,
  .ic-register-modal {
    width: 90%;
    max-width: 380px;
  }

  .ic-terms-title { font-size: 1.2rem; }
}

