html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    transition: background-color 0.3s ease;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 3rem;
    background: linear-gradient(to right, hsl(210, 100%, 73%), #2532af);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background-color: #4a148c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    width: 70px;
    transition: width 0.3s ease-in-out;
}

.navbar .logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    transition: font-size 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    position: relative;
    padding: 8px 12px;
    transition: color 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    border-radius: 20px;
}

.nav-links li a:hover {
    color: #b2ebf2;
    border-color: #b2ebf2;
}

/* FORMULARIO */
.container {
    max-width: 600px;
    margin: 9rem auto;
    padding: 30px;
    background: linear-gradient(to right, #ffffff, #d1f3fb);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

h2 {
    text-align: center;
    color: #2532af;
    font-size: 2rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out;
}

label {
    font-weight: bold;
    color: #333;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="file"] {
    width: 97%;
    padding: 12px;
    margin-top: 5px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus {
    border-color: #4a148c;
    box-shadow: 0 0 5px rgba(74, 20, 140, 0.5);
}

button {
    width: 100%;
    padding: 15px;
    background-color: #4a148c;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: pulse 1.5s infinite ease-in-out;
}

button:hover {
    background-color: #6a1b9a;
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
}

.form-group:hover input {
    transform: translateX(5px);
}

.eliminar-btn {
    background-color: #e57373;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    display: none;
}

.eliminar-btn:hover {
    background-color: #f44336;
}

select {
    width: 97%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    border-color: #4a148c;
    box-shadow: 0 0 5px rgba(74, 20, 140, 0.5);
}

select:hover {
    border-color: #2532af;
    transform: scale(1.02);
}

select option {
    color: #333;
}

select option:checked {
    background-color: #4a148c;
    color: white;
}

select option:hover {
    background-color: #2532af;
    color: white;
}

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


/* FOOTER */
footer {
    background: linear-gradient(to right, hsl(210, 100%, 73%), #2532af);
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-family: 'Arial', sans-serif;
}

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

.footer-text p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.footer-text a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #f0e5ff;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-icon {
    margin: 0 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #f0e5ff;
    transform: scale(1.1);
}

.social-icon.instagram {
    background-color: #E4405F;
}
.social-icon.facebook {
    background-color: #3b5998;
}
.social-icon.tiktok {
    background-color: #26ae00;
}

.footer-credits {
    margin-top: 2rem;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid white;
}

.credit-link {
    color: #f0e5ff;
    text-decoration: none;
}
.credit-link:hover {
    color: white;
}

/* Imagen fija */
.fixed-image {
    position: fixed;
    top: 35%;
    right: 80px;
    transform: translateY(-50%);
    z-index: -10;
}
.fixed-image img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
    }

    .navbar .logo {
        margin-bottom: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .nav-links li a {
        width: 100%;
        display: block;
        font-size: 1rem;
        padding: 10px;
    }

    .container {
        width: 90%;
        margin-top: 10rem;
        padding: 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="file"],
    select {
        width: 100%;
    }

    button {
        font-size: 1rem;
    }

    .fixed-image {
        display: none;
    }

    footer {
        padding: 1rem 0.5rem;
    }

    .social-icon {
        margin: 0.5rem 0.3rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}


