/* === CSS RESET & NORMALIZE === */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #162036;
  color: #EAF3FA;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.15em; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font: inherit; border: none; outline: none; cursor: pointer; background: none; }
:focus-visible { outline: 2px solid #70C6CC; outline-offset: 2px; }

/* === BASE TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #F5F3EC;
}
h1 { font-size: 2.25rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; color: #70C6CC; }
h3 { font-size: 1.17rem; margin-bottom: 8px; color: #2bd5d5; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p, ul, li { font-size: 1rem; color: #EAF3FA; }
strong { color: #70C6CC; }

/* === COLORS & EFFECTS VARIABLES === */
:root {
  --primary: #223B67;
  --secondary: #70C6CC;
  --accent: #F5F3EC;
  --bg-dark: #162036;
  --text-light: #EAF3FA;
  --text-dark: #1e1e25;
  --neon-blue: #2bd5d5;
  --neon-pink: #fb36ff;
  --neon-green: #43ea7c;
  --card-bg: #223B67;
  --shadow: 0 4px 24px rgba(22, 32, 54, 0.18);
}

/* === CONTAINERS & SPACING === */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === LOGO & HEADER NAV === */
header {
  background: #162036;
  border-bottom: 2px solid #223B67;
  /* Shadow line border */
  position: sticky;
  top: 0;
  z-index: 1020;
}
.logo-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px 16px 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.logo-link img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px var(--neon-blue));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent);
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a::before {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--secondary);
  position: absolute;
  left: 0; bottom: 0;
  transition: width 0.25s cubic-bezier(.77,0,.18,1);
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover::before,
.main-nav a:focus::before {
  width: 100%;
}

/* === CTA BUTTONS === */
.cta-button {
  min-width: 160px;
  font-size: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  background: linear-gradient(90deg, var(--secondary) 80%, var(--neon-blue) 100%);
  color: var(--bg-dark);
  border-radius: 40px;
  box-shadow: 0 2px 18px 0 rgba(112, 198, 204, 0.24), 0 0 0 1.5px var(--neon-blue);
  text-shadow: 0 1px 8px #fff6;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, transform 0.12s;
  display: inline-block;
  margin-top: 12px;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: linear-gradient(90deg, var(--neon-blue) 60%, var(--neon-pink) 100%);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 0 24px 0 var(--neon-pink), 0 0 0 2.5px var(--neon-pink);
}

/* === HERO & FEATURE GRIDS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 20px;
}
.feature-tile {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 1px 15px -4px var(--neon-blue);
  padding: 32px 24px 28px 24px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  border: 1.5px solid #293F61;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .18s, border .16s, transform .14s;
}
.feature-tile img {
  width: 48px; height: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px var(--neon-blue));
}
.feature-tile h3 {
  margin-top: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.feature-tile p {
  color: #DDF9FA;
  margin-bottom: 10px;
}
.feature-tile a {
  color: var(--neon-blue);
  font-weight: bold;
  padding-top: 2px;
  transition: color 0.18s;
  text-decoration: underline;
}
.feature-tile a:hover, .feature-tile a:focus {
  color: var(--neon-pink);
}
.feature-tile:hover, .feature-tile:focus-within {
  box-shadow: 0 2px 28px 0 var(--neon-blue);
  border: 1.5px solid var(--neon-blue);
  transform: translateY(-6px) scale(1.03);
  z-index: 10;
}

/* === TESTIMONIALS GRID === */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #f5f3ec;
  color: var(--primary);
  padding: 20px 28px;
  border-radius: 18px;
  box-shadow: 0 3px 20px 0 rgba(34,59,103,0.10);
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .17s;
  gap: 18px;
  border: 2px solid #eee;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.testimonial-meta {
  padding-top: 4px;
  color: var(--secondary);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
}
.testimonial-card:hover {
  box-shadow: 0 0 30px var(--neon-blue);
  transform: scale(1.03);
  z-index: 5;
}

/* === CARDS & LAYOUT UTILS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  margin-bottom: 20px;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  color: var(--text-light);
  transition: box-shadow .19s, border .17s, transform .15s;
  border: 1.5px solid #223B67;
}
.card:hover {
  border: 1.5px solid var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue);
  transform: scale(1.025);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === UTILITY & GENERIC === */
ul {
  list-style: disc outside;
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}
hr {
  border: none;
  border-top: 1px solid #223B67;
  margin: 36px 0;
}

/* === FOOTER === */
footer {
  background: #1a2541;
  color: #EEE;
  padding-top: 44px;
  padding-bottom: 12px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 120px;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: #eaf3fa;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .19s;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--secondary); }
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  padding: 3px;
  border-radius: 8px;
  transition: background .16s;
}
.footer-social a:hover {
  background: #223B67;
}
.footer-contact ul {
  list-style: none;
  padding-left: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: #ABD7ED;
  margin-bottom: 7px;
}
.footer-contact img { width: 17px; opacity: 0.75; }
.footer-bottom {
  text-align: center;
  font-size: 14px;
  opacity: 0.87;
  margin-top: 12px;
  color: #70C6CC;
  letter-spacing: 0.01em;
}

