* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(0, 255, 136, 0.3));
    transition: all 0.3s ease;
}

nav a img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 255, 136, 0.5));
}

.mobile-header {
    display: block;
}

#toggleMenu {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

#toggleMenu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.links.show {
    left: 0;
}

.links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    transition: left 0.4s ease;
    list-style: none;
}

.links li {
    margin: 1rem 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease forwards;
}

.links a {
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.links a:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(10px);
    color: #00ff88;
}

.links li:nth-child(1) {
    animation-delay: 0.1s;
}

.links li:nth-child(2) {
    animation-delay: 0.2s;
}

.links li:nth-child(3) {
    animation-delay: 0.3s;
}

.links li:nth-child(4) {
    animation-delay: 0.4s;
}

.links li:nth-child(5) {
    animation-delay: 0.5s;
}

.links li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

section {
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inicio {
    background: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 204, 255, 0.1) 0%, transparent) 50%;
    opacity: 0.8;
}

.contenido-inicio {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
}

.logo-flotante img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 4px 15px rgba(0, 255, 136, 0.4));
}

.logo-flotante {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 255, 0.2));
    padding: 5px;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;

}

.logo-flotante::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00ccff, #00ff88);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);

    }

    50% {
        transform: translateY(-10px) scale(1.05);

    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }

}

.contenido-inicio h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contenido-inicio p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 30px 60px rgba(0, 255, 136, 0.2);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    position: relative;
}

.card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5)
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-bottom: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-eliminar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff4757, #ff6b7d);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 30px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-eliminar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.resultado {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.resultado.show {
    opacity: 1;
    transform: translateY(0);
}

.resultado h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 1rem;

}

.resultado h4{
    color: white;
}

.resultado p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.resultado strong {
    color: #00ccff;
}

.resultado hr {
    margin: 1.5rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
}

.periodo-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.periodo-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}


.periodo-item h3{
    color: #00ccff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

#periodosContainer {
    margin-bottom: 2rem;
}

footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    width: 100%;
    position: relative;
    overflow: hidden;

}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
}

@media screen and (min-width: 768px) {
    .mobile-header {
        display: none;
    }

    .links {
        flex-direction: row;
        position: static;
        height: auto;
        background: transparent;
        padding: 0;
        width: auto;
        left: 0;
        top: auto;
    }

    .links li {
        margin: 0 0.5rem;
        opacity: 1;
        transform: translateX(0);
        animation: none;
    }

    .links a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .contenido-inicio h2 {
        font-size: 3.5rem;
    }

    .contenido-inicio p {
        font-size: 1.3rem;
    }

    .logo-flotante{
        width: 140px;
        height: 140px;
    }

    .card {
        max-width: 600px;
        padding: 3rem;
    }

    .btn {
        width: auto;
        min-width: 200px;
        margin: 0.5rem auto;
    }

    section {
        padding: 8rem 2rem 3rem;
    }

    footer {
        padding: 2rem;
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    nav {
        padding: 0 2rem;
    }

    .links a {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .contenido-inicio {
        max-width: 800px;
    }

    .contenido-inicio h2 {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .contenido-inicio p {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .contenido-inicio::before {
        width: 160px;
        height: 160px;
    }

    .card {
        max-width: 700px;
        padding: 4rem;
    }

    .card:hover {
        transform: translateY(-15px) scale(1.02);
    }

    section {
        padding: 6rem 3rem;
    }

    .form-group {
        margin-bottom: 2rem;
    }

    .form-group input {
        padding: 1.2rem;
        font-size: 1.1rem;
    }

    .btn {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
        margin: 0.5rem auto;
    }

    .btn:hover {
        transform: translateY(-4px) scale(1.05);
    }

    #servicio .btn {
        display: inline-flex;
        width: auto;
        margin: 0.5rem;
    }

    footer {
        padding: 3rem 2rem;
        font-size: 1.1rem;
    }
}