/* NAVBAR CON POSICIÓN STICKY */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    background: linear-gradient(90deg, #4a90a4 0%, #357a8a 100%);
    color: white;
    transition: box-shadow 0.3s ease;
}
.navbar, .header-section, .hero-section{
    min-width: 335px;
}
.navbar.has-shadow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-content {
    max-width: 1398px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 0 2rem;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1001;
}
.pg_link_invalid .nav-right{
    display: none;
}
.nav-left{
    flex: 1;
}
.nav-right {
    opacity: 1;
    transition: all 0.3s ease;
}
.nav-right.visible {
    opacity: 1;
}
.header-content .nav-right{
    flex-direction: column;
    gap: 0.8rem;
    opacity: 1;
}

.navbar-logo {
    display: flex;
    gap: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.pg_home .navbar-logo {
    opacity: 0;
}

.navbar-logo.visible {
    opacity: 1;
    /*transform: translateY(0);*/
    pointer-events: auto;
}
.navbar-logo-quill {
    background: transparent url(/static/img/brand/logo_idazery_main.png) no-repeat;
    background-size: 23px 40px;
    width: 23px;
    height: 40px;
    margin-right: 0.5rem;
    position: relative;
    top: -3px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}
.navbar-logo-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.1rem;
    height: 40px;
    background: linear-gradient(to bottom, #fff, #caffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    top: 4px;
    position: relative;
}
.navbar-logo:hover .navbar-logo-text {
    background: linear-gradient(to bottom, #fff, #e0ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(202, 255, 255, 0.4));
}
.navbar-logo-quill {
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1));
}
.navbar-logo:hover .navbar-logo-quill {
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3));
}
.navbar-logo:focus-visible {
    outline: 2px solid #caffff;
    outline-offset: 4px;
    border-radius: 4px;
}

.icon {
    display: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 7px;
    border-radius: 9px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 35px;
    transition: all 0.3s ease;
}
.icon:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* SVG icon inside sign-up: hidden by default, shown in icon mode */
.su-icon {
    display: none;
}

/* Tooltip: gestionado por tooltip.js (#globalTooltip) via data-tooltip */

.sign-up, .sign-in {
    font-size: 0.85rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    width: 110px;
}
a:focus {
    outline: none;
}
.sign-up:focus, .sign-in:focus{
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.4);
}
.lg-es .sign-up{
    width: 115px;
}
.sign-in {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease;
}

.sign-in:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.pg_signin .sign-up,
.pg_pricing .nav-right .icon,
.pg_pricing .sign-in,
.pg_pricing .sign-up {
    display: none;
}
.sign-up {
  background: transparent;
  border: 2px solid #4caf50;  /* Verde outline */
  color: white;  /* Texto blanco sobre fondo azul */
  padding: 0.4rem 1rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.sign-up:hover {
  background: #4caf50;
  border-color: #4caf50;
  /*transform: translateY(-1px);*/
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

/* ==============================================
   USER DROPDOWN
   Estilos extraídos a: user-dropdown.css
   (archivo compartido entre navbar y idays header)
============================================== */

/* cta today */
.cta-today-only-icon,
.cta-today {
    background: transparent;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}
.cta-today-only-icon {
    display: none;
    height: 35px;
}

.cta-today-only-icon:hover,
.cta-today:hover {
    background: white;
    color: #4a9fb8;
    border-color: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

.cta-today-only-icon:focus,
.cta-today:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 159, 184, 0.4);
}

.cta-today-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.cta-today-text {
    display: inline;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 810px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #8895a7;
}
.pg_about .breadcrumb {
    max-width: 1100px;
}
.breadcrumb a {
    color: #4a9fb8;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #3d8ca8;
}

@media (max-width: 768px) {
    .navbar-content{
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nav-left, .nav-right{
        gap: 0.5rem;
    }
}
@media (max-width: 555px) {
    .navbar-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .pg_forgot_password .navbar-content,
    .pg_pricing .navbar-content,
    .pg_signup_paid_plan_pro .navbar-content,
    .pg_signup_paid_plan_premium .navbar-content,
    .pg_signin .navbar-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

}
@media (max-width: 500px) {
    .navbar-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .nav-right .cta-today {
        display: none;
    }
    .nav-right .cta-today-only-icon,
    .nav-right .icon {
        display: block;
    }
    .pg_signup_paid_plan_pro .nav-right .icon,
    .pg_signup_paid_plan_premium .nav-right .icon,
    .pg_signin .nav-right .icon,
    .pg_forgot_password .nav-right .icon,
    .pg_signin_link .nav-right .icon,
    .nav-right .sign-in {
        display: none;
    }
    .cta-today-text {
        display: none;
    }

    .cta-today-only-icon {
        padding: 0.4rem;
        min-width: auto;
    }

    .cta-today-icon {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 480px) {
    .breadcrumb {
        padding: 0 1rem;
    }
}
@media (max-width: 450px) {
    .navbar-logo-quill {
        margin-right: 0.3rem;
    }
}
@media (max-width: 425px) {
    /* Sign-up button → icon mode (same dimensions as sign-in .icon) */
    .sign-up {
        padding: 5px 7px;
        border: 2px solid #4caf50;
        border-radius: 9px;
        height: 35px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lg-es .sign-up {
        width: auto;
    }
    .sign-up:hover {
        background: rgba(76, 175, 80, 0.2);
        border-color: rgba(76, 175, 80, 0.65);
        box-shadow: none;
    }
    .su-text {
        display: none;
    }
    .su-icon {
        display: block;
    }
}
