/* 
  Reset básico para asegurar consistencia en distintos navegadores
  (opcional, puedes usar un reset.css o normalize.css)
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Fuente base */
  body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background-color: #010733;

  }
  /* ---   Estructura base   --- */
  .ie-card{
    /*max-width: 250px;*/
    font-family: var(--font-primary);
    border-radius: var(--radius);
    overflow: hidden;             /* evita que la imagen sobresalga */
    box-shadow: var(--shadow);
    border: 1px solid #D9E6FA;    /* un gris muy claro */
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
  }

  /* ---   Imagen   --- */
  .ie-card__img{
    display: block;
    width: 100%;
    height: 180px;                /* ratio 2:1 aprox. */
    object-fit: cover;
  }

  /* ---   Cuerpo   --- */
  .ie-card__body{
    padding: 1.25rem 1.5rem 1.5rem;      /* espacio cómodo */
    position: relative;                  /* para la flecha */
  }

  /* ---   Título   --- */
  .ie-card__title{
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0; /* Updated margin to add space below title */
    line-height: 1.2;
  }

  /* ---   Texto descriptivo   --- */
  .ie-card__text{
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
    color: #374151;        /* gris oscuro */
  }

  .ie-card__underline{
    width: 100px;
    height: 3px;
    border-radius: 8px;
    background:#46BEFF;
    border: 0;
    margin: .5rem 0 1rem;
  }

  /* ---   Flecha   --- */
  .ie-card__arrow{
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background-image: url("./images/fi-rr-angle-small-right.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--accent);
    transition: background .2s;
    cursor: pointer;
  }
  .ie-card__arrow:hover{
    background: rgba(0,153,255,.1);
  }
  .ie-card__arrow svg{
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.5;
  }
  
  /* Cabecera: hero con imagen de fondo */
  .header-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  
  /* Hero principal con fondo azul oscuro (para simular el color de IE) */
  .hero-background {
    background-color: #001e64; /* Color institucional aproximado de IE */
    background-image: url("./images/header-image.webp");
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  
  /* Contenedor del logo en la parte superior derecha */
  .logo-container {
    position: absolute;
    top: 20px;
    right: 0px;
    width: 83px;
    background-color: #fff;
    border-radius: 16px 0px 0px 16px;
    padding: 8px 16px;
  }
  
  .ie-logo {
    max-width: 43px;
    height: auto;
  }
  
  /* Ajustamos la imagen de la esfera, centrada o donde lo desees */
  .hero-content {
    width: 100%;
    min-height: 279px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-sphere {
    max-width: 200px;
    height: auto;
    margin: 40px 0;
  }

  .article-link {
    display: block; /* esto permite que el enlace ocupe todo el espacio del 'article' */
    text-decoration: none; /* quita el subrayado */
    color: inherit; /* hereda el color del elemento padre */
    flex: 1; /* Added to make flex items take equal width */
  }
  
  /* Contenido principal */
  .main-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 12px;
    background-color: #fff;
  }
  
  /* Sección de bienvenida */
  .welcome-section {
    text-align: center;
    margin-bottom: 32px;
  }
  
  .welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .welcome-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
  }
  
  /* Contenedor de las ubicaciones */
  .locations-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-around;
  }
  
  /* Tarjetas de ubicación */
  .location-card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    position: relative;
    width: 350px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
  }
  
  .location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Imagen de la tarjeta */
  .location-card-image img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .5;
  }

  .location-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url(./images/header-image.webp); */
    background-size: cover;
    background-color: #052081;
    background-position: center;
    opacity: 0.5;
    mix-blend-mode: multiply; /* Opciones: multiply, overlay, screen, etc. */
    pointer-events: none; /* Para que no interfiera con interacciones */
  }
  
  /* Contenido de la tarjeta */
  .location-card-content {
    padding: 20px;
    text-align: center;
    z-index: 2;
  }
  
  .location-card-content h2 {
    color: #fff;
    font-size: 1.5rem;
  }

  .sub-line{
    width: 100%;
    height: 1px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
    margin-top: 4px;
  }

  .location-card-content p {
    color: #fff;
  }
  
  /* Texto "Coming Soon" */

  .soon-container {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(50% 50% at 50% 50%, #001034 0%, #001e6437 100%);

  }
  .soon-text {
    display: inline-block;
    font-size: 1.3rem;
    font-style: italic;
    color: #fefefe;
    padding: 5px 10px;
    border-radius: 4px;
  }
  
  /* Botón de AR (solo en la tarjeta activa) */
  .ar-button {
    background-color: #001e64;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 15px;
  }
  
  .ar-button:hover {
    background-color: #003190;
  }
  
  /* Para distinguir la tarjeta activa */
  .active-location {
    border: 2px solid #46BEFF;
    background: radial-gradient(
                75% 88.5% at 100% 100%, 
                rgba(70, 190, 255, 1) 0%, 
                rgba(70, 190, 255, 0) 100%
                );
  }
  
  /* Indicamos un efecto de opacidad para las que están "coming soon", si se desea */
  .coming-soon {
    opacity: 0.7;
  }
  
  /* Pie de página */
  .footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #f5f5f5;
  }
  
  /* Responsividad básica: 
     Ajustamos el grid de tarjetas en pantallas pequeñas */
  @media (max-width: 768px) {
    .locations-container {
      flex-direction: column;
      align-items: center;
    }
    .location-card {
      width: 100%;
      max-width: 400px;
    }
    
  }

  @media (max-width: 512px){
    .welcome-section {
        text-align: left;
    }
    .sub-line{
      width: 100px;
    }
    .location-card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        padding: 8px;
        gap: 16px;
    }
    .location-card-content{
        padding: 8px;
        font-size: 12px;
        text-align: left;
    }
    .location-card-image {
        max-width: 47%;
    }
    .ar-button{
        font-size: 10px;
        color: #46BEFF;
        background-color: transparent;
        padding: 0px;
    }
    .ar-button:hover {
        background-color: transparent;
    }
  }

  .d-none {
    display: none;
  }