@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500);

html {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;

  }

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #ffff;
    z-index: 1000;
}

/* Asegura que el logo, botones y herramientas no choquen */
.nav {
    display: flex;           
    justify-content: space-between; 
    align-items: center;
    padding: 0 40px;
    height: 80px;
    gap: 20px;                
}

.brand {
    flex: 0 0 auto;           
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;                
    flex: 1 1 auto;           
}

.nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;           
}


.logo {
    height: 60px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #155e93;
    cursor: pointer;
}
  
/* ---------------- BOTONES TIPO "GIFT GUIDE" ---------------- */
.contact-btn {
    position: relative; 
    color: #155e93;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 5px; 
    text-decoration: none;
    background: transparent;
    border: none;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

/* La línea azul que aparece abajo */
.contact-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px; 
    bottom: 0;
    left: 0;
    background-color: #007bff; 
    transform: scaleX(0); 
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn:hover {
    color: #007bff;
}

.contact-btn:hover::after {
    transform: scaleX(1); 
    transform-origin: bottom left;
}


/* ---------------- BOTONES DE ICONO EXPANSIBLES ---------------- */
.icon-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0; 
}

.icon-btn {
    display: flex;
    align-items: center;
    background: #f1f5f9; 
    color: #155e93;
    text-decoration: none;
    padding: 10px;
    border-radius: 50px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; 
    max-width: 35px; 
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.icon-btn i {
    min-width: 22px;
    font-size: 1.1rem;
    text-align: center;
}

.icon-btn span {
    opacity: 0;
    margin-left: 0px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, margin 0.3s ease;
}

/* EFECTO HOVER: Se expande y muestra el texto */
.icon-btn:hover {
    max-width: 200px; 
    background: #155e93;
    color: white;
    padding-right: 20px; 
}

.icon-btn:hover i {
    color: white;
}

.icon-btn:hover span {
    opacity: 1;
    margin-left: 10px;
}

/* ---------------- SELECTOR DE IDIOMA ---------------- */
.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 35px; 
}

.globe-icon {
    position: absolute;
    left: 16px;
    pointer-events: none; 
    color: #0F4C81;
    font-size: 16px;
    z-index: 1;
}

form select {
    padding: 8px 12px; 
    border-radius: 10px;
    border: 2px solid #a4d1f969;
    background: white;
    font-size: 14px;
    color: transparent; 
    font-weight: 400;
    appearance: none;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    width: 50px; 
}

form select option {
    color: #0F4C81;
    background-color: white;
}

form select:hover {
    border-color: #66a5e4;
    background-color: #f0f7ff;
}
.lang-form {
    display: flex;
    align-items: center;
    margin: 0;    
}


/* --- Pie de Página --- */
.main-footer {
    background-color: #002244; 
    color: #ecf0f1; 
    padding: 40px 20px 0; 
}

.footer-content {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.footer-column {
    width: 22%; 
    margin-bottom: 20px;
    min-width: 180px; 
}

.footer-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #e1ebf3;
    margin-bottom: 15px;
}

.footer-column p {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #69b9f5;
    text-decoration: underline;
}


.social-links a {
    color: #ecf0f1;
    margin-right: 15px;
    font-size: 24px;
}

.social-links a:hover {
    color: #69b9f5;
}


/* Sección Inferior  */
.footer-bottom {
    background-color: #002244; 
    border-top: 1px solid #34495e;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    align-content: center;
}

.copyright {
    margin: 10px 0;
    color: #bdc3c7;
    text-align: center;
}


/* ===== BOTÓN IR ARRIBA ===== */
#btn-up {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #155e93;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    z-index: 2000; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#btn-up:hover {
    background-color: #0d4772;
    transform: translateY(-3px);
}

.mobile-only {
    display: none;
  }
  
  /* Mostrar solo en móviles */
  @media (max-width: 768px) {
  
    .mobile-only {
      display: block;
      margin-top: 10px;
    }
  
    .mobile-only a {
      display: block;
      padding: 10px;
      background: #c8e8ffc5;
      color: white !important;
      border-radius: 5px;
      text-align: center;
      margin-bottom: 8px;
    }
  
    /* botones ocultos del header en móvil */
    .nav-right .news-btn,
    .nav-right .contact-btn {
      display: none !important;
    }
  }

  
  

/*===== RESPONSIVA =====*/

@media (max-width: 768px) {

    @media (max-width: 768px) {
        .nav {
            padding: 0 10px; /* Reducimos espacio lateral */
            gap: 5px; /* Reducimos espacio entre bloques */
        }
    
        .brand {
            flex: 1; /* El logo toma el espacio disponible */
        }
    
        .logo {
            height: 35px; /* Logo más pequeño para que quepa todo */
        }
    
        .nav-tools {
            gap: 5px; /* Pegamos más los iconos y el selector de idioma */
        }
    
        /* Reducimos el tamaño de los botones circulares en móvil */
        .icon-btn {
            padding: 6px;
            max-width: 30px;
            height: 30px;
        }
    
        .icon-btn i {
            font-size: 0.9rem;
            min-width: 18px;
        }
    
        /* Hacemos el selector de idioma más compacto */
        .lang-wrapper {
            height: 30px;
        }
        
        form select {
            width: 42px;
            padding: 4px 5px;
            font-size: 12px;
        }
    
        .globe-icon {
            left: 8px;
            font-size: 12px;
        }
    }
  

    /*-----Encabezado----*/
    .footer-content {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-column {
        width: 100%;
        min-width: unset;
        text-align: center; 
    }

    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .footer-column li {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-info-links {
        margin-bottom: 10px; 
    }
}

/* Main content spacing */
main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background-color: #ffff;
}

/* Ajustes para móviles y tablets */
@media (max-width: 1024px) {
   
    .icon-tools {
        display: none !important;
    }
    .nav {
        justify-content: space-between;
        padding: 0 15px;
        gap: 10px;
    }

    .brand {
        flex: 1;
    }

    
    .nav-tools {
        order: 3;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: block !important; 
        order: 2; 
    }
    
    header {
        overflow: visible !important;
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex !important; 
    }

   
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-buttons .contact-btn {
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }

    form select {
        color: #0F4C81 !important; 
        width: 65px !important;    
        background-color: #f0f7ff !important;
        border: 1px solid #a4d1f9 !important;
        padding-left: 25px !important;
        opacity: 1 !important;
    }

    .mobile-extra-links {
        display: flex;
        flex-direction: column;
        background-color: #f4f7f9;
        width: 100%;
    }

    .mobile-extra-links hr {
        border: 0;
        border-top: 1px solid #ddd;
        margin: 10px 20px;
    }

    .mobile-extra-links .contact-btn {
        padding: 15px 30px !important; 
        text-align: left;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

    .mobile-extra-links i {
        margin-right: 15px;
        color: #155e93;
        font-size: 1.2rem;
        width: 25px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .logo {
        height: 35px;
    }
    form select {
        width: 55px !important;
        font-size: 11px;
    }
}

@media (min-width: 1025px) {
    .mobile-extra-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .lang-wrapper {
        margin-left: 5px;
    }
    
    form select {
        width: 45px; 
        font-size: 12px;
    }
}
