/* Reset y variables globales */
:root {
    --primary-color: #163047;
    --secondary-color: #1e88e5;
    --accent-color: #1565c0;
    --light-bg: #f5f5f5;
    --dark-text: #333;
    --light-text: #f5f5f5;
    --gray-text: #999;
    --section-padding: 80px 20px;
    --transition-speed: 0.3s;
  }

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

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    font-weight: 400;
    line-height: 1.6;
  }

  /* Utilidades generales */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
  }

  .btn:hover {
    background-color: var(--accent-color);
  }

  .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--gray-text);
  }

  /* Navegación */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
  }

  .navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-logo {
    height: 50px;
  }

  .nav-menu {
    display: flex;
    list-style: none;
  }

  .nav-item {
    margin-left: 30px;
  }

  .nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
  }

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

  .burger {
    display: none;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px;
    transition: all var(--transition-speed) ease;
  }

  /* Header/Hero */
  .hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(22, 48, 71, 0.9), rgba(22, 48, 71, 0.9)), url('/api/placeholder/1600/900');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 180px 0 100px;
    text-align: center;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
  }

  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  /* Sección Nosotros */
  .about {
    padding: var(--section-padding);
    background-color: var(--light-bg);
  }

  .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
  }

  .about-text {
    flex: 1;
    min-width: 300px;
  }

  .about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
  }

  .about-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Sección Servicios */
  .services {
    padding: var(--section-padding);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }

  .service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform var(--transition-speed) ease;
  }

  .service-card:hover {
    transform: translateY(-10px);
  }

  .service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
  }

  .service-description {
    color: var(--gray-text);
  }

  /* Sección Estructura y Alianzas */
  .structure {
    padding: var(--section-padding);
    background-color: var(--light-bg);
  }

  .structure-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 500;
    color: var(--gray-text);
    transition: color var(--transition-speed) ease;
  }

  .tab-btn.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }

  .partner-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
  }

  .partner-logo {
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
  }

  .partner-name {
    font-weight: 600;
    margin-bottom: 10px;
  }

  .partner-description {
    font-size: 0.9rem;
    color: var(--gray-text);
  }

  /* Sección Contacto */
  .contact {
    padding: var(--section-padding);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .contact-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
  }

  .form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
  }

  .form-textarea {
    min-height: 150px;
    resize: vertical;
  }

  .locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }

  .location {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 10px;
    padding: 30px;
  }

  .location-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
  }

  .location-info p {
    margin-bottom: 10px;
  }

  /* Footer */
  .footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 30px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
  }

  .footer-links {
    list-style: none;
  }

  .footer-link {
    margin-bottom: 10px;
  }

  .footer-link a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
  }

  .footer-link a:hover {
    color: var(--light-text);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
  }

  .developer {
    margin-top: 10px;
  }

  /* Botón volver arriba */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
  }

  .back-to-top.show {
    opacity: 1;
    visibility: visible;
  }

  .back-to-top i {
    font-size: 1.5rem;
  }

  /* Media Queries */
  @media screen and (max-width: 768px) {
    .section-title {
      font-size: 2rem;
    }
    
    .hero-title {
      font-size: 2.2rem;
    }
    
    .hero {
      padding: 150px 0 80px;
    }

    .burger {
      display: block;
    }

    .nav-menu {
      position: absolute;
      right: -100%;
      top: 80px;
      background-color: var(--primary-color);
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding: 20px 0;
      transition: right var(--transition-speed) ease;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
      right: 0;
    }

    .nav-item {
      margin: 15px 0;
    }
  }

  @media screen and (max-width: 480px) {
    .hero-title {
      font-size: 1.8rem;
    }
    
    .hero-subtitle {
      font-size: 1.2rem;
    }
    
    .section-title {
      font-size: 1.5rem;
    }
    
    .section-subtitle {
      font-size: 1rem;
    }

    .navbar-logo {
      height: 40px;
    }
  }
  .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .form-row .form-group {
    flex: 1;
    min-width: 250px;
  }
  .white-link {
    color: #fff;
    text-decoration: none;
  }
  
  .white-link:hover {
    text-decoration: underline;
  }
    