@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --md-primary: #1a73e8;
  --md-primary-dark: #1557b0;
  --md-primary-soft: #e8f0fe;
  --md-secondary: #34a853;
  --md-error: #d93025;
  --md-warning: #f9ab00;
  --md-surface: #ffffff;
  --md-surface-2: #f8fafd;
  --md-border: #d2d9e3;
  --md-text: #202124;
  --md-text-soft: #5f6368;
  --md-shadow-1: 0 1px 2px rgba(60, 64, 67, 0.18), 0 1px 3px 1px rgba(60, 64, 67, 0.1);
  --md-shadow-2: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);
  --md-radius-sm: 12px;
  --md-radius: 18px;
  --md-radius-lg: 24px;
}

html {
  background: linear-gradient(180deg, #eef3fd 0%, #f7fafe 24%, #eef2f7 100%);
  min-height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--md-text);
  background:
    radial-gradient(circle at top right, rgba(26, 115, 232, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(52, 168, 83, 0.08), transparent 18%),
    linear-gradient(180deg, #eef3fd 0%, #f6f9fe 28%, #eef2f7 100%);
  min-height: 100vh;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
select,
textarea,
label,
span,
li,
td,
th {
  font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--md-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

p,
label,
li,
td,
th {
  color: var(--md-text-soft);
}

a {
  color: var(--md-primary);
  transition: color 160ms ease, opacity 160ms ease;
}

a:hover {
  color: var(--md-primary-dark);
}

.row {
  max-width: 1180px;
}

#nav {
  background: transparent;
  padding: 1.25rem 1rem 0;
  position: relative;
  z-index: 2000;
}

.top-bar,
.top-bar ul,
.top-bar .menu-text,
.top-bar-right ul,
.top-bar ul li a {
  background: transparent !important;
}

.top-bar {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--md-text);
  border: 1px solid rgba(210, 217, 227, 0.8);
  box-shadow: var(--md-shadow-1);
  border-radius: 22px;
  padding: 0.85rem 1.1rem;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2001;
}

.top-bar-title,
.top-bar-title strong,
.top-bar-title a,
.top-bar .menu > li > a,
.top-bar .dropdown.menu > li.is-dropdown-submenu-parent > a::after {
  color: var(--md-text) !important;
}

.top-bar .dropdown.menu,
.top-bar .dropdown.menu > li,
.top-bar .is-dropdown-submenu-parent {
  position: relative;
  z-index: 2050;
}

.top-bar-title a {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-bar .menu > li > a {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 500;
}

.top-bar .menu > li > a:hover,
.top-bar .menu > li.is-active > a,
.top-bar .menu > li > a:focus {
  background: var(--md-primary-soft) !important;
  color: var(--md-primary) !important;
  text-decoration: none;
}

.top-bar .is-dropdown-submenu,
.top-bar .menu.vertical,
.top-bar .submenu {
  background: #ffffff !important;
  border: 1px solid rgba(210, 217, 227, 0.92) !important;
  border-radius: 18px !important;
  box-shadow: var(--md-shadow-2);
  padding: 0.45rem;
  position: absolute;
  z-index: 2100 !important;
  inset: auto auto auto 0;
}

.top-bar .is-dropdown-submenu li,
.top-bar .menu.vertical li,
.top-bar .submenu li {
  background: #ffffff !important;
}

.top-bar .is-dropdown-submenu li a,
.top-bar .menu.vertical li a,
.top-bar .submenu li a {
  background: #ffffff !important;
  color: var(--md-text) !important;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
}

.top-bar .is-dropdown-submenu li a:hover,
.top-bar .is-dropdown-submenu li a:focus,
.top-bar .menu.vertical li a:hover,
.top-bar .menu.vertical li a:focus,
.top-bar .submenu li a:hover,
.top-bar .submenu li a:focus {
  background: #ffffff !important;
  color: var(--md-primary) !important;
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.18);
}

.top-bar img {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.callout,
.tabs-panel,
.responsive-table,
.responsive,
.reveal,
fieldset {
  background: var(--md-surface);
  border: 1px solid rgba(210, 217, 227, 0.8);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-1);
}

.callout {
  padding: 1.5rem;
}

.callout.secondary {
  background: rgba(255, 255, 255, 0.96);
}

.hero-material {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.98) 0%, rgba(234, 238, 243, 0.98) 100%) !important;
  border: 1px solid rgba(206, 213, 221, 0.95) !important;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-material-title,
.hero-material-text {
  margin: auto;
  text-align: center;
}

.hero-material-title {
  color: #374151;
}

.hero-material-text {
  color: #5f6368;
  max-width: 42rem;
}

.hero-material .tabs {
  margin-top: 1.1rem;
  gap: 0.55rem;
}

.hero-material .tabs-title {
  margin-right: 0;
}

.hero-material .tabs-title > a {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(206, 213, 221, 0.95);
  border-radius: 14px;
  color: #5f6368;
  font-weight: 500;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.hero-material .tabs-title > a:hover,
.hero-material .tabs-title > a:focus,
.hero-material .tabs-title > a[aria-selected='true'],
.hero-material .tabs-title.is-active > a {
  background: #ffffff;
  color: #374151;
  border-color: rgba(26, 115, 232, 0.22);
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.08);
}

.callout.success {
  background: #ecf7ee;
  border-color: rgba(52, 168, 83, 0.25);
  color: #196c2e;
}

.callout.alert,
.callout.warning {
  background: #fff7e7;
  border-color: rgba(249, 171, 0, 0.28);
  color: #8a5a00;
}

.alert.callout {
  background: #fce8e6;
  border-color: rgba(217, 48, 37, 0.2);
  color: #a50e0e;
}

.callout .close-button,
.alert.callout .close-button,
.success.callout .close-button {
  background: #eef1f5 !important;
  color: #5f6368 !important;
  border: 1px solid rgba(206, 213, 221, 0.95);
  border-radius: 10px;
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1.65rem;
  box-shadow: none;
}

.callout .close-button:hover,
.callout .close-button:focus,
.alert.callout .close-button:hover,
.alert.callout .close-button:focus,
.success.callout .close-button:hover,
.success.callout .close-button:focus {
  background: #e3e8ef !important;
  color: #374151 !important;
  border-color: rgba(176, 186, 198, 0.95);
}

.alert.callout .close-button {
  background: #f6e3e2 !important;
  color: #a50e0e !important;
  border-color: rgba(217, 48, 37, 0.22);
}

.alert.callout .close-button:hover,
.alert.callout .close-button:focus {
  background: #f2d7d5 !important;
  color: #8b0000 !important;
}

.button,
button,
input[type="submit"],
input[type="button"] {
  background: var(--md-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3), 0 1px 3px rgba(26, 115, 232, 0.2);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--md-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--md-shadow-2);
}

