#campoimportante {
    display: none;
}

textarea {
    height: 10rem;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

.text-justify{
    text-align: justify;
}

/* =========================
   NAVBAR
========================= */

#mainNav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(44, 62, 80, 0.65) !important;
    transition: all 0.3s ease;
    padding: 18px 0;
}

#mainNav.shrink {
    padding: 8px 0;
    background: rgba(44, 62, 80, 0.9) !important;
}

#mainNav .nav-link {
    position: relative;
    color: #fff !important;
    opacity: 0.55;
    transition: all 0.25s ease;
    transform: translateY(0);
}

#mainNav .nav-link.active {
    opacity: 1;
    transform: none;
}

#mainNav .nav-link:not(.active):hover {
    opacity: 1;
    transform: translateY(-2px);
}

#mainNav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0%;
    height: 2px;
    background: #1cc88a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

#mainNav .nav-link.active::after {
    width: 60%;
}

#mainNav .nav-link:not(.active):hover::after {
    width: 40%;
    opacity: 0.6;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.78);
    text-transform: none;
    margin-top: 2px;
}

@media (min-width: 992px) {

    #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
        background: transparent !important;
    }

    #mainNav .navbar-brand {
        font-size: 1.75em;
        transition: font-size 0.3s;
    }
}

@media (max-width: 991.98px) {

    #mainNav .navbar-collapse {
        background: transparent;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin: 15px 10px 0 10px;
        border-radius: 5px;
    }

    #mainNav .nav-link {
        padding: 12px 16px;
        margin: 4px 10px;
        border-radius: 10px;
        opacity: 0.55;
        transform: none !important;
    }

    #mainNav .nav-link:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.06);
    }

    #mainNav .nav-link.active {
        opacity: 1;
        font-weight: 600;
        background: rgba(28, 200, 138, 0.18);
        border-left: 4px solid #1cc88a;
        border-right: 4px solid #1cc88a;
        color: #fff !important;
    }

    #mainNav .nav-link::after {
        display: none;
    }
}

/* =========================
   STAR ANIMATION
========================= */

@keyframes starGlow {

    0% {
        transform: scale(1);
        text-shadow: 0 0 6px rgba(255, 209, 102, 0.30);
    }

    50% {
        transform: scale(1.22);
        text-shadow:
            0 0 18px rgba(255, 209, 102, 0.85),
            0 0 34px rgba(255, 209, 102, 0.45);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 6px rgba(255, 209, 102, 0.30);
    }
}

.animated-star {
    display: inline-block;
    animation: starGlow 1.8s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
    color: #FFCE1B;
}

/* =========================
   DASHBOARD
========================= */

.page-section {
    padding: 4.5rem;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.dashboard-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dashboard-card:hover img {
    transform: scale(1.08);
}

.dashboard-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0)
    );
}

.dashboard-title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.dashboard-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

/* =========================
   HEADER
========================= */

.hero-header {
    background-image: url('../assets/img/loyra2.png');
    background-size: auto 80vh;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   FORMULARIO CONTACTO
========================= */

#contactForm {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#contactForm .form-floating {
    margin-bottom: 1.25rem !important;
}

#contactForm .form-control {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(248, 249, 250, 0.9);
    padding-left: 1rem;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

#contactForm .form-control:focus {
    border-color: #1cc88a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 200, 138, 0.12) !important;
}

#contactForm textarea.form-control {
    border-radius: 18px;
}

#contactForm label {
    color: #6c757d;
    font-weight: 500;
    padding-left: 1rem;
}

#contactForm .btn {
    width: 100%;
    border-radius: 14px;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    background: linear-gradient(135deg, #1cc88a, #17a673);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(28, 200, 138, 0.22);
}

#contactForm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(28, 200, 138, 0.32);
}

#contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* =========================
   SOLO MOVIL
========================= */

@media (max-width: 767.98px) {

    .page-section {
        padding: 1.5rem 0rem;
    }

    .hero-header {
        background-size: auto 40vh;
        background-position: center bottom;
        min-height: 40vh;
    }

    .masthead {
        padding-top: 7rem !important;
        padding-bottom: 3rem !important;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    #mainNav {
        padding: 14px 0;
    }

    #mainNav.shrink {
        padding: 6px 0;
    }

    #contactForm {
        padding: 1.5rem;
        border-radius: 18px;
    }
}