:root {
  --navy: #112b4e;
  --navy-dark: #0a1a30;
  --teal: #1d5b5e;
  --mint: #70e1b0;
  --mint-soft: #57c5b6;
  /* Barra superior e inferior: fondo claro para que el logo (oscuro + menta) destaque */
  --header-footer-top: #f7fafc;
  --header-footer-bottom: #e8eef5;
  --header-footer-border: rgba(17, 43, 78, 0.14);
  --header-footer-text: #0f2847;
  --header-footer-muted: #3d5a73;
  --bg: #f8f9fa;
  --text: #1a1a1a;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(17, 43, 78, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(180deg, var(--header-footer-top) 0%, var(--header-footer-bottom) 100%);
  color: var(--header-footer-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 20px rgba(17, 43, 78, 0.08);
  border-bottom: 1px solid var(--header-footer-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  color: var(--header-footer-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header__brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-header__logo {
  height: clamp(54px, 7vw, 76px);
  width: auto;
  max-width: min(300px, 88vw);
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

.site-header__brand--portal {
  gap: 0.75rem;
}

.site-header__portal-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  border-left: 1px solid var(--header-footer-border);
  padding-left: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .site-header__brand--portal {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .site-header__portal-tag {
    border-left: none;
    padding-left: 0;
    width: 100%;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav--left {
  grid-column: 1;
  justify-content: flex-end;
}

.site-nav--right {
  grid-column: 3;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: stretch;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .site-nav--left,
  .site-nav--right {
    grid-column: 1;
    justify-content: center;
  }

  .site-header__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav--left {
    grid-row: 2;
  }

  .site-nav--right {
    grid-row: 3;
  }
}

.site-nav a {
  color: var(--header-footer-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--teal);
  border-bottom-color: var(--mint-soft);
  text-decoration: none;
}

.site-nav__cta {
  background: linear-gradient(135deg, var(--mint-soft) 0%, var(--mint) 100%);
  color: var(--navy-dark) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  font-weight: 600;
  border: none !important;
  box-shadow: 0 2px 8px rgba(29, 91, 94, 0.25);
}

.site-nav__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 3px 12px rgba(29, 91, 94, 0.3);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 4rem 1.25rem 4.5rem;
  text-align: center;
}

.hero--gradient {
  background: linear-gradient(
    175deg,
    #12324a 0%,
    #1a4a5c 18%,
    var(--teal) 42%,
    var(--mint-soft) 100%
  );
}

.hero--media {
  background: #0c1828;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 24, 0.82) 0%,
    rgba(14, 42, 58, 0.48) 45%,
    rgba(6, 18, 32, 0.78) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--mint);
  color: var(--navy-dark);
  border-color: var(--mint);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.main-content {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--navy);
}

.lead {
  color: #444;
  margin-bottom: 2rem;
}

/* Páginas de acceso (registro / login): panel centrado */
.main-content--auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.auth-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  padding: 2.35rem 2rem 2.15rem;
  box-shadow:
    0 4px 8px rgba(17, 43, 78, 0.04),
    0 16px 48px rgba(17, 43, 78, 0.12);
  border: 1px solid rgba(17, 43, 78, 0.08);
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 45%, var(--mint-soft) 100%);
}

.auth-panel__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-panel__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-panel__intro {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--header-footer-muted);
}

.auth-form .form-group label {
  font-size: 0.88rem;
}

.auth-form .label-optional {
  font-weight: 500;
  color: var(--header-footer-muted);
}

.auth-form .form-group input,
.auth-form .form-group textarea,
.auth-form .form-group select {
  max-width: none;
  border-color: rgba(17, 43, 78, 0.14);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-form .form-group input:focus,
.auth-form .form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 91, 94, 0.15);
}

.auth-form__row--split {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 520px) {
  .auth-form__row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--header-footer-muted);
}

.auth-form__actions {
  margin-top: 0.5rem;
}

.auth-form .btn--primary {
  width: 100%;
  padding: 0.72rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 0.35rem;
}

.auth-panel__footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(17, 43, 78, 0.08);
  text-align: center;
  font-size: 0.92rem;
  color: var(--header-footer-muted);
}

.auth-panel__footer a {
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-grid--catalog {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.catalog-global-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 91, 94, 0.22);
  background: linear-gradient(135deg, rgba(232, 238, 245, 0.95) 0%, rgba(213, 228, 240, 0.65) 100%);
  color: var(--navy);
  font-size: 0.95rem;
}

.catalog-global-notice a {
  font-weight: 600;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 43, 78, 0.06);
}

.card--catalog {
  position: relative;
  overflow: hidden;
  border-color: rgba(17, 43, 78, 0.08);
  box-shadow:
    0 4px 24px rgba(17, 43, 78, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.card--catalog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 45%, var(--mint-soft) 100%);
  opacity: 0.92;
  pointer-events: none;
}