/* === EXPLORE LINKS GRID (THANK YOU PAGE) === */
.explore-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.explore-links-grid > div {
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 var(--neon-blue);
  margin-bottom: 20px;
  flex: 1 1 220px;
  transition: box-shadow .15s, transform .13s;
}
.explore-links-grid a {
  color: var(--neon-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color .16s;
}
.explore-links-grid > div:hover, .explore-links-grid > div:focus-within {
  box-shadow: 0 0 20px var(--neon-pink);
  transform: translateY(-4px) scale(1.045);
}
.explore-links-grid a:hover, .explore-links-grid a:focus {
  color: var(--neon-pink);
}

/* === CONTACT DETAILS (CONTACTO PAGE) === */
.contact-details ul {
  padding-left: 0;
  margin: 0 0 10px 0;
  list-style: none;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: #ABD7ED;
}
.contact-details img {
  width: 17px;
  opacity: 0.75;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #70C6CC;
  font-size: 2rem;
  padding: 4px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  z-index: 1130;
  transition: background .15s, color .14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #223B67;
  color: var(--neon-blue);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,32,54, 0.98);
  box-shadow: 0 8px 44px 0 #223B67cc;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.68,0,.23,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.31s cubic-bezier(.6,.12,.4,1), opacity .19s;
}
.mobile-menu-close {
  color: var(--secondary);
  background: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 20px 30px 8px 0;
  cursor: pointer;
  border-radius: 12px;
  transition: background .13s, color .13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #223B67;
  color: var(--neon-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--secondary);
  padding: 8px 24px;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: none;
  transition: background .13s, color .15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #223B67;
  color: var(--neon-pink);
}
@media (max-width: 1020px) {
  .logo-nav-container {
    padding: 12px 10px;
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .main-nav { gap: 20px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid, .testimonials-grid, .explore-links-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card,
  .feature-tile,
  .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.01rem; }
  .footer-brand img { width: 85px; }
}

/* ===== COOKIE CONSENT BANNER & MODAL  ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #223B67;
  color: var(--accent);
  box-shadow: 0 -2px 32px 0 rgba(34,59,103,0.19);
  z-index: 1999;
  padding: 20px 16px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform .17s, opacity .13s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s, opacity .21s;
}
.cookie-banner .cookie-message {
  flex: 1 1 160px;
  margin-bottom: 6px;
  line-height: 1.45;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  padding: 10px 22px;
  border-radius: 24px;
  margin-right: 6px;
  border: none;
  box-shadow: 0 0 8px 0 var(--neon-blue) inset;
  background: var(--secondary);
  color: #162036;
  font-weight: 600;
  transition: background .13s, color .18s, box-shadow .13s;
  cursor: pointer;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: var(--neon-blue);
  color: #fff;
  box-shadow: 0 0 14px var(--neon-blue);
}
.cookie-btn.settings {
  background: none;
  border: 1.2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-btn.settings:focus,
.cookie-btn.settings:hover {
  background: var(--background);
  color: var(--neon-blue);
  border: 1.5px solid var(--neon-blue);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 16px 5px 18px 5px;
    font-size: .97rem;
  }
  .cookie-banner .cookie-actions { gap: 8px; }
  .cookie-btn { font-size: 15px; padding: 8px 14px; }
}
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,32,54,0.86);
  z-index: 2999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #1a2541;
  color: #f5f3ec;
  border-radius: 22px;
  box-shadow: 0 0 60px var(--neon-blue);
  max-width: 96vw;
  width: 410px;
  padding: 32px 28px 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  font-size: 1.65rem;
  color: var(--secondary);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #223B67;
  color: var(--neon-pink);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.cookie-category-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-switch {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #293F61;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .14s;
}
.cookie-switch:checked {
  background: var(--neon-blue);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #eaf3fa;
  border-radius: 50%;
  transition: left .18s;
}
.cookie-switch:checked:before {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  margin-right: 0;
}
@media(max-width:470px) {
  .cookie-modal-content { width: 97vw; }
}

/* ===== ANIMATION & MICRO-INTERACTIONS ===== */
.feature-tile, .card, .testimonial-card, .explore-links-grid > div {
  will-change: transform, box-shadow;
}
.cta-button, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  will-change: background, color, transform, box-shadow;
}

/* ===== ACCENT NEON DECOR (OPTIONAL, NON-ABSOLUTE FOR CONTENT) ===== */
.feature-tile:after {
  content: '';
  display: block;
  width: 54px; height: 9px;
  border-radius: 6px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--secondary), var(--neon-pink));
  opacity: 0.17;
}

/* === Z-INDEX LAYERS === */
header { z-index: 1020; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1999; }
.cookie-modal { z-index: 2999; }

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
