/* =====================================================
   CSS RESET & BASE STYLES (normalize & reset)
   ===================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #0A182E;
  color: #F4F7FA;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #FFB200;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #fff;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* =====================================================
   BRAND FONTS & COLORS (Fallbacks included)
   ===================================================== */
:root {
  --hb-primary: #173B6C;
  --hb-secondary: #FFB200;
  --hb-accent: #F4F7FA;
  --hb-futuristic-blue: #1e3265;
  --hb-futuristic-neon: #32ffd6;
  --hb-futuristic-cyan: #62f7f8;
  --hb-futuristic-dark: #0A182E;
  --hb-futuristic-card-bg: #132846;
  --hb-futuristic-section-bg: #1b2332;
  --hb-futuristic-border: #274b8c;
  --hb-futuristic-yellow: #FFB200;
  --hb-font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --hb-font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --hb-radius: 12px;
  --hb-shadow-xl: 0 8px 32px 0 rgba(50,255,214, 0.08), 0 1.5px 14px 0 rgba(23,59,108, 0.22);
  --hb-shadow-card: 0 2px 18px 0 rgba(50,255,214, 0.08), 0 1px 4px 0 rgba(0,0,0, 0.10);
}

body {
  font-family: var(--hb-font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  background: var(--hb-futuristic-dark);
  color: var(--hb-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hb-font-display);
  color: #fff;
  letter-spacing: .02em;
  font-weight: 700;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}
p, ul, ol, li, span {
  font-family: var(--hb-font-body);
  font-size: 1rem;
  color: var(--hb-accent);
  margin-bottom: 12px;
}
strong {
  color: var(--hb-futuristic-neon);
  font-weight: 700;
}

/* =====================================================
   LAYOUT CONTAINERS
   ===================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--hb-futuristic-section-bg);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow-card);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--hb-futuristic-card-bg);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow-card);
  padding: 28px;
  position: relative;
  border: 1.5px solid var(--hb-futuristic-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(50,255,214,0.18);
  border-color: var(--hb-futuristic-neon);
  z-index: 3;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(23,59,108, 0.13), 0 1px 8px #FFB20022;
  color: var(--hb-primary);
  margin-bottom: 20px;
  min-width: 260px;
  border-left: 4px solid var(--hb-futuristic-neon);
}
.testimonial-card p, .testimonial-card span {
  color: var(--hb-primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: rgba(49, 71, 117, 0.06);
  border-radius: var(--hb-radius);
  padding: 20px 16px;
  box-shadow: 0 1.5px 10px 0 rgba(50,255,214,0.05);
  margin-bottom: 18px;
}

/* ===========================================
   HEADER & NAVIGATION (Desktop & Mobile)
   =========================================== */
header {
  width: 100%;
  background: var(--hb-primary);
  box-shadow: 0 3px 18px 0 #00021d14;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
}
header a img {
  height: 42px;
  margin-right: 10px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #F4F7FA;
  font-family: var(--hb-font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--hb-futuristic-neon);
  color: #0A182E;
}
.main-nav .cta-primary {
  background: linear-gradient(90deg, #FFB200 0%, #FFF07C 100%);
  color: #173B6C !important;
  font-weight: 700;
  box-shadow: 0 2px 14px #FFB20023;
  padding: 8px 22px;
  border-radius: 24px;
  margin-left: 18px;
  border: 2px solid transparent;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: linear-gradient(90deg, #FFF07C 0%, #FFB200 100%);
  color: #10223e !important;
  border: 2px solid var(--hb-futuristic-neon);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin-left: 22px;
  z-index: 60;
  line-height: 1;
  transition: color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--hb-futuristic-neon);
}

/* ========================
   MOBILE MENU OVERLAY
   ======================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10,24,46,0.98);
  backdrop-filter: blur(2.5px);
  z-index: 99;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.68,-0.2,.32,1.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  margin: 25px 34px 0 0;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--hb-futuristic-neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 54px 0 0 0;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--hb-font-display);
  background: none;
  border-radius: 8px;
  width: 86%;
  text-align: center;
  padding: 16px 0;
  margin: 0 auto;
  transition: background 0.15s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #173B6C;
  color: var(--hb-futuristic-neon);
}
/* Visibly separate privacy and terms links on mobile */
.mobile-nav a:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  header .container {
    min-height: 58px;
    gap: 12px;
  }
  .main-nav {
    gap: 6px;
  }
  .main-nav a {
    font-size: .97rem;
    padding: 8px 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/*
==============================
SECTION, CARDS, GRIDS, TESTIMONIALS
==============================
*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--hb-radius);
  background: var(--hb-futuristic-section-bg);
  box-shadow: var(--hb-shadow-card);
}
@media (max-width: 600px) {
  section {
    margin-bottom: 38px;
    padding: 28px 10px;
  }
}

.content-wrapper {
  gap: 20px;
}
.card-container, .content-grid {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--hb-radius);
}
.text-image-section {
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

ul {
  margin-left: 20px;
  margin-bottom: 12px;
}
ul li {
  list-style: none;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}
ul li img {
  height: 23px;
  width: 23px;
  filter: drop-shadow(0 2px 4px #31ffe944);
  margin-right: 3px;
}

.article-preview, .featured-post, .blog-post-grid article, .subscribe-cta {
  background: var(--hb-futuristic-card-bg);
  border-radius: var(--hb-radius);
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px 0 rgba(50,255,214,0.07);
  border: 1.5px solid var(--hb-futuristic-border);
  transition: box-shadow 0.15s, border-color 0.2s;
}
.article-preview:hover, .featured-post:hover, .blog-post-grid article:hover {
  box-shadow: 0 6px 22px 0 rgba(50,255,214,0.16);
  border-color: var(--hb-futuristic-neon);
}

/* ------------
  Blog Post Grid
   ------------ */
.blog-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.blog-post-grid article {
  flex: 1 1 248px;
  min-width: 240px;
  max-width: 330px;
}
@media (max-width: 900px) {
  .blog-post-grid {
    flex-direction: column;
    gap: 18px;
  }
  .blog-post-grid article {
    max-width: 100%;
  }
}

.featured-post, .subscribe-cta {
  border-left: 4px solid var(--hb-futuristic-neon);
}
.more-resources {
  margin-top: 8px;
}
.more-resources a {
  color: var(--hb-futuristic-neon);
  margin-right: 7px;
  font-weight: 600;
  transition: color 0.17s;
}
.more-resources a:hover, .more-resources a:focus {
  color: var(--hb-futuristic-yellow);
}

/*
==============
  CONTACT INFO
==============
*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  margin-top: 10px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
}

.address-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}
.address-map img {
  width: 70px;
  filter: drop-shadow(0 2px 6px #32ffd688);
}

/* ============
   BUTTONS/CTA
   ============ */
.cta-primary {
  display: inline-block;
  font-family: var(--hb-font-display);
  font-weight: 700;
  font-size: 1.13rem;
  color: #173B6C;
  background: linear-gradient(90deg, #FFB200 0%, #FFF07C 100%);
  border-radius: 24px;
  padding: 10px 40px;
  border: 2px solid transparent;
  box-shadow: 0 2px 14px #FFB20034;
  transition: background 0.16s, color 0.14s, border-color 0.17s, transform 0.09s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #32ffd6 0%, #FFB200 100%);
  color: #0A182E;
  border-color: var(--hb-futuristic-neon);
  transform: translateY(-2px) scale(1.03);
}

article a, .article-preview a, .featured-post a, .more-resources a {
  color: var(--hb-futuristic-neon);
  font-weight: 600;
  border-bottom: 1.2px solid var(--hb-futuristic-neon);
  transition: color 0.15s, border-color 0.12s;
}
article a:hover, .article-preview a:hover, .featured-post a:hover, .more-resources a:focus {
  color: var(--hb-futuristic-yellow);
  border-color: var(--hb-futuristic-yellow);
}

/* ==================
   TESTIMONIAL STARS
   ================== */
.testimonial-card img[alt*="estrella"], .testimonial-card img[alt*="star"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 2px 2px 0;
  filter: drop-shadow(0 1px 4px #FFB20088) brightness(1.1);
}

/* =============
   FOOTER STYLES
   ============= */
footer {
  background: #132846;
  color: #F4F7FA;
  padding: 30px 0 10px 0;
  box-shadow: 0 -2px 14px 0 #19345a24;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
footer a {
  color: #F4F7FA;
  font-weight: 500;
  margin: 0 3px;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: var(--hb-futuristic-neon);
}
footer nav {
  margin: 5px 0 10px 0;
  font-size: 1rem;
  letter-spacing: .02em;
  font-family: var(--hb-font-display);
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin: 4px 0 8px 0;
}
footer .social-links a img {
  width: 28px;
  height: 28px;
  transition: filter 0.19s;
  filter: grayscale(40%);
}
footer .social-links a:hover img, footer .social-links a:focus img {
  filter: brightness(1.7) drop-shadow(0 2px 8px #32ffd6cc) grayscale(0%);
}

/* === Scrollbar (Tech Futuristic) ===*/
::-webkit-scrollbar {
  width: 7px;
  background: #173b6c;
}
::-webkit-scrollbar-thumb {
  background: #FFB200;
  border-radius: 9px;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 120;
  background: #11203c;
  color: #fff;
  box-shadow: 0 -2px 24px #19345a42;
  padding: 18px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  border-top: 3px solid var(--hb-futuristic-neon);
  font-size: 1rem;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.42s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 360px;
  margin-right: 16px;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--hb-font-display);
  padding: 7px 20px;
  border-radius: 18px;
  border: none;
  background: var(--hb-futuristic-neon);
  color: #132846;
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0 3px;
  transition: background 0.18s, color 0.16s, transform 0.11s;
}
.cookie-banner .cookie-reject-btn {
  background: #233968;
  color: #fff;
  border: 1.5px solid var(--hb-futuristic-neon);
}
.cookie-banner .cookie-settings-btn {
  background: var(--hb-futuristic-yellow);
  color: #173B6C;
  border: none;
}
.cookie-banner button:hover, 
.cookie-banner button:focus {
  background: #fff;
  color: #173B6C;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-text {
    margin: 0 0 7px 0;
  }
  .cookie-banner .cookie-actions {
    gap: 6px;
  }
}

/* =====================
   COOKIE PREFERENCES MODAL
   ===================== */
.cookie-modal {
  position: fixed;
  z-index: 130;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: #132846;
  border-radius: 16px;
  box-shadow: 0 8px 44px #32ffd6bb;
  padding: 30px 24px;
  width: 98vw;
  max-width: 470px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.33s, transform 0.25s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--hb-futuristic-neon);
  margin-bottom: 18px;
  font-family: var(--hb-font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.cookie-modal .cookie-category label {
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--hb-font-body);
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--hb-futuristic-neon);
  border-radius: 6px;
  margin-right: 7px;
  outline: 2px solid #fff3;
}
.cookie-modal .cookie-category input[disabled], 
.cookie-modal .cookie-category input[disabled] + label {
  opacity: 0.67;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: var(--hb-font-display);
  padding: 8px 22px;
  border-radius: 14px;
  border: none;
  background: var(--hb-futuristic-neon);
  color: #173B6C;
  font-size: 1rem;
  font-weight: 650;
  transition: background 0.13s, color 0.13s, transform 0.10s;
}
.cookie-modal button:hover, 
.cookie-modal button:focus {
  background: var(--hb-secondary);
  color: #173b6c;
  transform: scale(1.04);
}
.cookie-modal .close-modal {
  background: #fff;
  color: #173B6C;
  border: 1.5px solid var(--hb-futuristic-neon);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--hb-futuristic-yellow);
  color: var(--hb-futuristic-dark);
}

/* ===============
   MEDIA QUERIES
   =============== */
@media (max-width: 950px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  section, .section {
    padding: 18px 7px;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  h3, h4 {
    font-size: 1.06rem;
  }
}
@media (max-width: 650px) {
  .container {
    padding: 0 3.5vw;
  }
  .card, .article-preview, .featured-post, .blog-post-grid article {
    padding: 16px 10px;
  }
}

/* ================
   ANIMATIONS/MICROINTERACTIONS
   ================ */
.cta-primary, .main-nav .cta-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.22s, color 0.14s, border 0.17s, box-shadow 0.13s, transform 0.13s;
}
.card, .article-preview, .featured-post, .blog-post-grid article {
  transition: box-shadow 0.2s, border-color 0.17s, transform 0.14s;
}
.card:active, .article-preview:active, .featured-post:active, .blog-post-grid article:active {
  transform: scale(0.99);
}

/* ===============
   OVERLAY SHIELD (for modals, mobile menu)
   =============== */
.overlay-shield {
  position: fixed;
  inset: 0;
  z-index: 97;
  background: rgba(23, 59, 108, 0.33);
  display: none;
}
.overlay-shield.active {
  display: block;
}

/* ===============
   UTILITIES
   =============== */
.gap-top {
  margin-top: 36px;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===============
   ACCESSIBILITY FOCUS STYLE
   =============== */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--hb-futuristic-neon);
  outline-offset: 1.5px;
}

/* ===============
   MISC DARK ON LIGHT (for testimonials)
   =============== */
.testimonial-card, .testimonial-card * {
  color: #173B6C !important;
}

/* ===============
   END OF STYLE.CSS
   =============== */
