@font-face {
  font-family: 'Selawik Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Selawik Regular'), url('/assets/fonts/selawk.woff') format('woff');
}

@font-face {
  font-family: 'Selawik Light';
  font-style: normal;
  font-weight: normal;
  src: local('Selawik Light'), url('/assets/fonts/selawkl.woff') format('woff');
}

@font-face {
  font-family: 'Selawik Semilight';
  font-style: normal;
  font-weight: normal;
  src: local('Selawik Semilight'), url('/assets/fonts/selawksl.woff') format('woff');
}

@font-face {
  font-family: 'Selawik Semibold';
  font-style: normal;
  font-weight: normal;
  src: local('Selawik Semibold'), url('/assets/fonts/selawksb.woff') format('woff');
}

@font-face {
  font-family: 'Selawik Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Selawik Bold'), url('/assets/fonts/selawkb.woff') format('woff');
}

body{
  overflow-x: hidden; /* Corta cualquier contenido que se salga por la derecha */
  margin:0;
  background:#0c4b8a;
  color:#fff;
  font-family:'Selawik Regular';
}

canvas{
  position:fixed;
  inset:0;
  z-index:-1
}

h1 {
  font-size: 2em; /* O el tamaño que prefieras */
}

.panel {
  min-height:100vh;
  width: 100%;
  padding-left: 350px;
}

.panel p {
  max-width: 30vw; /* Ocupa 1/3 del ancho de la ventana */
  min-width: 400px; /* Evita que en pantallas medianas se vea demasiado estrecho */
  line-height: 1.5;
}

@media(max-width:768px){
  .panel p{
    min-width: unset;
    max-width: 100%;
  }

  .panel hr{
    min-width: 100%;
  }
}

/* Ajuste para que la línea horizontal (hr) coincida con el ancho del texto */
.panel hr {
  /*width: 80vw;*/
  min-width: 300px;
  margin-left: 0;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}
.center{text-align:center;align-items:center}
.logotipo{
  display: block;
  margin-top: 5px;
  margin-bottom: 5rem;
  width: 220px;
  height: auto;
}
.bold{font-weight:300}
.area{margin-bottom:2rem}
.reveal {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 1.2s ease-out, filter 1.2s ease-out;
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
}

#nav{
  position:fixed;
  left:0;
  top:0;
  height:100%;
  width:220px;
  display:flex;
  flex-direction:column;
  padding:15px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.25) 100%
  );
  backdrop-filter: blur(5px);
  z-index:5;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}

#nav a{
  display: flex;
  align-items: center;
  color:#666;
  text-decoration:none;
  padding-left:1rem;
  font-weight:400;
  line-height: 2.5;
  border-bottom: 1px solid #ffffff50;
  transition: background 0.5s ease-out, color 0.3s ease-out, box-shadow 0.3s ease-out, transform 0.2s ease-out;
}

#nav .social-footer a.social-btn{
  border-bottom: none;
  padding-left: 0.5rem;
}

#nav a:hover {
  color: #000;
  border-bottom-color: #ffffff80;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

#nav a.active{
  color:#ffffff;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
  background:rgba(12,75,138,.85);
  border-radius: 3px;
}

#nav a .lucide{
  margin-left: auto;
  padding-right: 0.75rem;
}

/* Este contenedor se irá al fondo automáticamente */
/* Redes sociales al fondo del nav */
.social-footer {
    margin-top: auto;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Texto "Síguenos" */
.social-footer .social-label {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}

/* Botón social cuadrado */
.social-footer .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-bottom: none;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s, background 0.3s, box-shadow 0.3s, transform 0.15s;
}

.social-footer .social-btn:hover {
    opacity: 1;
    shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* Tamaño icono Lucide */
.social-footer svg {
        color: rgba(255,255,255,0.95);

    width: 30px;
    height: 30px;
}

#burger {
  display: none; /* Se activará en móviles con Media Queries */
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  
  /* Reset de estilos de botón */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  
  /* Estilo del icono */
  color: #ffffff;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(12,75,138, 0.8));
}

#burger:active {
  color: #0c4b8a;
  transform: scale(0.9);
}

#burger i {
  width: 32px;
  height: 32px;
}


.site-footer{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 4;
  text-align: right;
}

.site-footer p{
  margin: 0;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* Iconos superiores */
.footer-icons svg{
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Enlaces legales */
.footer-links{

  pointer-events: auto;
}

.footer-links a{
        text-decoration: none;
    color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Hover sutil y profesional */
.footer-links a:hover{
  color: rgba(255,255,255,1);
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* Copyright */
.footer-copy{
  line-height: 1.6;
}







@media(max-width:768px){
  #nav{
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.75) 100%
    );
    transform:translateX(-100%);
    transition:.4s;
  }
  #nav.open{
    transform:translateX(0);
  }
  #burger{
    display:block;
  }
  .area {
    flex: 0 0 100%;
  }
  .panel {
    padding-left: 10vw; /* Cambia solo el padding izquierdo */
    padding-right: 10vw;
    width: 80vw;
  }
  footer {
    right: 10px !important;
    left: 10px !important;
    text-align: right;
    bottom: 10px !important;
  }
  header {
    /* padding: 15px 10px !important; Menos margen en móviles */   
    /* width: 100%;  En móvil que ocupe todo el ancho */
    justify-content: flex-end;
  }
}

