/*
 * ISCOM — Modernización visual para Zoho Desk ASAP
 * Inspirado en iscom.com.mx / Portal de clientes 2026
 * Pegar después de los estilos actuales del tema.
 */

:root {
  --iscom-navy-950: #071426;
  --iscom-navy-900: #0b182b;
  --iscom-navy-800: #13223a;
  --iscom-red-700: #b51220;
  --iscom-red-600: #d01827;
  --iscom-red-500: #e22b38;
  --iscom-rose: #ff9ea5;
  --iscom-ink: #0a1830;
  --iscom-text: #2c3c54;
  --iscom-muted: #6d7b8f;
  --iscom-soft: #f5f7fb;
  --iscom-border: #e3e8f0;
  --iscom-shadow: 0 18px 54px rgba(8, 24, 48, .11);
  --iscom-container: 1240px;
  --iscom-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--iscom-text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(208, 24, 39, .22);
  outline-offset: 3px;
}

/* Contenedor general */
.zd-container {
  width: min(calc(100% - 40px), var(--iscom-container));
  max-width: var(--iscom-container);
  margin: 0 auto;
  padding: 0;
}

/* Navegación */
.zd-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  border-bottom: 1px solid rgba(227, 232, 240, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(7, 20, 38, .04);
  backdrop-filter: blur(14px) saturate(150%);
}

.zd-navbar .row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.zd-logo img {
  width: auto;
  max-width: 180px;
  height: 42px;
  object-fit: contain;
  vertical-align: middle;
}

.zd-menuTab ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zd-menuTab li {
  font-size: 14px;
  font-weight: 700;
}

.zd-menuTab a,
.zd-tabsTab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: #2d3b55;
  text-decoration: none;
  transition: color .18s ease;
}

.zd-menuTab a::after,
.zd-tabsTab::after {
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 4px;
  background: var(--iscom-red-600);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
}

.zd-menuTab a:hover,
.zd-tabsTab:hover,
.zd-menuTab .is-active a,
.zd-menuTab .zd-tabsTab.is-active {
  color: var(--iscom-red-700);
}

.zd-menuTab a:hover::after,
.zd-tabsTab:hover::after,
.zd-menuTab .is-active a::after,
.zd-menuTab .zd-tabsTab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Menú móvil */
.zd-menuicon {
  display: none;
}

.zd-menuBoxMain {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--iscom-border);
  border-radius: 12px;
  cursor: pointer;
}

.zd-menu {
  position: relative;
  display: inline-block;
  width: 21px;
  height: 2px;
  border-radius: 3px;
  background: var(--iscom-navy-900);
}

.zd-menu::before,
.zd-menu::after {
  position: absolute;
  left: 0;
  width: 21px;
  height: 2px;
  content: "";
  border-radius: 3px;
  background: var(--iscom-navy-900);
  transition: transform .22s ease, top .22s ease, opacity .22s ease;
}

.zd-menu::before { top: -7px; }
.zd-menu::after { top: 7px; }

body.nav-open .zd-menu { background: transparent; }
body.nav-open .zd-menu::before { top: 0; transform: rotate(45deg); }
body.nav-open .zd-menu::after { top: 0; transform: rotate(-45deg); }

/* Hero: se elimina la imagen antigua para un aspecto limpio y actual */
.zd-heroHeader {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px 20px;
  background:
    linear-gradient(116deg, rgba(7, 20, 38, .99), rgba(10, 25, 46, .98) 52%, rgba(35, 17, 32, .98)),
    var(--iscom-navy-950);
  color: #fff;
  text-align: center;
}

.zd-heroHeader::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, #000, transparent 85%);
}

.zd-heroHeader::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  content: "iscom";
  color: rgba(255, 255, 255, .025);
  font-size: clamp(150px, 21vw, 330px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .75;
}

.zd-heroOverlay {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  padding: 0;
}

.zd-heroTitle {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 5.7vw, 68px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
  text-shadow: none;
}

.zd-heroDescription {
  max-width: 690px;
  margin: 0 auto 30px;
  color: #c7d7ea;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  text-shadow: none;
}

/* Buscador principal */
.zd-heroSearch {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}

.zd-heroSearch::before {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 2;
  content: "⌕";
  color: #718096;
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-52%) rotate(-18deg);
}

.zd-heroSearch input[type="text"],
.zd-heroSearch input[type="search"] {
  width: 100%;
  min-height: 70px;
  padding: 16px 64px 16px 62px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  outline: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  color: var(--iscom-ink);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.zd-heroSearch input[type="text"]:focus,
.zd-heroSearch input[type="search"]:focus {
  border-color: var(--iscom-red-500);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .25),
    0 0 0 4px rgba(208, 24, 39, .11);
}

.zd-heroSearch input::placeholder {
  color: #8793a5;
  opacity: 1;
}

/* Contenido de Zoho: hace legibles listados y formularios muy estrechos */
.zd-content,
.zd-mainContent,
.zd-pageContent,
.zd-ticketForm,
.zd-formContainer {
  color: var(--iscom-text);
}

.zd-mainContent,
.zd-pageContent {
  padding-top: 48px;
  padding-bottom: 72px;
}

.zd-ticketForm,
.zd-formContainer,
.zd-formWrapper {
  width: min(100%, 820px);
  max-width: 820px;
  padding: 34px;
  border: 1px solid var(--iscom-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--iscom-shadow);
}

