/* ========================================================
   SUPERMEX DIGITAL • PORTAL DE MICROSITIOS (DISEÑO OFICIAL)
   Fiel a la Referencia Visual: Moderno, Elegante y Tecnológico
   ======================================================== */

:root {
  --bg-dark: #04060e;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-sub: #cbd5e1;
  
  /* Acentos de Color para cada Micrositio */
  --glow-grizzly: rgba(0, 120, 255, 0.35);
  --border-grizzly: rgba(0, 132, 255, 0.4);
  --btn-grizzly-border: rgba(0, 132, 255, 0.6);
  --btn-grizzly-hover: #0066cc;

  --glow-aniversario: rgba(0, 102, 255, 0.4);
  --border-aniversario: rgba(56, 189, 248, 0.45);
  --btn-aniversario-border: rgba(56, 189, 248, 0.65);
  --btn-aniversario-hover: #0055ff;

  --glow-eventos: rgba(147, 51, 234, 0.35);
  --border-eventos: rgba(147, 51, 234, 0.4);
  --btn-eventos-border: rgba(147, 51, 234, 0.6);
  --btn-eventos-hover: #9333ea;

  --glow-marcas: rgba(2, 132, 199, 0.35);
  --border-marcas: rgba(2, 132, 199, 0.4);
  --btn-marcas-border: rgba(2, 132, 199, 0.6);
  --btn-marcas-hover: #0284c7;

  --glow-brother: rgba(0, 102, 204, 0.35);
  --border-brother: rgba(0, 102, 204, 0.45);
  --btn-brother-border: rgba(0, 102, 204, 0.6);
  --btn-brother-hover: #0066cc;

  --glow-canon: rgba(204, 0, 0, 0.35);
  --border-canon: rgba(204, 0, 0, 0.45);
  --btn-canon-border: rgba(204, 0, 0, 0.6);
  --btn-canon-hover: #cc0000;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   FONDO AMBIENTAL TECNOLÓGICO CON DESTELLOS Y MALLA
   ======================================================== */
.portal-bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, #080d1e 0%, #04060e 70%);
}

/* Destello diagonal superior izquierdo */
.portal-bg-canvas::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.28) 0%, rgba(0, 102, 255, 0.08) 40%, transparent 70%);
  filter: blur(80px);
}

/* Destello diagonal inferior derecho */
.portal-bg-canvas::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.22) 0%, rgba(0, 102, 255, 0.06) 40%, transparent 70%);
  filter: blur(80px);
}

/* Líneas diagonales futuristas y haz de luz sutil */
.beam-flare-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.45) 0%, rgba(0, 132, 255, 0.1) 45%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.35;
  filter: blur(20px);
}

.beam-flare-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 450px;
  height: 280px;
  background: linear-gradient(315deg, rgba(0, 180, 255, 0.4) 0%, rgba(0, 102, 255, 0.08) 45%, transparent 70%);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  opacity: 0.35;
  filter: blur(25px);
}