#preloader{
  position:fixed;
  inset:0;background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20
}
.loader-bar{width:60%}
.bar{height:4px;background:#333;margin-top:.5rem}
.fill{height:100%;width:0;background:#fff}

#contacto ul {
  display: flex;             /* Activa el alineamiento horizontal */
  flex-wrap: wrap;           /* Si no caben en una línea (móvil), saltan a la siguiente */
  list-style: none;          /* Quita los puntos de la lista */
  padding: 0;                /* Elimina el margen interno por defecto */
  /*gap: 1rem;                  Espacio uniforme entre cada país */
  margin-top: 2rem;
   width: 100%;
}

#contacto li {
  flex: 0 0 10%;
  display: flex;
  align-items: center;       /* Alinea el icono con el texto verticalmente */
  gap: 0.5rem;               /* Espacio entre el icono y el nombre del país */
  font-weight: 400;
  box-sizing: border-box;
}

#areas ul {
  display: flex;             /* Activa el alineamiento horizontal */
  flex-wrap: wrap;           /* Si no caben en una línea (móvil), saltan a la siguiente */
  list-style: none;          /* Quita los puntos de la lista */
  padding: 0;                /* Elimina el margen interno por defecto */
  gap: 2rem;                 /* Espacio uniforme entre cada país */
  margin-top: 2rem;
   width: 100%;
}

#areas li {
  flex: 0 0 25%;
  display: flex;
  gap: 0.5rem;               /* Espacio entre el icono y el nombre del país */
  box-sizing: border-box;
}
/* Ajuste para móvil: si prefieres que en pantallas pequeñas vuelvan a estar uno debajo de otro */
@media (max-width: 600px) {
  #contacto ul {
    gap: 1rem;
    flex-direction: column;  /* Opcional: vuelve a vertical en móviles muy estrechos */
  }
}
.cookie-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(12, 75, 138, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    padding: 20px;
}

.cookie-container.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-cookie {
    background: #fff;
    color: #0c4b8a;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-cookie.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-cookie:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.cookie-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    font-size: 12px;
}

@media (max-width: 768px) {
    .cookie-buttons { flex-direction: column; width: 100%; }
    .btn-cookie { width: 100%; }
}

/* Estilo base para los detalles */
.accordion-item {
    padding: 5px 0;
    max-width: 300px;
}

.accordion-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    color: #ffffff80;
}

.accordion-item summary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    transition: all 0.3s ease;
}


/* Esconder el icono de estado en escritorio si lo deseas, 
   o dejarlo para mayor interactividad */
.icon-state {
    margin-left: auto;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* 1. Cambio del fondo y color de texto del encabezado cuando está abierto */
.accordion-item[open] summary {
    background-color: #ffffff;
    color: #0c4b8a;
    border-radius: 4px;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* 2. Cambio del color de TODOS los iconos dentro del summary cuando está abierto */
.accordion-item[open] summary i {
    color: #0c4b8a;
    transition: color 0.6s ease;
}

/* 3. Tu regla de rotación (manteniendo la coherencia de tiempo) */
.accordion-item[open] .icon-state {
    transform: rotate(90deg);
    transition: transform 0.8s ease, color 0.6s ease;
}

.accordion-content {
    animation: fadeIn 0.4s ease;
    color: rgba(255, 255, 255, 0.7); 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-send:hover {
    background: #ffffff !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-contacto-pro {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-contacto-pro:hover {
    color: #ffffff80;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.mail-wrapper {
    padding: 5px 0;
}

.boton-email {
    display: inline-flex;
    align-items: center;
    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #0c4b8a;
    text-decoration: none;
    border-radius: 3px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 100%;       
    max-width: 280px;  
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.boton-email .texto-boton {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.boton-email small {
    color: rgba(12, 75, 138, 0.85);
    text-transform: uppercase;
}

.boton-email span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Efecto Hover Pro */
.boton-email:hover {
    background: rgba(249, 188, 1, 1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.boton-email:hover i {
    filter: drop-shadow(0 0 5px #fff);
    color: #fff;
}


.modal-legal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Tu azul corporativo */
    z-index: 3000;
    display: none; /* Escondido por defecto */
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.2);
}

#modalTitle {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(12,75,138,0.7);
}

.close-btn {
    background: transparent;
    border: none;
    color: #0c4b8a;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.modal-body {
    flex-grow: 1;
    overflow: hidden;
}

#legalFrame {
    width: 100%;
    height: 100%;
    background: white; /* O transparente si tus html legales ya tienen fondo */
}

/* En PC, que no ocupe todo el ancho si prefieres */
@media (min-width: 769px) {
    .modal-legal {
        width: 100%;
        height: 100%;

    }
}
