*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:linear-gradient(135deg,#f4f2f7,#e9d8fd);
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

header{
    background:rgba(106,13,173,0.9);
    backdrop-filter:blur(10px);
    padding:20px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

header h1{
    color:white;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    font-weight:bold;
    position:relative;
}

nav a::after{
    content:"";
    position:absolute;
    width:0;
    height:2px;
    left:0;
    bottom:-5px;
    background:white;
    transition:0.3s;
}

nav a:hover::after{
    width:100%;
}

main{
    flex:1;
}

.container{
    padding:80px 20px;
    text-align:center;
    animation:fadeIn 1s ease;
}

.morado{
    background:rgba(106,13,173,0.9);
    color:white;
    border-radius:20px;
    margin:40px;
    padding:50px;
}

.card-container{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
    margin-top:40px;
}

.card{
    background:white;
    padding:35px;
    border-radius:20px;
    width:250px;
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
    transition:0.4s;
    color:#6a0dad;
}

.card:hover{
    transform:translateY(-10px);
}

/* FORM */
form{
    max-width:450px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:18px;
}

input, select, textarea{
    padding:14px;
    border-radius:12px;
    border:none;
    outline:none;
}

textarea{
    resize:none;
    height:120px;
}

button{
    padding:14px;
    background:white;
    color:#6a0dad;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
}

button:hover{
    background:#e0c3fc;
}

/* FOOTER */
footer{
    background:#4b0082;
    color:white;
    padding:50px 20px 20px 20px;
}

.footer-container{
    max-width:1100px;
    margin:auto;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:30px;
    margin-bottom:20px;
}

.footer-section h3{
    margin-bottom:15px;
}

.footer-section a{
    color:#ddd;
    text-decoration:none;
    display:block;
    margin-bottom:8px;
}

.footer-section a:hover{
    color:white;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,0.2);
    padding-top:15px;
    font-size:14px;
}

/* WHATSAPP */
.whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    padding:15px;
    border-radius:50%;
    font-size:22px;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
    z-index:1000;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(20px);}
    to{opacity:1; transform:translateY(0);}
}

/* TABLA ADMIN */
table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:10px;
    overflow:hidden;
}

th,td{
    padding:12px;
    text-align:center;
}

th{
    background:#6a0dad;
    color:white;
}

tr:nth-child(even){
    background:#f4f2f7;
}
/* BOTON ADMIN */
.admin-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(106, 13, 173, 0.6);
    background: linear-gradient(135deg, #4b0082, #6a0dad);
}

/* =========================
   MEDIA QUERIES (RESPONSIVE)
========================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
        gap: 15px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav a {
        margin-left: 0;
        margin: 5px 10px;
    }
    .container {
        padding: 40px 15px;
    }
    .card {
        width: 100%;
        max-width: 320px;
    }
    .morado {
        margin: 20px 10px;
        padding: 30px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

