/* Estilos generales */
:root {
    --primary-color: #016db0;
    --primary-light: #4a9bd6;
    --primary-dark: #015a94;
    --text-color: #333333;
    --text-light: #666666;
    --text-secondary: #777777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --navbar-height: 72px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-white);
    padding: 15px 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1200;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 40px;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    padding:10px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-main-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(1, 109, 176, 0.15);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-link.btn {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(1, 109, 176, 0.2);
}

.nav-link.btn:hover {
    background: linear-gradient(90deg, var(--primary-dark), #01497a);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(1, 109, 176, 0.3);
}

.nav-action-link,
.nav-action-button {
    border-radius: 999px;
    font-weight: 600;
    padding: 8px 20px;
    min-width: 150px;
    text-align: center;
}

.nav-action-link {
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
    background-color: transparent;
}

.nav-action-link:hover {
    background-color: rgba(1, 109, 176, 0.08);
    color: var(--primary-dark);
}

.nav-action-button {
    background: linear-gradient(90deg, #ffb347, #ff7b00);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.25);
}

.nav-action-button:hover {
    background: linear-gradient(90deg, #ff7b00, #ffb347);
    transform: translateY(-2px);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1301;
    transition: var(--transition);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Sección principal */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    min-height: calc(100vh - 280px);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    flex: 1;
}

/* Mensaje de éxito */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 4s forwards;
    pointer-events: none;
    max-width: 400px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message::before {
    content: "✓";
    font-size: 1.2rem;
}

/* Efectos y animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        pointer-events: none;
        z-index: -1;
    }
}

/* Decoraciones */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(1, 109, 176, 0.05);
    z-index: -1;
    border: 1px solid rgba(1, 109, 176, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsible circles - mobile */
@media (max-width: 768px) {
    .circle-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
        right: 0px;
    }
}

/* Footer */
footer {
    background-color: var(--bg-white);
    color: var(--text-secondary);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.credits {
    font-size: 0.85rem;
    color: var(--text-light);
}

.credits a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.credits a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --navbar-height: 110px;
    }

    .navbar {
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1300;
        overflow-y: auto;
    }

    .nav-main-links,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-actions {
        padding-left: 0;
        border-left: none;
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(1, 109, 176, 0.1);
    }

    .nav-action-link,
    .nav-action-button {
        width: 80%;
        min-width: 0;
        align-self: center;
    }

    .nav-links.active {
        right: 0;
    }

    .success-message {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        animation: slideInMobile 0.5s ease-out, fadeOut 0.5s ease-in 4s forwards;
        pointer-events: none;
    }

    @keyframes slideInMobile {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
            pointer-events: none;
            z-index: -1;
        }
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 140px;
    }

    .main {
        justify-content: top !important;
    }
    
    .nav-links {
        width: 85%;
        max-width: 300px;
    }

    .nav-actions {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(1, 109, 176, 0.08);
    }

    .nav-action-link,
    .nav-action-button {
        min-width: auto;
        width: 80%;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 35px;
    }
}