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

/* Document */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* 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;
}

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

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

/* Misc */
hr {
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

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

:focus {
  outline: 2px solid rgba(0, 0, 0, 0.1);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Header styles */
/* Base Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Variables */
  :root {
    --primary-color: #00529b;
    --secondary-color: #e4a13c;
    --accent-color: #1a7cb7;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #222222;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    --header-height: 120px;
    --top-section-height: 40px;
    --main-nav-height: calc(var(--header-height) - var(--top-section-height));
    
    --transition: all 0.3s ease;
    --radius: 4px;
    
    --container-width: 1200px;
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
  }
  
  /* Container */
  .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header Container */
  .header-container {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
  }
  
  /* Top Section */
  .top-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    height: var(--top-section-height);
    font-size: 14px;
  }
  
  .top-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .contact-info {
    display: flex;
    gap: 20px;
  }
  
  .contact-info a {
    color: var(--light-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  .social-item {
    color: var(--light-text);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
  }
  
  .social-item:hover {
    color: var(--secondary-color);
  }
  
  /* Main Navigation */
  .main-navigation {
    height: var(--main-nav-height);
    background-color: var(--light-text);
  }
  
  .main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-primary);
    gap: 10px;
  }
  
  .logo-icon {
    font-size: 24px;
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: var(--radius);
    display: inline-block;
    line-height: 1;
  }
  
  .logo-icon .accent {
    color: var(--secondary-color);
  }
  
  .logo-text {
    font-size: 20px;
    font-weight: 600;
  }
  
  /* Desktop Navigation */
  .desktop-nav {
    display: flex;
    align-items: center;
  }
  
  .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
  }
  
  .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
  }
  
  .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: var(--transition);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  /* CTA Button */
  .cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
  }
  
  .cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
  }
  
  /* Action Area */
  .action-area {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  /* Mobile Toggle */
  .mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light-text);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .close-menu {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
  }
  
  .close-icon {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
  }
  
  .close-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: rotate(90deg);
  }
  
  .mobile-nav-list {
    list-style: none;
    margin-bottom: 30px;
  }
  
  .mobile-nav-item {
    margin-bottom: 15px;
  }
  
  .mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
  }
  
  .mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
  }
  
  .mobile-cta {
    margin-top: auto;
    text-align: center;
  }
  
  .mobile-cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
  
  /* Responsive Styles */
  @media (max-width: 1024px) {
    .nav-list {
      gap: 20px;
    }
    
    .logo-text {
      font-size: 18px;
    }
  }
  
  @media (max-width: 768px) {
    :root {
      --header-height: 80px;
      --top-section-height: 0;
      --main-nav-height: 80px;
    }
    
    .top-section {
      display: none;
    }
    
    .desktop-nav {
      display: none;
    }
    
    .mobile-toggle {
      display: flex;
    }
    
    .cta-button {
      display: none;
    }
    
    .main-navigation .container {
      padding: 0 15px;
    }
  }
  
  @media (min-width: 769px) {
    .mobile-menu {
      display: none;
    }
  }

/* Footer styles */
/* Base Footer Styles */
  .footer-container {
    width: 100%;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2339 100%);
    color: #e6e6e6;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  /* Typography */
  .footer-heading {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
  }

  .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #ffb74d;
    border-radius: 2px;
  }

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

  /* Main Footer Layout */
  .footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 5% 3rem;
    max-width: 1400px;
    margin: 0 auto;
  }

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

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

  .footer-contact-item i {
    margin-right: 0.8rem;
    color: #ffb74d;
    font-size: 1rem;
    min-width: 20px;
  }

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

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

  .footer-link {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 1rem;
  }

  .footer-link::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ffb74d;
    transition: transform 0.2s ease;
  }

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

  .footer-link:hover::before {
    transform: translateX(2px);
  }

  /* Newsletter Section */
  .footer-form {
    margin-top: 1.2rem;
  }

  .footer-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-input {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
  }

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

  .footer-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
  }

  .footer-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #ffb74d;
    color: #0d2339;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .footer-button:hover {
    background-color: #ffa726;
    transform: translateY(-2px);
  }

  .footer-button:active {
    transform: translateY(0);
  }

  /* Social Media Section */
  .footer-social {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.5rem 5%;
    text-align: center;
  }

  .footer-social-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
  }

  .footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

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

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

  /* Bottom Footer Section */
  .footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

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

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

  .footer-legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  .footer-copyright {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-align: center;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .footer-main {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem 1.5rem;
    }
  }

  @media (max-width: 768px) {
    .footer-main {
      grid-template-columns: 1fr;
      padding: 3rem 5% 2rem;
    }

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

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

    .footer-form-group {
      flex-direction: column;
    }

    .footer-social-link {
      width: 36px;
      height: 36px;
      font-size: 1.1rem;
    }

    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
    }

    .footer-legal {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
  }

  @media (max-width: 480px) {
    .footer-heading {
      font-size: 1.1rem;
    }

    .footer-text,
    .footer-contact-item {
      font-size: 0.9rem;
    }

    .footer-input,
    .footer-button {
      font-size: 0.9rem;
      padding: 0.7rem 1rem;
    }

    .footer-social-icons {
      gap: 1rem;
    }

    .footer-social-link {
      width: 32px;
      height: 32px;
      font-size: 1rem;
    }

    .footer-legal-link,
    .footer-copyright {
      font-size: 0.8rem;
    }
  }
/* Cookie Banner Styles */
.banner-cookies-educacion {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a3a5f 0%, #0d2339 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 0;
  border-top: 3px solid #ffb74d;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.contenedor-aviso {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mensaje-cookies {
  color: #e6e6e6;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.mensaje-cookies a {
  color: #ffb74d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.opciones-cookies {
  display: flex;
  gap: 12px;
}

.boton-rechazar,
.boton-aceptar {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.boton-rechazar {
  background-color: rgba(255, 255, 255, 0.1);
  color: #d1d1d1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.boton-rechazar:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.boton-aceptar {
  background-color: #ffb74d;
  color: #0d2339;
  border: 1px solid #ffb74d;
}

.boton-aceptar:hover {
  background-color: #ffa726;
  transform: translateY(-2px);
}

.boton-aceptar:active {
  transform: translateY(0);
}

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

  .mensaje-cookies {
    margin-right: 20px;
    max-width: 70%;
  }

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

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

@media (max-width: 480px) {
  .banner-cookies-educacion {
    padding: 0;
  }
  
  .contenedor-aviso {
    padding: 14px 16px;
  }
  
  .mensaje-cookies {
    font-size: 14px;
  }
  
  .opciones-cookies {
    flex-wrap: wrap;
  }
  
  .boton-rechazar,
  .boton-aceptar {
    flex-grow: 1;
    padding: 8px 16px;
  }
}

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

    .mensaje-cookies {
      margin: 0;
      padding-right: 20px;
    }

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

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

    .boton-rechazar,
    .boton-aceptar {
      flex-grow: 1;
      text-align: center;
    }
  }