:root {
  --cadisal-orange: #ED530C;
  --cadisal-gray: #675E5F;
  --cadisal-gray-dark: #4e4748;
  --cadisal-soft: #f8f6f5;
  --cadisal-border: #e9e4e2;
}

body {
  color: var(--cadisal-gray-dark);
  font-family: Montserrat-Regular, Arial, sans-serif;
}

/* Header: same layout, cleaner type and lighter hierarchy */
.container-menu-header { box-shadow: 0 2px 14px rgba(82, 68, 68, .08); }
.topbar { background: var(--cadisal-soft); }
.topbar-email, .topbar-child1 { color: var(--cadisal-gray); font-size: 12px; }
.topbar-social-item { color: var(--cadisal-gray); transition: color .2s ease; }
.topbar-social-item:hover { color: var(--cadisal-orange); }
.wrap_header { background: #fff; }
.logo img { max-height: 58px; }
.main_menu > li > a {
  color: var(--cadisal-gray);
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .35px;
}
.main_menu > li:hover > a { border-bottom: 2px solid var(--cadisal-orange); color: var(--cadisal-orange); }

/* Shared page heading */
.bg-title-page { min-height: 250px; position: relative; }
.bg-title-page::before { background: rgba(103, 94, 95, .25); content: ''; inset: 0; position: absolute; }
.bg-title-page .l-text2 { font-family: Montserrat-Regular, Arial, sans-serif; font-size: 32px !important; font-weight: 400; letter-spacing: .4px; position: relative; z-index: 1; }

/* Original content blocks, refreshed rather than replaced */
.bgwhite { background-color: #fff; }
.m-text26 { color: var(--cadisal-gray-dark); font-family: Montserrat-Medium, Arial, sans-serif; font-size: 27px; font-weight: 400; }
.m-text24 { color: var(--cadisal-gray-dark); font-family: Montserrat-Medium, Arial, sans-serif; }
.s-text20 { color: var(--cadisal-orange); font-family: Montserrat-Medium, Arial, sans-serif; }
.s-text20:hover { color: var(--cadisal-gray); }

.block3 {
  overflow: hidden;
  border: 1px solid var(--cadisal-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(103, 94, 95, .07);
  transition: box-shadow .2s ease, transform .2s ease;
}
.block3:hover { box-shadow: 0 14px 30px rgba(103, 94, 95, .13); transform: translateY(-3px); }
.block3-img, .block3-img > div { border-radius: 13px 13px 0 0; }
.block3-txt { padding: 18px 20px 20px; }
.AbsoluteContainer { padding: 15px 18px; background: #fff; }
.AbsoluteContainer .m-text11 { color: var(--cadisal-gray-dark); font-family: Montserrat-Medium, Arial, sans-serif; }

/* Members: keep the logo, name and contact information clearly separated. */
.cadisal-member-card {
  display: flex;
  width: 100%;
  height: 174px;
  overflow: hidden;
  border: 1px solid var(--cadisal-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(103, 94, 95, .07);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cadisal-member-column { display: flex; }
.cadisal-member-card:hover { box-shadow: 0 14px 30px rgba(103, 94, 95, .13); transform: translateY(-3px); }
.cadisal-member-logo {
  width: 42%;
  flex: 0 0 42%;
  padding: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-origin: content-box;
  background-clip: content-box;
}
.cadisal-member-details {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border-left: 4px solid var(--cadisal-orange);
  padding: 21px 19px;
  background: var(--cadisal-gray);
}
.cadisal-member-details h2 {
  margin: 0 0 9px;
  color: #fff;
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.cadisal-member-details p { margin: 0 0 0 13px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.55; }
.cadisal-member-details .cadisal-member-phone { color: #fff; font-family: Montserrat-Medium, Arial, sans-serif; font-size: 14px; }
.cadisal-member-details .cadisal-member-phone + .cadisal-member-address { margin-top: 4px; }

/* Library: horizontal resource cards matching the members layout. */
.cadisal-library-column { display: flex; }
.cadisal-library-card {
  display: flex;
  width: 100%;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid var(--cadisal-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(103, 94, 95, .07);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cadisal-library-card:hover { box-shadow: 0 14px 30px rgba(103, 94, 95, .13); transform: translateY(-3px); }
.cadisal-library-icon {
  display: flex;
  width: 34%;
  flex: 0 0 34%;
  align-items: center;
  justify-content: center;
  border-right: 4px solid var(--cadisal-orange);
  background: var(--cadisal-soft);
  color: var(--cadisal-orange);
  font-size: 42px;
}
.cadisal-library-details {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 21px 22px;
  background: var(--cadisal-gray);
}
.cadisal-library-details h2 {
  margin: 0 0 15px;
  color: #fff;
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.cadisal-library-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .55px;
  text-transform: uppercase;
}
.cadisal-library-download:hover { color: #fff; }

.item-blog { border-bottom: 1px solid var(--cadisal-border); }
.item-blog-img, .item-blog-img > div { border-radius: 14px; overflow: hidden; }
.item-blog-date { border-radius: 8px; background: var(--cadisal-orange); }

/* Compact date cards used in the Novedades sidebars */
.cadisal-date-card {
  display: flex;
  height: 100px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--cadisal-gray);
  box-shadow: 0 7px 16px rgba(78, 71, 72, .16);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cadisal-date-card:hover {
  color: #fff;
  box-shadow: 0 10px 22px rgba(78, 71, 72, .23);
  transform: translateY(-2px);
}
.cadisal-date-card-day {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -.5px;
  line-height: 1;
}
.cadisal-date-card-month {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  background: var(--cadisal-orange);
  font-family: Montserrat-Medium, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1;
}

/* Contact and generic forms */
.leave-comment { padding: 30px; border: 1px solid var(--cadisal-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(103, 94, 95, .06); }
.leave-comment .bo4 { border: 1px solid var(--cadisal-border); border-radius: 9px; }
.leave-comment input, .leave-comment textarea { color: var(--cadisal-gray-dark); }
.leave-comment input:focus, .leave-comment textarea:focus { outline: 2px solid rgba(237, 83, 12, .2); outline-offset: -2px; }
.leave-comment .bg1 { border-radius: 9px; background: var(--cadisal-orange); }
.leave-comment .hov1:hover { background: var(--cadisal-gray); }
.contact-map iframe { border-radius: 16px; }

/* Footer keeps its original composition, with a softer finish */
.bg6 { background: var(--cadisal-gray); }
.bg6 .s-text12 { color: #fff; font-family: Montserrat-Medium, Arial, sans-serif; letter-spacing: .4px; }
.bg6 .s-text7 { color: rgba(255, 255, 255, .76); }

@media (max-width: 767px) {
  .bg-title-page { min-height: 205px; }
  .bg-title-page .l-text2 { font-size: 27px !important; }
  .block3 { border-radius: 12px; }
  .leave-comment { padding: 22px; border-radius: 12px; }
}

/* Institutional home hero and content sections */
.cadisal-hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.cadisal-hero-copy {
  max-width: 510px;
  padding: 40px 42px;
  border-radius: 18px;
  background: rgba(248, 246, 245, .92);
  box-shadow: 0 14px 40px rgba(72, 63, 61, .12);
}
.cadisal-kicker { margin: 0 0 12px; color: var(--cadisal-orange); font-family: Montserrat-Medium, Arial, sans-serif; font-size: 11px; letter-spacing: 1.2px; }
.cadisal-hero h1, .cadisal-institutional h2 { margin: 0 0 18px; color: var(--cadisal-gray-dark); font-family: Montserrat-Medium, Arial, sans-serif; font-weight: 400; line-height: 1.18; }
.cadisal-hero h1 { font-size: 42px; }
.cadisal-hero-copy > p:last-child { margin: 0; color: var(--cadisal-gray); font-size: 16px; line-height: 1.7; }
.cadisal-page-hero { min-height: 295px; display: flex; align-items: center; background-position: center; background-repeat: no-repeat; background-size: cover; }
.cadisal-page-hero-copy { max-width: 475px; padding: 29px 34px; border-radius: 16px; background: rgba(248, 246, 245, .93); box-shadow: 0 12px 32px rgba(72, 63, 61, .1); }
.cadisal-page-hero-copy p { margin: 0 0 7px; color: var(--cadisal-orange); font-family: Montserrat-Medium, Arial, sans-serif; font-size: 10px; letter-spacing: 1.1px; }
.cadisal-page-hero-copy h1 { margin: 0 0 8px; color: var(--cadisal-gray-dark); font-family: Montserrat-Medium, Arial, sans-serif; font-size: 36px; font-weight: 400; }
.cadisal-page-hero-copy span { color: var(--cadisal-gray); font-size: 14px; line-height: 1.55; }
.cadisal-section { padding: 82px 0; }
.cadisal-institutional h2 { font-size: 31px; }
.cadisal-institutional p { color: var(--cadisal-gray); font-size: 16px; line-height: 1.75; }
.cadisal-image { min-height: 390px; border-radius: 16px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.cadisal-emphasis { margin-top: 23px; border-left: 3px solid var(--cadisal-orange); padding: 5px 0 5px 16px; color: var(--cadisal-gray-dark) !important; font-family: Montserrat-Medium, Arial, sans-serif; }
.cadisal-mission { padding: 74px 0; background: var(--cadisal-soft); }
.cadisal-mission .container { max-width: 860px; text-align: center; }
.cadisal-mission h2 { font-size: 34px; }
.cadisal-list { margin: 0; padding: 0; list-style: none; }
.cadisal-list li { position: relative; padding: 0 0 15px 24px; color: var(--cadisal-gray); font-size: 16px; line-height: 1.6; }
.cadisal-list li::before { position: absolute; top: 9px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cadisal-orange); content: ''; }
.cadisal-achievements { border-top: 1px solid var(--cadisal-border); background: #fff; }
.cadisal-lead { max-width: 760px; margin-bottom: 24px; }
.cadisal-membership { background: var(--cadisal-soft); }
.cadisal-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cadisal-metric { display: flex; min-height: 144px; align-items: center; gap: 15px; padding: 22px 19px; border: 1px solid var(--cadisal-border); border-radius: 15px; background: #fff; box-shadow: 0 7px 18px rgba(103, 94, 95, .05); }
.cadisal-metric-icon { display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(237, 83, 12, .1); color: var(--cadisal-orange); font-size: 18px; }
.cadisal-metric > div { min-width: 0; }
.cadisal-metric strong, .cadisal-metric > div > span { display: block; }
.cadisal-metric strong { margin-bottom: 6px; color: var(--cadisal-orange); font-family: Montserrat-Medium, Arial, sans-serif; font-size: 28px; font-weight: 400; line-height: 1.1; }
.cadisal-metric strong .cadisal-count { display: inline; }
.cadisal-metric > div > span { color: var(--cadisal-gray); font-size: 12px; line-height: 1.45; }

/* Shared footer */
.cadisal-footer { background: var(--cadisal-gray); color: rgba(255,255,255,.78); }
.cadisal-footer-main { padding: 62px 0 28px; }
.cadisal-footer-main > div { padding-right: 42px; }
.cadisal-footer-logo { display: inline-block; margin-bottom: 22px; }
.cadisal-footer-logo img { width: 185px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.cadisal-footer p { max-width: 400px; margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.75; }
.cadisal-footer h2 { margin: 5px 0 20px; color: #fff; font-family: Montserrat-Medium, Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 1.1px; }
.cadisal-footer h2:after { display: block; width: 30px; height: 2px; margin-top: 12px; background: var(--cadisal-orange); content: ''; }
.cadisal-footer-links, .cadisal-footer-contact { margin: 0; padding: 0; list-style: none; }
.cadisal-footer-links li { margin-bottom: 11px; }
.cadisal-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s ease; }
.cadisal-footer a:hover { color: #fff; }
.cadisal-footer-links a { font-size: 14px; }
.cadisal-footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.5; }
.cadisal-footer-contact i { width: 14px; flex: 0 0 14px; padding-top: 3px; color: var(--cadisal-orange); text-align: center; }
.cadisal-footer-social { display: flex; gap: 8px; margin-top: 24px; }
.cadisal-footer-social a { display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; font-size: 15px; }
.cadisal-footer-social a:hover { border-color: var(--cadisal-orange); background: var(--cadisal-orange); }
.cadisal-footer-bottom { border-top: 1px solid rgba(255,255,255,.16); }
.cadisal-footer-bottom .container { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.54); font-size: 11px; }
.cadisal-footer-bottom a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.54); }
.cadisal-footer-bottom img { max-height: 19px; width: auto; }

@media (max-width: 767px) {
  .cadisal-hero { min-height: 470px; align-items: flex-end; background-position: 64% center; }
  .cadisal-hero-copy { margin: 0 15px 24px; padding: 28px 24px; border-radius: 14px; }
  .cadisal-hero h1 { font-size: 31px; }
  .cadisal-page-hero { min-height: 245px; background-position: 64% center; }
  .cadisal-page-hero-copy { margin: 0 15px; padding: 23px; border-radius: 13px; }
  .cadisal-page-hero-copy h1 { font-size: 29px; }
  .cadisal-section { padding: 58px 0; }
  .cadisal-institutional h2, .cadisal-mission h2 { font-size: 27px; }
  .cadisal-image { min-height: 300px; }
  .cadisal-metrics { gap: 9px; }
  .cadisal-metric { min-height: 125px; gap: 11px; padding: 18px 13px; border-radius: 12px; }
  .cadisal-metric-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
  .cadisal-metric strong { font-size: 23px; }
  .cadisal-footer-main { padding-top: 48px; }
  .cadisal-footer-main > div { padding-right: 15px; }
  .cadisal-footer-bottom .container { min-height: 74px; flex-direction: column; justify-content: center; text-align: center; }
  .cadisal-member-card { height: 160px; }
  .cadisal-member-logo { width: 40%; flex-basis: 40%; padding: 12px; }
  .cadisal-member-details { padding: 16px; }
  .cadisal-member-details h2 { font-size: 14px; }
  .cadisal-library-card { min-height: 150px; }
  .cadisal-library-icon { width: 31%; flex-basis: 31%; font-size: 36px; }
  .cadisal-library-details { padding: 18px; }
  .cadisal-library-details h2 { font-size: 14px; }
}
