/* Modern CSS Reset */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  color: #333;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Normalize-style fixes */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

main {
  display: block;
}

hr {
  height: 0;
  overflow: visible;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: #0066cc;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* Basic spacing and typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p, ul, ol, dl, table {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 2rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.5rem;
}

a:hover {
  text-decoration: underline;
}

blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
}

code {
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 3px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #f5f5f5;
}

/* Header styles */
/* Base Styles */
  :root {
    --primary-color: #0a4d8c;
    --secondary-color: #1a76d2;
    --accent-color: #f3b617;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #052c54;
    --light-bg: #f7f9fc;
    --border-color: #e1e8f0;
    --shadow-color: rgba(10, 77, 140, 0.15);
    --transition: all 0.3s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Header Styles */
  .finance-header {
    width: 100%;
    background-color: var(--light-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
  }

  /* Logo Styles */
  .logo-wrapper {
    display: flex;
    align-items: center;
  }

  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
  }

  .logo-icon {
    font-size: 24px;
    font-weight: bold;
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
  }

  .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  /* Desktop Navigation */
  .desktop-nav {
    display: none;
  }

  @media (min-width: 768px) {
    .desktop-nav {
      display: block;
    }
    
    .nav-list {
      display: flex;
      list-style: none;
    }
    
    .nav-item {
      margin: 0 15px;
    }
    
    .nav-link {
      text-decoration: none;
      color: var(--text-color);
      font-size: 16px;
      font-weight: 500;
      position: relative;
      padding: 5px 0;
      transition: var(--transition);
    }
    
    .nav-link:hover {
      color: var(--secondary-color);
    }
    
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--secondary-color);
      transition: var(--transition);
    }
    
    .nav-link:hover::after {
      width: 100%;
    }
  }

  /* CTA Button */
  .cta-wrapper {
    display: none;
  }

  @media (min-width: 768px) {
    .cta-wrapper {
      display: block;
    }
    
    .cta-button {
      background-color: var(--accent-color);
      color: var(--dark-bg);
      padding: 10px 20px;
      border-radius: 4px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
      display: inline-block;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .cta-button:hover {
      background-color: #e5a90f;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
  }

  /* Mobile Toggle */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .toggle-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
  }

  @media (min-width: 768px) {
    .mobile-toggle {
      display: none;
    }
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    padding: 60px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }

  .close-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
  }

  .close-icon::before,
  .close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-text);
  }

  .close-icon::before {
    transform: rotate(45deg);
  }

  .close-icon::after {
    transform: rotate(-45deg);
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
  }

  .mobile-logo-icon {
    font-size: 22px;
    font-weight: bold;
    background-color: var(--light-text);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
  }

  .mobile-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: -0.5px;
  }

  .mobile-nav-list {
    list-style: none;
  }

  .mobile-nav-item {
    margin-bottom: 20px;
  }

  .mobile-nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 5px 0;
    transition: var(--transition);
  }

  .mobile-nav-link:hover {
    color: var(--accent-color);
  }

  .mobile-cta {
    margin-top: 30px;
  }

  .mobile-cta-button {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
  }

  .mobile-cta-button:hover {
    background-color: #e5a90f;
  }

/* Footer styles */
/* Base Styles */
  .footer-container {
    width: 100%;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2339 100%);
    color: #e6e6e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }

  .footer-section {
    flex: 1 1 250px;
    margin-bottom: 2rem;
    padding-right: 2rem;
  }

  .footer-heading {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
  }

  .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #4da6ff;
  }

  .footer-text {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #c5d0dc;
  }

  /* Navigation Lists */
  .footer-nav-list,
  .footer-resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav-item,
  .footer-resource-item {
    margin-bottom: 0.75rem;
  }

  .footer-link {
    color: #c5d0dc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
  }

  .footer-link:hover {
    color: #4da6ff;
    transform: translateX(3px);
  }

  .footer-link::before {
    content: '›';
    margin-right: 0.5rem;
    color: #4da6ff;
  }

  /* Contact Information */
  .footer-contact-info {
    margin-top: 1.5rem;
  }

  .footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #c5d0dc;
  }

  .footer-contact-item i {
    color: #4da6ff;
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
  }

  /* Newsletter Form */
  .footer-form-group {
    display: flex;
    margin-bottom: 1.25rem;
  }

  .footer-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
  }

  .footer-input::placeholder {
    color: #a0b0c2;
  }

  .footer-button {
    padding: 0 1.25rem;
    background-color: #4da6ff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }

  .footer-button:hover {
    background-color: #3d95ee;
  }

  /* Social Media */
  .footer-social {
    display: flex;
    margin-top: 1.5rem;
  }

  .footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
  }

  .footer-social-link:hover {
    background-color: #4da6ff;
    transform: translateY(-3px);
  }

  /* Bottom Section */
  .footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    text-align: center;
  }

  .footer-legal {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-legal-link {
    color: #a0b0c2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .footer-legal-link:hover {
    color: #4da6ff;
  }

  .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
  }

  .footer-disclaimer {
    font-size: 0.8rem;
    color: #8a9db0;
    margin-top: 0.75rem;
    line-height: 1.5;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .footer-section {
      flex: 1 1 200px;
    }
  }

  @media (max-width: 768px) {
    .footer-main {
      flex-direction: column;
      padding: 2.5rem 1.5rem;
    }
    
    .footer-section {
      padding-right: 0;
      margin-bottom: 2.5rem;
      width: 100%;
    }
    
    .footer-section:last-child {
      margin-bottom: 0;
    }
    
    .footer-legal {
      flex-direction: column;
      gap: 1rem;
    }
  }

  @media (max-width: 480px) {
    .footer-form-group {
      flex-direction: column;
    }
    
    .footer-input {
      border-radius: 4px;
      margin-bottom: 0.75rem;
    }
    
    .footer-button {
      width: 100%;
      border-radius: 4px;
      padding: 0.75rem;
    }
  }

/* Cookie Banner styles */
.banner-cookies-finanzas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: 'Arial', sans-serif;
    border-top: 1px solid #e0e0e0;
  }

  .contenedor-aviso {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
  }

  .mensaje-cookies {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .mensaje-cookies a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
  }

  .mensaje-cookies a:hover {
    text-decoration: underline;
  }

  .opciones-cookies {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
  }

  .boton-cookies {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
  }

  .boton-rechazar {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
  }

  .boton-rechazar:hover {
    background-color: #dee2e6;
  }

  .boton-aceptar {
    background-color: #0056b3;
    color: white;
  }

  .boton-aceptar:hover {
    background-color: #004494;
  }

  @media (min-width: 768px) {
    .contenedor-aviso {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }

    .mensaje-cookies {
      margin-bottom: 0;
      margin-right: 2rem;
    }

    .opciones-cookies {
      flex-shrink: 0;
    }
  }

  @media (max-width: 767px) {
    .opciones-cookies {
      justify-content: center;
    }
  }