/* RESET & BASE TYPOGRAPHY =================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #22303B;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #22303B;
  color: #EFF6FB;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .4s;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #EFF6FB;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 20px; color: #C6DFF4; }
strong { font-weight: 700; }
a { color: #EFC88B; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus {
  color: #fff380;
  text-shadow: 0 0 6px #EFC88B, 0 0 10px #EFC88B60;
}
ul, ol { margin-left: 20px; margin-bottom: 20px; }
li { margin-bottom: 10px; }
img { max-width: 100%; display: block; border-radius: 8px; }
button, input[type="submit"], .button-primary, .button-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

/* LAYOUT CONTAINERS ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Helper for two-column (text-image-section) layouts */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #263344;
  border-radius: 16px;
  box-shadow: 0 2px 20px 0 #18202B66;
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow .2s, outline-color .2s;
  outline: 2px solid transparent;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 #EFC88B44;
  outline-color: #EFC88B;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID for Icon+Text sections */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 310px;
  background: linear-gradient(120deg,#262F3A,#2C3F50);
  box-shadow: 0 2px 12px 0 #25405D26;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #284B63;
  transition: border-color .2s, box-shadow .2s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border-color: #EFC88B;
  box-shadow: 0 6px 24px #EFC88B33;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 7px #EFC88B99);
}