.button.hollow,
button.hollow {
  background: transparent;
  color: var(--md-primary);
  border: 1px solid rgba(26, 115, 232, 0.28);
  box-shadow: none;
}

.button.hollow:hover,
button.hollow:hover {
  background: var(--md-primary-soft);
  color: var(--md-primary-dark);
}

.button.secondary {
  background: #edf2fd;
  color: var(--md-primary);
}

label {
  color: var(--md-text);
  font-size: 0.95rem;
  font-weight: 500;
}

input,
select,
textarea {
  background: #fff !important;
  border: 1px solid var(--md-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: var(--md-text) !important;
  min-height: 3rem;
  padding: 0.85rem 1rem !important;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea {
  min-height: 8rem;
}

input::placeholder,
textarea::placeholder {
  color: #80868b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--md-primary) !important;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14) !important;
  background: #fff !important;
}

.form-error,
.error_usuario {
  margin-top: 0.35rem;
  color: var(--md-error) !important;
  font-size: 0.86rem;
}

.is-invalid-input:not(:focus) {
  border-color: var(--md-error) !important;
  background-color: #fff7f6 !important;
}

.tabs {
  border: 0;
  background: transparent;
}

.tabs-title {
  margin-right: 0.5rem;
}

.tabs-title > a {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(210, 217, 227, 0.8);
  border-radius: 999px;
  color: var(--md-text-soft);
  font-weight: 500;
  padding: 0.8rem 1.15rem;
}

.tabs-title > a:focus,
.tabs-title > a[aria-selected='true'],
.tabs-title > a:hover {
  background: var(--md-primary-soft);
  color: var(--md-primary);
}

.responsive-card-table,
table {
  background: var(--md-surface);
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
}

.responsive-card-table th,
table th {
  background: #eef3fd;
  color: #425466;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.responsive-card-table td,
table td {
  color: var(--md-text);
  border-top: 1px solid rgba(210, 217, 227, 0.7);
}

.dropdown-pane {
  border: 1px solid rgba(210, 217, 227, 0.8);
  border-radius: 18px;
  box-shadow: var(--md-shadow-2);
}

.button-group {
  position: relative;
  overflow: visible;
}

.pago-submenu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 5000 !important;
  min-width: 220px;
  background: #fff !important;
}

.responsive-card-table,
.responsive-card-table tbody,
.responsive-card-table tr,
.responsive-card-table td {
  overflow: visible;
}

.menu-icon::after {
  background: var(--md-text);
  box-shadow: 0 7px 0 var(--md-text), 0 14px 0 var(--md-text);
}

#contenido_marco {
  background: #fff;
  border-radius: 16px;
  border-color: rgba(210, 217, 227, 0.8);
}

#footer {
  max-width: 1180px;
  margin: 2rem auto 1rem;
  padding: 0 1rem 1rem;
  color: var(--md-text-soft);
  font-style: normal;
}