/* Onda de puntos cibernéticos en la parte inferior */
.cyber-dots-mesh {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background-image: radial-gradient(rgba(0, 180, 255, 0.28) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 100%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 100%, #000 30%, transparent 85%);
  opacity: 0.7;
}

/* ========================================================
   CONTENEDOR DEL PORTAL
   ======================================================== */
.portal-main-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 44px 28px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================================================
   HEADER PRINCIPAL (TAL CUAL LA IMAGEN DE REFERENCIA)
   ======================================================== */
.portal-header-hero {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.portal-brand-logo-wrap {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.portal-brand-logo-img {
  height: 84px;
  width: auto;
  max-width: 88vw;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 102, 255, 0.35));
  transition: transform 0.3s ease;
}

.portal-brand-logo-wrap:hover .portal-brand-logo-img {
  transform: scale(1.02);
}

.hero-tagline-top {
  font-size: 14.5px;
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.hero-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-section-subtitle {
  font-size: 14.5px;
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.5;
}

/* ========================================================
   CUADRÍCULA DE TARJETAS (EXACTAMENTE 4 EN ESCRITORIO / 2 EN MÓVIL)
   ======================================================== */
.microsites-section {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.microsites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
}

/* ========================================================
   TARJETA INDIVIDUAL DE MICROSITIO
   ======================================================== */
.portal-site-card {
  position: relative;
  background: rgba(8, 14, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  user-select: none;
  outline: none;
}

/* Efecto hover suave con elevación */
.portal-site-card:hover {
  transform: translateY(-6px);
}

/* Temas específicos por micrositio según la imagen */
.card-theme-grizzly {
  border-color: var(--border-grizzly);
}
.card-theme-grizzly:hover {
  border-color: rgba(0, 168, 255, 0.85);
  box-shadow: 0 16px 36px -10px var(--glow-grizzly), 0 0 20px rgba(0, 132, 255, 0.25);
}

.card-theme-aniversario {
  border-color: var(--border-aniversario);
}
.card-theme-aniversario:hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 16px 36px -10px var(--glow-aniversario), 0 0 22px rgba(0, 102, 255, 0.32);
}

.card-theme-eventos {
  border-color: var(--border-eventos);
}
.card-theme-eventos:hover {
  border-color: rgba(192, 132, 252, 0.85);
  box-shadow: 0 16px 36px -10px var(--glow-eventos), 0 0 20px rgba(147, 51, 234, 0.25);
}

.card-theme-marcas {
  border-color: var(--border-marcas);
}
.card-theme-marcas:hover {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 16px 36px -10px var(--glow-marcas), 0 0 20px rgba(2, 132, 199, 0.25);
}

.card-theme-brother {
  border-color: var(--border-brother);
}
.card-theme-brother:hover {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 16px 36px -10px var(--glow-brother), 0 0 20px rgba(0, 102, 204, 0.35);
}

.card-theme-canon {
  border-color: var(--border-canon);
}
.card-theme-canon:hover {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 16px 36px -10px var(--glow-canon), 0 0 20px rgba(204, 0, 0, 0.35);
}

/* Área de Cabecera Visual / Banner Superior de la Tarjeta */
.card-visual-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b17;
}

.card-visual-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-site-card:hover .card-visual-img {
  transform: scale(1.03);
}

/* Cuerpo de la Tarjeta (Texto + Botón) */
.card-body-content {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.card-brief-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Botón en forma de Pastilla (Tal cual la imagen) */
.card-pill-btn {
  width: 100%;
  max-width: 180px;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  margin-top: auto;
}

.card-pill-btn i {
  font-size: 11px;
  transition: transform 0.22s ease;
}

.card-theme-grizzly .card-pill-btn {
  border-color: var(--btn-grizzly-border);
}
.portal-site-card.card-theme-grizzly:hover .card-pill-btn {
  background: var(--btn-grizzly-hover);
  border-color: #0099ff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
}

.card-theme-aniversario .card-pill-btn {
  border-color: var(--btn-aniversario-border);
}
.portal-site-card.card-theme-aniversario:hover .card-pill-btn {
  background: var(--btn-aniversario-hover);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.45);
}

.card-theme-eventos .card-pill-btn {
  border-color: var(--btn-eventos-border);
}
.portal-site-card.card-theme-eventos:hover .card-pill-btn {
  background: var(--btn-eventos-hover);
  border-color: #a855f7;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.card-theme-marcas .card-pill-btn {
  border-color: var(--btn-marcas-border);
}
.portal-site-card.card-theme-marcas:hover .card-pill-btn {
  background: var(--btn-marcas-hover);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.card-theme-brother .card-pill-btn {
  border-color: var(--btn-brother-border);
}
.portal-site-card.card-theme-brother:hover .card-pill-btn {
  background: var(--btn-brother-hover);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
}

.card-theme-canon .card-pill-btn {
  border-color: var(--btn-canon-border);
}
.portal-site-card.card-theme-canon:hover .card-pill-btn {
  background: var(--btn-canon-hover);
  border-color: #f87171;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.4);
}

.portal-site-card:hover .card-pill-btn i {
  transform: translateX(3px);
}

/* ========================================================
   FOOTER SOBRIO
   ======================================================== */
.portal-footer-minimal {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-gray);
}

.portal-footer-minimal a {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portal-footer-minimal a:hover {
  text-decoration: underline;
}

/* ========================================================
   MODAL CORPORATIVO (PARA MARCAS Y EVENTOS EN DESARROLLO)
   ======================================================== */
.corp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.corp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.corp-modal-box {
  background: #0b1324;
  border: 1px solid rgba(0, 132, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 102, 204, 0.25);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 32px 26px 26px;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.corp-modal-overlay.active .corp-modal-box {
  transform: scale(1);
}

.corp-modal-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 22px;
}

.corp-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.corp-modal-text {
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 22px;
}

.corp-modal-btn {
  background: #0066cc;
  color: #ffffff;
  border: 1px solid #0084ff;
  padding: 10px 26px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.corp-modal-btn:hover {
  background: #0077ee;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.4);
}

/* ========================================================
   RESPONSIVE DESIGN (REGLAS ESTRICTAS DEL USUARIO)
   - Escritorio: 4 Columnas horizontales
   - Celulares: Cuadrícula de 2 Columnas
   ======================================================== */

@media (max-width: 1080px) {
  .microsites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .card-brief-desc {
    font-size: 12px;
  }
}

/* Celulares / Móviles (Max-width 767px): 2 Columnas */
@media (max-width: 767px) {
  .portal-main-wrapper {
    padding: 32px 14px 24px;
  }

  .portal-brand-logo-img {
    height: 64px;
  }

  .hero-tagline-top {
    font-size: 12.5px;
    margin-bottom: 16px;
  }

  .hero-section-title {
    font-size: 23px;
    margin-bottom: 6px;
  }

  .hero-section-subtitle {
    font-size: 12px;
    margin-bottom: 24px;
  }

  /* 2 COLUMNAS EN CELULARES */
  .microsites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portal-site-card {
    border-radius: 14px;
  }

  .card-body-content {
    padding: 14px 10px 16px;
  }

  .card-brief-desc {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-pill-btn {
    padding: 7px 10px;
    font-size: 10.5px;
    max-width: 100%;
  }

  .portal-footer-minimal {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ========================================================
   SUBPANEL / MODAL SELECTOR DE MARCAS OFICIALES (DISEÑO PROFESIONAL)
   ======================================================== */
.corp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.corp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.marcas-modal-box {
  background: #0d111b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 760px;
  width: 95%;
  padding: 38px 36px 30px;
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.corp-modal-overlay.active .marcas-modal-box {
  transform: scale(1);
}

.marcas-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 6px;
}

.marcas-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}

.marcas-modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.marcas-modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.marcas-modal-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 28px;
}

.marcas-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.brand-choice-card {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.brand-choice-card.brother:hover {
  background: #151c2a;
  border-color: rgba(0, 91, 172, 0.55);
  box-shadow: 0 16px 36px -8px rgba(0, 91, 172, 0.28);
  transform: translateY(-4px);
}

.brand-choice-card.canon:hover {
  background: #1c1518;
  border-color: rgba(204, 0, 0, 0.55);
  box-shadow: 0 16px 36px -8px rgba(204, 0, 0, 0.28);
  transform: translateY(-4px);
}

/* Recuadro de logo en fondo blanco limpio para máxima nitidez corporativa */
.brand-logo-stage {
  background: #ffffff;
  border-radius: 12px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease;
}

.brand-choice-card:hover .brand-logo-stage {
  transform: scale(1.02);
}

.brand-logo-stage img {
  max-height: 32px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}

.brand-choice-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brand-subtag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  display: block;
}

.brand-subtag.brother {
  color: #38bdf8;
}

.brand-subtag.canon {
  color: #f87171;
}

.brand-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.brand-bullets-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.brand-bullets-list li {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}

.brand-bullets-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.brand-choice-card.brother .brand-bullets-list li::before {
  color: #005bac;
}

.brand-choice-card.canon .brand-bullets-list li::before {
  color: #cc0000;
}

.brand-action-pill {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  color: #ffffff;
}

.brand-action-pill.brother {
  background: #005bac;
}

.brand-action-pill.canon {
  background: #cc0000;
}

.brand-choice-card.brother:hover .brand-action-pill.brother {
  background: #0284c7;
}

.brand-choice-card.canon:hover .brand-action-pill.canon {
  background: #e60000;
}

.action-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.brand-choice-card:hover .action-arrow {
  transform: translateX(4px);
}

.marcas-modal-footer-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .marcas-brand-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .marcas-modal-box {
    padding: 30px 20px 24px;
  }
}
