/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  @font-face {
    font-family: 'Helvetica Now Display';
    src: url('./font/HelveticaNowDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  body {
    font-family: 'Helvetica Now Display';
    background-color: #ffffff;
    color: #000033;
    line-height: 1.6;
  }
  
  /* Header */
  .header {
    background-color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .nav a {
    margin: 0 10px;
    color: #000033;
    text-decoration: none;
    font-weight: 500;
  }
  
  .btn-contacto {
    background-color: #523AB5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* Hero */
  .hero {
    background: 
      linear-gradient(to right, rgba(82, 48, 181), rgba(255, 255, 255, 0.0)),
      url('./images/portada 2.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
  }
  
  .hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 64px;
  }

  .departamentos-title h2 {
    color: #523AB5;
    font-size: 32px;
    padding: 60px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  /* Departamentos */
  .departamentos {
    display: flex;
    gap: 20px;
    padding: 20px 20px 20px 20px;
    transition: all 0.3s ease;
  }
  
  .card {
    color: #000000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 1);
    flex: 1;
    height: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: flex 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .card p {
    display: none;
    margin-top: 10px;
    font-size: 18px;
  }
  
  .card.expanded p {
    display: block;
  }
  
  .card-inicial {
    flex: 2;
  }
  
  /* Las demás cards por defecto: 25% */
  .departamentos .card:not(.card-inicial) {
    flex: 1;
  }
  
  /* Hover general en toda la sección */
  .departamentos:hover .card {
    flex: 1;
  }
  
  /* Al hacer hover sobre una específica */
  .departamentos .card:hover {
    flex: 2;
  }
  
  .academy h3 { color: #01cd78; }
  .nova h3 { color: #f8082f; }
  .neuraia h3 { color: #3333ff; }

  .neuraia { 
    background: linear-gradient(rgba(51, 51, 255, 0.2), rgba(255, 255, 255, 1)), url('./images/neura ia fondo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .nova { 
    background: linear-gradient(rgba(248, 8, 47, 0.2), rgba(255, 255, 255, 1)), url('./images/nova ia fondo.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .academy { 
    background: linear-gradient(rgba(1, 205, 120, 0.2), rgba(255, 255, 255, 1)), url('./images/neura academy fondo.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
  
  /* Empresas */
  .empresas {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
  }

  .empresas h2 {
    color: #523AB5;
    font-size: 32px;
    margin-bottom: 40px;
  }

  .logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .logo-empresa {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
  }

  .logo-empresa:hover {
    filter: grayscale(0%);
  }
  
  /* Nosotros */
  .nosotros {
    background-color: white;
    padding: 60px 120px;
    text-align: center;
  }

  .nosotros h2 {
    color: #523AB5;
    font-size: 32px;
    padding-bottom: 30px;
  }
  
  /* Footer */
  .footer {
    background-color: #000033;
    color: white;
    text-align: center;
    padding: 20px;
  }
  
  .section-title {
    text-align: center;
    color: #523AB5;
    font-size: 32px;
    margin-bottom: 2rem;
    margin-top: 40px;
  }
  
  .logo {
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9));
  }
  