.card--hosting {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.card__description {
  margin: 0.5rem 0 0;
  font-size: 0.96rem;
  color: var(--text);
}

.card .catalog-price {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0 0;
  border-top: 1px dashed rgba(17, 43, 78, 0.12);
  font-size: 1.05rem;
}

.catalog-price__amount {
  color: var(--teal);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.catalog-price__period {
  margin-left: 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--header-footer-muted);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.hosting-plan-specs {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.hosting-plan-specs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(17, 43, 78, 0.04);
  border: 1px solid rgba(29, 91, 94, 0.12);
}

.hosting-plan-specs__label {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  min-width: 7rem;
}

.hosting-plan-specs__value {
  color: var(--header-footer-text);
  font-weight: 600;
}

.hosting-dns-hint {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--header-footer-muted);
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--mint-soft);
  background: linear-gradient(90deg, rgba(112, 225, 176, 0.12) 0%, rgba(232, 238, 245, 0.5) 100%);
}

.hosting-dns-hint code {
  font-size: 0.84em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.catalog-checkout-form {
  margin-top: 0.85rem;
}

.catalog-checkout-form .form-group {
  margin-bottom: 0.65rem;
}

.catalog-checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.catalog-checkout-form input[type="text"] {
  width: 100%;
  max-width: 22rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(17, 43, 78, 0.15);
}

.catalog-checkout-form input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 91, 94, 0.15);
}

.btn--catalog-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.catalog-purchase-fallback {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(29, 91, 94, 0.18);
  background: rgba(112, 225, 176, 0.08);
}

.catalog-purchase-fallback p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--header-footer-muted);
  line-height: 1.45;
}

.catalog-purchase-fallback--soft {
  padding: 0;
  border: none;
  background: transparent;
}

.catalog-purchase-fallback--soft .btn {
  width: 100%;
  justify-content: center;
}

.card--media .card__media {
  margin: -1.35rem -1.35rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--teal) 55%, rgba(112, 225, 176, 0.35) 100%);
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.site-footer {
  position: relative;
  background: linear-gradient(165deg, #e8eef5 0%, #d4e0ed 45%, #c9d8e8 100%);
  color: var(--header-footer-muted);
  padding: 2.75rem 1.5rem 3rem;
  margin-top: auto;
  border-top: 1px solid rgba(17, 43, 78, 0.12);
  box-shadow:
    0 -8px 40px rgba(17, 43, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 40%, var(--mint-soft) 100%);
  opacity: 0.95;
}

/* Una sola fila: cada columna apila su contenido (evita huecos si títulos y listas están en filas distintas del grid) */
.site-footer__inner--cols {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, 1fr));
  gap: 2rem 2.5rem;
  align-items: start;
  font-size: 0.95rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.site-footer__col--brand {
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .site-footer__inner--cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__inner--cols {
    grid-template-columns: 1fr;
  }
}

.site-footer__heading {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(29, 91, 94, 0.35);
  flex-shrink: 0;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin: 0 0 0.45rem;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__list a {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-footer__list a:hover {
  color: var(--navy);
  border-bottom-color: var(--mint-soft);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.site-footer__logo-link {
  display: block;
  margin-bottom: 0;
  line-height: 0;
  text-decoration: none;
  text-align: center;
  flex-shrink: 0;
}

.site-footer__logo-link:hover .site-footer__logo {
  transform: translateY(-50px) scale(1.02);
}

.site-footer__logo {
  display: block;
  margin: 0 auto;
  height: clamp(125px, 23.4vw, 218px);
  width: auto;
  max-width: min(480px, 100%);
  object-fit: contain;
  /* Alinear el dibujo del PNG con la parte superior (los h3 de las otras columnas) */
  object-position: top center;
  transform: translateY(-50px);
  transition: transform 0.25s ease;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert--success {
  background: #d4edda;
  color: #155724;
}
.alert--warning {
  background: #fff3cd;
  color: #856404;
}
.alert--danger {
  background: #f8d7da;
  color: #721c24;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 480px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Bloque de adjunto (contacto / cotización) */
.form-group--upload {
  margin-bottom: 1.35rem;
}

.file-upload-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.file-upload-optional {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(112, 225, 176, 0.25);
  border-radius: 6px;
  vertical-align: middle;
}

.file-upload-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--header-footer-muted);
  max-width: 520px;
  line-height: 1.55;
}

.file-upload-zone {
  max-width: 480px;
  border: 2px dashed rgba(29, 91, 94, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(112, 225, 176, 0.14) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(232, 238, 245, 0.5) 100%);
  padding: 1.1rem 1.2rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.file-upload-zone:hover {
  border-color: rgba(29, 91, 94, 0.5);
  box-shadow: 0 6px 28px rgba(17, 43, 78, 0.08);
}

.file-upload-zone:focus-within {
  border-color: var(--teal);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(29, 91, 94, 0.18);
}

.form-group--upload .file-upload-input {
  width: 100%;
  max-width: none;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group--upload .file-upload-input::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.5rem 1.05rem;
  border-radius: 8px;
  border: 1px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.form-group--upload .file-upload-input::file-selector-button:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.file-upload-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.file-upload-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(17, 43, 78, 0.12);
  border-radius: 6px;
}

.file-upload-status {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: var(--teal);
  font-weight: 500;
  min-height: 1.35em;
}

.file-upload-status:empty {
  display: none;
}

.btn--secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

table.data-table th,
table.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--pending {
  background: #fff3cd;
  color: #856404;
}
.badge--paid {
  background: #d4edda;
  color: #155724;
}
.badge--draft {
  background: #e2e3e5;
  color: #383d41;
}