.zd-ticketForm h1,
.zd-ticketForm h2,
.zd-formContainer h1,
.zd-formContainer h2,
.zd-mainContent h1,
.zd-mainContent h2 {
  color: var(--iscom-ink);
  font-weight: 800;
  letter-spacing: -.03em;
}

.zd-ticketForm label,
.zd-formContainer label {
  color: #34435a;
  font-size: 13px;
  font-weight: 700;
}

.zd-ticketForm input[type="text"],
.zd-ticketForm input[type="email"],
.zd-ticketForm input[type="tel"],
.zd-ticketForm input[type="password"],
.zd-ticketForm select,
.zd-ticketForm textarea,
.zd-formContainer input[type="text"],
.zd-formContainer input[type="email"],
.zd-formContainer input[type="tel"],
.zd-formContainer input[type="password"],
.zd-formContainer select,
.zd-formContainer textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  outline: 0;
  background: #fbfcfe;
  color: var(--iscom-ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.zd-ticketForm textarea,
.zd-formContainer textarea {
  min-height: 130px;
  resize: vertical;
}

.zd-ticketForm input:focus,
.zd-ticketForm select:focus,
.zd-ticketForm textarea:focus,
.zd-formContainer input:focus,
.zd-formContainer select:focus,
.zd-formContainer textarea:focus {
  border-color: var(--iscom-red-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(208, 24, 39, .08);
}

/* Botones comunes de Zoho */
.zd-button,
.zd-primaryButton,
button[type="submit"],
input[type="submit"] {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--iscom-red-700), var(--iscom-red-600));
  box-shadow: 0 10px 24px rgba(181, 18, 32, .2);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

.zd-button:hover,
.zd-primaryButton:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  box-shadow: 0 14px 30px rgba(181, 18, 32, .29);
  transform: translateY(-2px);
}

/* Artículos, categorías y tarjetas */
.zd-category,
.zd-article,
.zd-articleList li,
.zd-communityPost,
.zd-card {
  border: 1px solid var(--iscom-border);
  border-radius: var(--iscom-radius);
  background: #fff;
  box-shadow: 0 8px 25px rgba(8, 24, 48, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.zd-category:hover,
.zd-article:hover,
.zd-articleList li:hover,
.zd-communityPost:hover,
.zd-card:hover {
  border-color: #cbd5e4;
  box-shadow: var(--iscom-shadow);
  transform: translateY(-4px);
}

/* Panel lateral / artículos populares */
.zd-sidebar,
.zd-rightPanel {
  padding: 22px;
  border: 1px solid var(--iscom-border);
  border-radius: var(--iscom-radius);
  background: var(--iscom-soft);
}

.zd-sidebar a,
.zd-rightPanel a,
.zd-articleList a {
  color: var(--iscom-text);
  line-height: 1.5;
  text-decoration: none;
}

.zd-sidebar a:hover,
.zd-rightPanel a:hover,
.zd-articleList a:hover {
  color: var(--iscom-red-700);
}

/* Pie */
.zd-footer {
  margin-top: 80px;
  padding: 48px 20px;
  background: #050e1b;
  color: #95a6bc;
  text-align: center;
}

.zd-footer-container {
  max-width: 1100px;
  margin: auto;
}

.zd-footer-top img {
  width: auto;
  height: 34px;
  margin-bottom: 12px;
}

.zd-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  font-size: 13px;
}

.zd-footer-links a {
  color: #d8e3f1;
  text-decoration: none;
}

.zd-footer-links a:hover {
  color: #fff;
}

.zd-footer-bottom {
  margin-top: 18px;
  color: #72839a;
  font-size: 12px;
}

/* Móvil y tableta */
@media (max-width: 980px) {
  .zd-menuicon {
    display: block;
  }

  .zd-menuTab {
    display: none;
  }

  body.nav-open .zd-menuTab {
    position: absolute;
    top: 82px;
    right: 20px;
    left: 20px;
    display: block;
    padding: 10px 16px;
    border: 1px solid var(--iscom-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--iscom-shadow);
  }

  .zd-menuTab ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .zd-menuTab a,
  .zd-tabsTab {
    min-height: 46px;
    width: 100%;
    padding: 0 10px;
    border-radius: 9px;
  }

  .zd-menuTab a::after,
  .zd-tabsTab::after {
    display: none;
  }

  .zd-menuTab a:hover,
  .zd-tabsTab:hover {
    background: var(--iscom-soft);
  }
}

@media (max-width: 640px) {
  .zd-container {
    width: min(calc(100% - 28px), var(--iscom-container));
  }

  .zd-navbar,
  .zd-navbar .row {
    min-height: 70px;
  }

  .zd-logo img {
    max-width: 150px;
    height: 36px;
  }

  body.nav-open .zd-menuTab {
    top: 70px;
    right: 14px;
    left: 14px;
  }

  .zd-heroHeader {
    min-height: 500px;
    padding: 68px 14px;
  }

  .zd-heroTitle {
    font-size: clamp(39px, 12vw, 54px);
  }

  .zd-heroDescription {
    font-size: 16px;
  }

  .zd-heroSearch input[type="text"],
  .zd-heroSearch input[type="search"] {
    min-height: 62px;
    padding-right: 20px;
    padding-left: 54px;
    border-radius: 15px;
    font-size: 14px;
  }

  .zd-heroSearch::before {
    left: 18px;
    font-size: 26px;
  }

  .zd-ticketForm,
  .zd-formContainer,
  .zd-formWrapper {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .zd-mainContent,
  .zd-pageContent {
    padding-top: 30px;
    padding-bottom: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