.alertify .ajs-dialog,
.alertify .ajs-modal {
  font-family: 'Roboto', sans-serif;
}

.alertify .ajs-header {
  color: var(--md-text);
}

.alertify .ajs-footer .ajs-buttons .ajs-button {
  border-radius: 999px;
}

@media screen and (max-width: 640px) {
  #nav {
    padding: 0.75rem 0.5rem 0;
  }

  .top-bar {
    border-radius: 18px;
    padding: 0.85rem;
  }

  .top-bar-title {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .top-bar-title strong {
    order: 1;
  }

  .top-bar-title span[data-responsive-toggle] {
    order: 2;
    margin-left: auto;
  }

  .top-bar-title .menu-icon {
    background: #ffffff !important;
    border: 1px solid rgba(210, 217, 227, 0.95);
    border-radius: 10px;
    width: 2rem;
    height: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .top-bar-title .menu-icon::after {
    width: 13px;
    height: 2px;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #5f6368;
    box-shadow: 0 5px 0 #5f6368, 0 10px 0 #5f6368;
  }

  .top-bar-title .menu-icon:hover::after,
  .top-bar-title .menu-icon:focus::after {
    background: #3c4043;
    box-shadow: 0 5px 0 #3c4043, 0 10px 0 #3c4043;
  }

  #responsive-menu,
  #responsive-menu .top-bar-left,
  #responsive-menu .top-bar-right,
  #responsive-menu .menu,
  #responsive-menu ul,
  #responsive-menu li,
  #responsive-menu a {
    background: transparent !important;
  }

  #responsive-menu {
    width: 100%;
    clear: both;
    margin-top: 10px !important;
    padding: 0.55rem;
    border: 1px solid rgba(210, 217, 227, 0.9);
    border-radius: 14px;
    box-shadow: var(--md-shadow-1);
    background: rgba(255, 255, 255, 0.96) !important;
  }

  #responsive-menu .top-bar-left,
  #responsive-menu .top-bar-right {
    float: none !important;
    width: 100%;
  }

  #responsive-menu .top-bar-right {
    margin-top: 0.45rem;
  }

  #responsive-menu .top-bar-right .menu {
    justify-content: center;
  }

  #responsive-menu .dropdown.menu > li,
  #responsive-menu .menu > li {
    display: block;
    width: 100%;
  }

  #responsive-menu .dropdown.menu > li > a,
  #responsive-menu .menu > li > a {
    text-align: left;
    justify-content: flex-start;
    background: #ffffff !important;
    color: var(--md-text) !important;
  }

  #responsive-menu .menu > li.active > a,
  #responsive-menu .menu > li.is-active > a,
  #responsive-menu .dropdown.menu > li.active > a,
  #responsive-menu .dropdown.menu > li.is-active > a,
  #responsive-menu .is-dropdown-submenu-parent > a,
  #responsive-menu .is-accordion-submenu-parent > a {
    background: #ffffff !important;
    color: var(--md-text) !important;
    box-shadow: none !important;
  }

  #responsive-menu .is-dropdown-submenu,
  #responsive-menu .submenu,
  #responsive-menu .is-dropdown-submenu li,
  #responsive-menu .submenu li,
  #responsive-menu .is-dropdown-submenu li a,
  #responsive-menu .submenu li a {
    background: #ffffff !important;
  }

  #responsive-menu .is-dropdown-submenu,
  #responsive-menu .submenu {
    border: 1px solid rgba(210, 217, 227, 0.95) !important;
    border-radius: 12px !important;
    box-shadow: var(--md-shadow-1);
    padding: 0.35rem;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin-top: 0.35rem;
    z-index: 3200 !important;
  }

  #responsive-menu .dropdown.menu > li > a,
  #responsive-menu .menu > li > a {
    position: relative;
    z-index: 1;
  }

  #responsive-menu .is-dropdown-submenu li a,
  #responsive-menu .submenu li a {
    color: var(--md-text) !important;
    border-radius: 10px;
    position: relative;
    z-index: 3201;
    pointer-events: auto;
  }

  #responsive-menu .is-dropdown-submenu li a:hover,
  #responsive-menu .is-dropdown-submenu li a:focus,
  #responsive-menu .submenu li a:hover,
  #responsive-menu .submenu li a:focus {
    background: #f6f8fb !important;
    color: var(--md-primary) !important;
  }

  .callout {
    padding: 1rem;
    border-radius: 16px;
  }

  .top-bar .menu > li > a,
  .button,
  button {
    width: 100%;
  }
}
