:root {
  --alameda-primary: #ff629b;
  --alameda-footer: #424554;
  --alameda-gradient-start: #ff5757;
  --alameda-gradient-end: #764aff;
  --alameda-text: #000;
  --alameda-muted: #707070;
  --alameda-border: #e6e6e6;
  --alameda-container: 1170px;
  --alameda-header-height: 90px;
  --alameda-radius: 4px;
  --alameda-shadow: 0 3px 5px rgba(0, 0, 0, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--alameda-text);
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--alameda-primary); text-decoration: none; transition: color .25s, background-color .25s, opacity .25s; }
a:hover, a:focus { color: color-mix(in srgb, var(--alameda-primary) 78%, #000); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: Montserrat, Arial, sans-serif; line-height: 1.2; margin: 0 0 .7em; font-weight: 400; }
h1 { font-size: 32.5px; font-weight: 500; }
h2 { font-size: 40px; }
h3 { font-size: 34px; }
p { margin: 0 0 1.25em; }
.container { width: min(calc(100% - 40px), var(--alameda-container)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 100000; padding: .75rem 1rem; background: #fff; color: #000; box-shadow: var(--alameda-shadow); }
.skip-link:focus { top: 1rem; }

.top-area { background: #fff; color: #333; position: relative; z-index: 101; }
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 8px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--alameda-header-height);
  background: transparent;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(137deg, var(--alameda-gradient-start), var(--alameda-gradient-end));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity .3s, background-image .3s;
}
/* En la portada el menú superior debe verse sobre el degradado desde el inicio. */
.is-home .site-header::after { opacity: 1; }
.site-header.is-fixed { position: fixed; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
/* Al fijarse durante el scroll, se incorpora la imagen de subheader bajo el degradado. */
.site-header.is-fixed::after {
  opacity: 1;
  background-image:
    linear-gradient(137deg, rgba(255, 87, 87, .88), rgba(118, 74, 255, .88)),
    var(--alameda-sticky-header-image);
}
.header-grid { height: 100%; display: grid; grid-template-columns: 3fr 9fr; align-items: center; }
.brand-area { min-width: 0; }
.brand { display: inline-flex; align-items: center; min-height: var(--alameda-header-height); padding-top: 18px; transition: padding .3s; }
.site-header.is-fixed .brand { padding-top: 0; }
.brand img { max-height: 66px; width: auto; }
.brand-text { color: #fff; font-size: 24px; font-weight: 600; }

.desktop-navigation { justify-self: end; height: 100%; }
.desktop-navigation .mod-menu,
.desktop-navigation ul { list-style: none; margin: 0; padding: 0; }
.desktop-navigation > .moduletable,
.desktop-navigation > .moduletable > ul,
.desktop-navigation > ul,
.desktop-navigation .mod-menu { height: 100%; }
.desktop-navigation .mod-menu > li { display: inline-flex; position: relative; height: 100%; align-items: center; }
.desktop-navigation .mod-menu > li > a,
.desktop-navigation .mod-menu > li > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin-top: 16px;
  padding: 0 13px;
  color: #fff;
  font-size: 15px;
  text-transform: none;
  white-space: nowrap;
  transition: margin .3s;
}
.site-header.is-fixed .desktop-navigation .mod-menu > li > a,
.site-header.is-fixed .desktop-navigation .mod-menu > li > span { margin-top: 0; }
.desktop-navigation .mod-menu > li > a::before,
.desktop-navigation .mod-menu > li > span::before {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 15px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}
.desktop-navigation .mod-menu > li.active > a::before,
.desktop-navigation .mod-menu > li.current > a::before,
.desktop-navigation .mod-menu > li > a:hover::before,
.desktop-navigation .mod-menu > li > a:focus-visible::before { transform: scaleX(1); }
.desktop-navigation li.parent > a::after,
.desktop-navigation li.deeper > a::after { content: "⌄"; margin-left: 6px; font-size: 13px; }
.desktop-navigation li ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: block;
  min-width: 270px;
  padding: 30px;
  background: #fff;
  border-radius: var(--alameda-radius);
  box-shadow: var(--alameda-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.desktop-navigation li:hover > ul,
.desktop-navigation li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.desktop-navigation li ul li { position: relative; margin-bottom: 10px; }
.desktop-navigation li ul li:last-child { margin-bottom: 0; }
.desktop-navigation li ul a,
.desktop-navigation li ul span { display: block; color: #4c4c4c; line-height: 1.5; }
.desktop-navigation li ul a:hover,
.desktop-navigation li ul a:focus { color: var(--alameda-primary); }
.desktop-navigation li ul ul { top: -30px; left: calc(100% + 30px); }

.menu-toggle { display: none; align-items: center; justify-content: center; gap: 7px; justify-self: end; border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.menu-toggle-icon { display: grid; gap: 4px; width: 22px; }
.menu-toggle-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 1990; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.drawer-overlay.is-visible { opacity: 1; }
.mobile-drawer { position: fixed; top: 0; right: 0; z-index: 2000; width: min(320px, 88vw); height: 100dvh; padding: 28px; background: #fff; color: #333; transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; box-shadow: -8px 0 28px rgba(0,0,0,.18); }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--alameda-border); }
.drawer-title { font-size: 20px; font-weight: 600; }
.drawer-close { border: 0; background: transparent; color: #333; font-size: 34px; line-height: 1; cursor: pointer; }
.mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
.mobile-navigation li { position: relative; border-bottom: 1px solid #eee; }
.mobile-navigation a,
.mobile-navigation li > span { display: block; padding: 13px 38px 13px 0; color: #333; }
.mobile-navigation li.active > a,
.mobile-navigation li.current > a,
.mobile-navigation a:hover { color: var(--alameda-primary); }
.mobile-navigation li ul { display: none; padding: 0 0 8px 18px; }
.mobile-navigation li.submenu-open > ul { display: block; }
.submenu-toggle { position: absolute; top: 5px; right: 0; width: 34px; height: 34px; border: 0; background: transparent; color: #555; font-size: 22px; cursor: pointer; }

.page-title { position: relative; min-height: 265px; display: grid; align-items: center; padding: 145px 0 75px; margin-bottom: 50px; background-repeat: no-repeat; background-position: center; background-size: cover; background-attachment: fixed; }
.page-title-overlay { position: absolute; inset: 0; background: linear-gradient(-137deg, color-mix(in srgb, var(--alameda-gradient-end) 90%, transparent), color-mix(in srgb, var(--alameda-gradient-start) 90%, transparent)); }
.page-title-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.page-title h1, .page-title h2, .page-title h3 { margin: 0; color: #fff !important; text-align: center; }
.page-title h1, .page-title h2 { font-size: 40px; font-weight: 500; line-height: 1.05; }
.page-breadcrumb { margin-top: 10px; }
.page-breadcrumb, .page-breadcrumb a, .page-breadcrumb li { color: rgba(255,255,255,.9); }

.no-page-title:not(.is-home) .site-main { padding-top: calc(var(--alameda-header-height) + 60px); }
.site-main { padding: 100px 0; }
.site-main.is-pagebuilder { padding: 0; }
.main-grid { display: grid; gap: 30px; }
.main-grid.full-width { grid-template-columns: minmax(0, 1fr); }
.main-grid.has-left { grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); }
.main-grid.has-right { grid-template-columns: minmax(0, 9fr) minmax(220px, 3fr); }
.main-grid.has-left.has-right { grid-template-columns: minmax(200px, 3fr) minmax(0, 6fr) minmax(200px, 3fr); }
.component-area { min-width: 0; }
.sidebar .moduletable, .sidebar .moduletable-card { margin-bottom: 30px; }
.sidebar h3 { font-size: 20px; font-weight: 600; }

.module-zone { position: relative; }
.content-module-row { padding: 65px 0; }
.content-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }

.site-bottom { padding: 100px 0; background: var(--alameda-footer); color: #d9d9dc; }
.bottom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.site-bottom h1, .site-bottom h2, .site-bottom h3, .site-bottom h4 { color: #fff; }
.site-bottom .moduletable > h3, .site-bottom .moduletable-card > h3 { font-size: 20px; font-weight: 600; text-transform: none; }
.site-bottom ul { list-style: none; padding: 0; margin: 0; }
.site-bottom li { border: 0; }
.site-bottom li a { color: #d9d9dc; line-height: 30px; }
.site-bottom li a:hover { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; }
.social-links a:hover { background: #fff; color: var(--alameda-footer); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer { padding: 20px 0; background: var(--alameda-footer); color: #fff; text-align: center; font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: #fff; }
.footer-content > * + * { margin-top: 10px; }
.copyright { display: block; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--alameda-primary); color: #fff; font-size: 22px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.button, .btn, button[type="submit"], input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 20px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; }
.button-primary, .btn-primary, button[type="submit"], input[type="submit"] { background: var(--alameda-primary); color: #fff; }
.button-primary:hover, .btn-primary:hover { color: #fff; opacity: .88; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"], select, textarea { width: 100%; max-width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #d8d8d8; border-radius: 3px; background: #fff; color: #222; }
textarea { min-height: 130px; }

.article-title, .article-header h1, .item-page .page-header h1 { font-size: 28px !important; }
.item-page [itemprop="articleBody"] h2, .item-page [itemprop="articleBody"] h2.indexed { font-size: 30px; line-height: 1.25; margin: 1.8em 0 .7em; }
.item-page [itemprop="articleBody"] h3, .item-page [itemprop="articleBody"] h3.indexed { font-size: 24px; line-height: 1.3; margin: 1.4em 0 .6em; font-weight: 400; }
span.anchor { display: block; position: relative; top: -100px; }
.alameda-autor-box { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px; margin-top: 40px; background: #f9f9f9; border-top: 2px solid #ddd; font-size: 16px; line-height: 1.5; }
.alameda-autor-box .autor-img img { width: 120px; height: 120px; object-fit: cover; border: 2px solid #ccc; border-radius: 50%; }
.rl_quickindex { padding: 22px 26px; margin: 30px 0; background: #f7f7f7; border: 1px solid #e6e6e6; border-radius: 8px; }
.rl_quickindex ol, .rl_quickindex ul { margin: 0; padding-left: 1.4rem; }
.rl_quickindex li { margin-bottom: .28rem; }
.rl_quickindex a { text-decoration: none; }
.rl_quickindex .index-link span, .rl_quickindex .index-link strong, .rl_quickindex .index-link strong span { font-size: inherit !important; font-weight: inherit !important; }
.rl_quickindex .index-level-2 > li > a { font-size: 20px; line-height: 1.3; font-weight: 400; }
.rl_quickindex .index-level-3 { margin-top: .25rem; }
.rl_quickindex .index-level-3 > li > a { font-size: 16px; line-height: 1.3; font-weight: 400; }

#site-bottom .mod-sppagebuilder .sppb-section { padding: 0 !important; margin: 0 !important; }
#site-bottom .mod-sppagebuilder .sppb-row-container { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
#site-bottom .mod-sppagebuilder .sppb-row { margin-inline: 0 !important; }
#site-bottom .mod-sppagebuilder [class*="sppb-col-"] { padding-inline: 0 !important; }
#site-bottom .sppb-addon-single-image-container img { max-width: 220px; height: auto; }

.alert { padding: 14px 18px; margin-bottom: 22px; border: 1px solid #ddd; border-radius: 4px; }
.alert-success { background: #edf8f0; border-color: #bcdcc5; }
.alert-danger, .alert-error { background: #fff0f0; border-color: #e4b9b9; }

.error-shell, .offline-shell { min-height: 100dvh; display: grid; place-items: center; padding: 30px; background: linear-gradient(137deg, var(--alameda-gradient-start), var(--alameda-gradient-end)); }
.error-card, .offline-card { width: min(680px, 100%); padding: 50px; border-radius: 8px; background: #fff; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.error-code { color: var(--alameda-primary); font-size: clamp(70px, 15vw, 150px); font-weight: 700; line-height: .9; }
.offline-logo { max-width: 230px; margin: 0 auto 25px; }
.component-only { padding: 20px; }

@media (max-width: 1199px) {
  :root { --alameda-container: 970px; }
  .desktop-navigation .mod-menu > li > a, .desktop-navigation .mod-menu > li > span { padding-inline: 9px; font-size: 14px; }
}

@media (max-width: 991px) {
  :root { --alameda-container: 750px; }
  .header-grid { grid-template-columns: 8fr 4fr; }
  .desktop-navigation { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-grid.has-left, .main-grid.has-right, .main-grid.has-left.has-right { grid-template-columns: 1fr; }
  .sidebar-left { order: 2; }
  .component-area { order: 1; }
  .sidebar-right { order: 3; }
  .bottom-grid, .content-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { background-attachment: scroll; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 30px), var(--alameda-container)); }
  .brand img { max-height: 58px; }
  .page-title { min-height: 265px; padding: 135px 0 65px; margin-bottom: 35px; }
  .page-title h1, .page-title h2 { font-size: 28px; }
  .site-main { padding: 60px 0; }
  .site-main.is-pagebuilder { padding: 0; }
  .bottom-grid, .content-module-grid, .top-grid { grid-template-columns: 1fr; }
  .site-bottom { padding: 70px 0; }
  .article-title, .article-header h1, .item-page .page-header h1 { font-size: 26px !important; }
  .item-page [itemprop="articleBody"] h2, .item-page [itemprop="articleBody"] h2.indexed { font-size: 27px; }
  .item-page [itemprop="articleBody"] h3, .item-page [itemprop="articleBody"] h3.indexed { font-size: 22px; }
  .error-card, .offline-card { padding: 35px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