/* HERO SECTION =============================================================== */
.hero {
  background: linear-gradient(90deg,#213147 0%, #284B63 55%, #426DAA 100%);
  background-blend-mode: lighten;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
}
.hero h1, .hero h2 {
  text-shadow: 0 4px 24px #22385A99, 0 0 10px #EFC88B55;
  color: #fff;
}
.hero p {
  color: #BDD4EA;
  font-size: 1.25rem;
}
.hero .button-primary {
  margin-top: 8px;
}

/* ARTICLE & LISTS ============================================================ */
.article-list {
  list-style: disc outside;
  color: #C6DFF4;
  font-size: 1.07rem;
  margin-bottom: 20px;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-list a {
  color: #EFC88B;
  text-decoration: underline;
  font-weight: 500;
  transition: color .2s;
}
.article-list a:hover { color: #ffd575; text-shadow: 0 0 8px #EFC88B44; }

/* ARTICLES GRID (Articulos page) */
.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.articles-grid article {
  background: #202C38;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 #18202B23;
  padding: 22px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow .2s, border-color .2s;
  border: 2px solid transparent;
  margin-bottom: 20px;
}
.articles-grid article:hover {
  box-shadow: 0 0 20px #EFC88B22;
  border-color: #EFC88B;
}
.articles-grid h3 {
  color: #EFC88B;
  margin-bottom: 10px;
  font-size: 1.18rem;
}
.articles-grid a {
  color: #B0C5D8;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  margin-top: 6px;
  transition: color .2s;
}
.articles-grid a:hover {
  color: #EFC88B;
}

/* PAGINATION */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
}
.pagination a {
  color: #B0C5D8;
  padding: 7px 18px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  border: 1.5px solid #213147;
  font-weight: 600;
  font-size: 1rem;
  background: #22303b;
}
.pagination a:hover, .pagination a:focus {
  color: #22303B;
  background: #EFC88B;
  border-color: #EFC88B;
  outline: none;
}

/* BUTTONS ==================================================================== */
.button-primary,
.button-secondary,
.mobile-menu-close,
.cookie-banner button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
  font-size: 1.125rem;
  border-radius: 11px;
  border: none;
  padding: 13px 32px;
  margin-bottom: 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-shadow: 0 1px 8px #EFC88B33;
}
.button-primary {
  background: #EFC88B;
  color: #213147;
  font-weight: 700;
  box-shadow: 0 2px 15px 0 #EFC88B44;
  border: 2px solid #EFC88B;
}
.button-primary:hover, .button-primary:focus {
  background: #FFD580;
  color: #22303B;
  box-shadow: 0 3px 26px #EFC88B77,0 0 10px #fff04022;
  outline: none;
  border-color: #FFD580;
}
.button-secondary {
  background: transparent;
  color: #EFC88B;
  font-weight: 700;
  border: 2px solid #EFC88B;
}
.button-secondary:hover, .button-secondary:focus {
  background: #EFC88B;
  color: #22303B;
  box-shadow: 0 4px 16px 0 #EFC88B33;
  outline: none;
}

/* HEADER & NAVIGATION ======================================================== */
header {
  background: #263344;
  box-shadow: 0 2px 16px #18202B24;
  padding: 15px 0 0 0;
  margin-bottom: 6px;
  position: relative;
  z-index: 110;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #C6DFF4;
  font-weight: 600;
  font-size: 1.03rem;
  padding: 7px 18px;
  border-radius: 7px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.main-nav a.button-primary {
  margin-left: 14px; /* cta separation */
  font-size: 1.15rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EFC88B;
  color: #192030;
  text-shadow: 0 0 8px #EFC88B44;
}

/* MOBILE NAVIGATION ---------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #EFC88B;
  cursor: pointer;
  margin-left: 12px;
  padding: 7px 13px;
  border-radius: 50%;
  transition: background 0.1s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #284B63;
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #263344ee;
  z-index: 9999;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 6vw 0 0 0;
  overflow-y: auto;
  transition: transform .33s cubic-bezier(.55,.12,.45,.93);
  transform: translateX(-120%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu button.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 10001;
  background: #EFC88B;
  color: #22303B;
  border-radius: 7px;
  font-size: 1.7rem;
  width: 40px;
  height: 40px;
  border: none;
  box-shadow: 0 2px 12px #EFC88B66;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.mobile-menu button.mobile-menu-close:hover,
.mobile-menu button.mobile-menu-close:focus {
  background: #ffc557;
  color: #213147;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 65px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #EFC88B;
  font-weight: 700;
  font-size: 1.33rem;
  background: none;
  padding: 15px 5vw;
  border-radius: 9px;
  transition: background .15s, color .2s;
  width: 90%;
  text-align: center;
  min-height: 34px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EFC88B;
  color: #22303B;
}
@media (max-width: 900px) {
  .main-nav a.button-primary { padding: 13px 18px; font-size: 1.09rem; }
}
@media (max-width: 810px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-right: 0;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .hero {
    padding: 38px 0 28px 0;
  }
}

/* FOOTER ===================================================================== */
footer {
  background: #1B2330;
  color: #BCC7D8;
  padding: 36px 0 18px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #B0C5D8;
  font-size: 1.01rem;
  padding: 7px 11px;
  border-radius: 5px;
  transition: color .2s, background .17s;
  background: transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #EFC88B;
  color: #1B2330;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: .98rem;
  color: #A3B2C5;
  margin-bottom: 15px;
}
.contact-details img {
  vertical-align: text-bottom;
  width: 17px;
  margin: 0 3px 0 7px;
  display: inline-block;
  border-radius: 2px;
}
.copyright {
  text-align: center;
  color: #8C9AA5;
  font-size: 0.95rem;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* TEXT-ONLY SECTIONS, BIOS, FAQ, ETC. ======================================== */
.text-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.team-bios > div {
  background: #232B3D;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 1px 7px 0 #18202B11;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  color: #EFF6FB;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 11px;
}
.faq-list > div {
  background: #202C38;
  border-radius: 11px;
  padding: 14px 18px;
  box-shadow: 0 1px 7px 0 #18202B18;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  color: #EFF6FB;
  margin-bottom: 20px;
}
.faq-list strong { font-size: 1.09rem; color:#EFC88B; }
.faq-list p { color: #BDD4EA; margin-top: 6px; }

@media (max-width: 1020px) {
  .content-grid, .feature-grid, .card-container, .team-bios, .faq-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .card { max-width: 99%; }
}
@media (max-width: 600px) {
  .section, main > section { padding: 24px 8px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .team-bios > div, .feature-grid > div, .faq-list > div { min-width: 100%; }
}

/* CTA SECTIONS */
.cta-section {
  align-items: center;
  gap: 10px;
  text-align: center;
}
.cta-section .button-primary { margin-top: 8px; }

/* TESTIMONIAL CARDS ========================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FAFAFA;
  color: #213147;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 #bbbbbb4c;
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  font-size: 1.11rem;
  position: relative;
  border: 2px solid #B0C5D8;
  transition: border-color .2s, box-shadow .2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #EFC88B;
  box-shadow: 0 5px 20px #EFC88B55;
}
.testimonial-card blockquote {
  color: #253040;
  font-size: 1.13rem;
  font-style: italic;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-bottom: 10px;
}
.testimonial-card blockquote:before,
.testimonial-card blockquote:after {
  color: #B0C5D8;
  font-size: 1.2em;
}
.testimonial-card cite {
  color: #284B63;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}

/* FILTERS SECTION (Articulos page) */
.filters-section {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filters-section label {
  color: #EFC88B;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.filters-section select, .filters-section input[type="search"] {
  background: #232B3D;
  color: #C6DFF4;
  border: 1.5px solid #284B63;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 1rem;
  margin-left: 5px;
  outline: none;
  margin-right: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.filters-section select:focus, .filters-section input[type="search"]:focus {
  border-color: #EFC88B;
  box-shadow: 0 0 5px #EFC88B66;
}
.filters-section input[type="search"] {
  width: 210px;
  min-width: 120px;
}
@media (max-width: 870px) {
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .filters-section input[type="search"] { width: 99%; }
}

/* COOKIE CONSENT BANNER ====================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #232B3D;
  color: #EFC88B;
  width: 100vw;
  box-shadow: 0 -2px 16px #00000077;
  padding: 23px 12px 23px 12px;
  z-index: 999998;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: transform .4s, opacity .33s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0 0 0 0;
  color: #EFC88B;
  font-size: 1.05rem;
}
.cookie-banner button {
  background: #EFC88B;
  color: #213147;
  font-weight: 700;
  margin-left: 8px;
  font-size: 1.02rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px 0 #EFC88B33;
  padding: 11px 21px;
  transition: background .12s, color .18s;
}
.cookie-banner button.cookie-settings {
  background: transparent;
  color: #EFC88B;
  border: 2px solid #EFC88B;
}
.cookie-banner button.cookie-settings:hover {
  background: #EFC88B;
  color: #22303B;
}
.cookie-banner button:hover {
  background: #FFD580;
  color: #22303B;
}

/* COOKIE MODAL POPUP ========================================================= */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 48, 63, 0.92);
  align-items: center;
  justify-content: center;
  transition: opacity .28s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInModal .3s ease;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #263344;
  border-radius: 16px;
  box-shadow: 0 4px 40px 0 #00000099;
  padding: 32px 24px 22px 24px;
  min-width: 310px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  color: #EFC88B;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 20px;
  color: #EFC88B;
  background: none;
  border: none;
  font-size: 1.39rem;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #FFD580;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
}
.cookie-category label {
  color: #EFC88B;
  font-weight: 600;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: #EFC88B;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #EFC88B;
}
.cookie-category input[disabled],
.cookie-category label.disabled {
  opacity: .6;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-size: 1.09rem;
}

/* GENERAL UTILITIES ========================================================== */
@media (max-width: 590px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
}
@media (max-width: 550px) {
  .hero h1 { font-size: 1.19rem; }
  .footer-nav { flex-direction: column; gap: 7px; }
  .hero { min-height: 180px; }
}

::-webkit-scrollbar {
  width: 8px;
  background: #263344;
}
::-webkit-scrollbar-thumb {
  background: #284B63;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #EFC88B;
}

/* HOVER SHADOW AND NEON EFFECTS ============================================= */
.card, .feature-grid > div, .articles-grid article, .testimonial-card, .faq-list > div, .team-bios > div {
  transition: box-shadow .22s, border-color .19s;
}
.card:hover,
.feature-grid > div:hover,
.articles-grid article:hover,
.faq-list > div:hover,
.team-bios > div:hover
{
  box-shadow: 0 4px 24px #284B6340,0 0 16px #EFC88B22;
  border-color: #EFC88B;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #EFC88B40;
  border-color: #EFC88B;
}

/* SPACING & FLEXBOX ENFORCEMENT ============================================= */
/* All containers use display:flex (no grid, no columns) */
/* Already applied above with .card-container, .content-grid, .feature-grid, etc. */

/* END======================================================================== */