/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Document */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

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

ul, ol {
  list-style-position: inside;
}

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

a:hover {
  text-decoration: underline;
}

small {
  font-size: 80%;
}

/* Media */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Forms */
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;
  cursor: pointer;
}

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;
  border: 1px solid #ccc;
}

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

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[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;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

th {
  text-align: left;
}

/* Interactive */
details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
}

template {
  display: none;
}

/* Misc */
hr {
  height: 0;
  border: 0;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

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

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

/* Header styles */
/* Base Styles */
  :root {
    --primary-color: #00796B;
    --secondary-color: #004D40;
    --accent-color: #FFD54F;
    --text-color: #263238;
    --light-text: #ECEFF1;
    --background-color: #FFFFFF;
    --light-background: #E0F2F1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Header Styles */
  .finance-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 100;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 70px;
  }
  
  /* Logo Styles */
  .logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
  }
  
  .logo-icon {
    margin-right: 0.5rem;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  /* Desktop Navigation */
  .desktop-nav {
    display: none;
  }
  
  .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed) ease;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  /* CTA Button */
  .cta-container {
    display: none;
  }
  
  .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: 0 2px 5px rgba(0, 121, 107, 0.3);
  }
  
  .cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 121, 107, 0.4);
  }
  
  /* Mobile Toggle */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }
  
  .toggle-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
  }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .close-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
  }
  
  .close-line:first-child {
    transform: rotate(45deg);
  }
  
  .close-line:last-child {
    transform: rotate(-45deg);
  }
  
  .mobile-logo {
    margin: 2rem 0 3rem;
  }
  
  .mobile-nav-list {
    list-style: none;
    margin: 2rem 0;
  }
  
  .mobile-nav-item {
    margin-bottom: 1.5rem;
  }
  
  .mobile-nav-link {
    display: block;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
  }
  
  .mobile-nav-link:hover {
    color: var(--primary-color);
  }
  
  .mobile-cta {
    margin-top: 2rem;
  }
  
  .mobile-cta-button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed) ease;
  }
  
  .mobile-cta-button:hover {
    background-color: var(--secondary-color);
  }
  
  /* Responsive Styles */
  @media (min-width: 768px) {
    .desktop-nav {
      display: block;
    }
    
    .cta-container {
      display: block;
    }
    
    .mobile-toggle {
      display: none;
    }
  }
  
  @media (min-width: 1024px) {
    .header-container {
      padding: 0 2rem;
      height: 80px;
    }
    
    .logo-text {
      font-size: 1.75rem;
    }
    
    .nav-list {
      gap: 2.5rem;
    }
    
    .nav-link {
      font-size: 1.1rem;
    }
    
    .cta-button {
      padding: 0.85rem 1.75rem;
      font-size: 1.1rem;
    }
  }

/* Footer styles */
/* Base Footer Styles */
  .footer-main {
    width: 100%;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2339 100%);
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    margin: 0;
    border-top: 4px solid #ffb547;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  /* Footer Sections */
  .footer-section {
    display: flex;
    flex-direction: column;
  }

  .footer-heading {
    color: #ffb547;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    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: #ffb547;
  }

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

  /* Contact Info */
  .footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .footer-contact i {
    margin-right: 0.75rem;
    color: #ffb547;
  }

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

  .footer-nav-list li {
    margin-bottom: 0.75rem;
  }

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

  .footer-link:hover {
    color: #ffb547;
    transform: translateX(5px);
  }

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

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

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

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

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

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

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

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

  .footer-social-link:hover {
    background-color: #ffb547;
    color: #0d2339;
    transform: translateY(-3px);
  }

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

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

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

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

  .footer-copyright {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
  }

  .footer-disclaimer {
    font-size: 0.8rem;
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
  }

  /* Responsive Styles */
  @media (max-width: 1024px) {
    .footer-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }

    .footer-section {
      padding-bottom: 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-child {
      border-bottom: none;
    }

    .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 {
      border-radius: 4px;
      padding: 0.75rem;
    }
  }

/* Cookie Banner styles */
.banner-consentimiento-cookies {
    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;
    display: flex;
    justify-content: center;
    border-top: 3px solid #0056b3;
  }

  .contenedor-aviso {
    max-width: 1200px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

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

  .mensaje-cookies a {
    color: #0056b3;
    text-decoration: underline;
  }

  .contenedor-botones {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }

  .boton-aceptar, .boton-rechazar {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
  }

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

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

  .boton-rechazar {
    background-color: #e2e2e2;
    color: #555;
  }

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

  @media (max-width: 768px) {
    .contenedor-aviso {
      padding: 1rem;
    }
    
    .contenedor-botones {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .boton-aceptar, .boton-rechazar {
      width: 100%;
    }
  }