/* CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CURSOR PERSONALIZADO */
html {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="6" fill="%23ff00fb" stroke="%237e076e" stroke-width="2"/></svg>') 16 16, auto;
}

a,
button,
.carta-estatica,
.menu-toggle {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="10" fill="rgba(255, 0, 251, 0.3)" stroke="%23ff00fb" stroke-width="3"/></svg>') 24 24, pointer;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #b479e2;
    color: #333;
    overflow-x: hidden;
}

/* Aplicación de Quicksand a títulos y navegación */
h3,
h4,
.logo span,
.nav-menu li a,
.nombre-footer {
    font-family: 'Quicksand', sans-serif;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(90deg, #7e076e 0%, #671178 50%, #53136c 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 1.2rem;
}

.navbar .logo span {
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    color: #ff00fb;
}

#menu-check,
.menu-toggle {
    display: none;
}

/* --- SECCIÓN DE HABILIDADES --- */
.seccion-cuadricula {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.titulo-seccion {
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.contenedor-cuadricula {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: start;
}

/* --- TARJETAS --- */
.carta-estatica {
    background: white;
    border-radius: 30px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.carta-estatica::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: conic-gradient(transparent, #ff00fb, #7e076e, transparent 30%);
    animation: rotar-borde 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carta-estatica::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: white;
    border-radius: 24px;
    z-index: -1;
}

.carta-estatica:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(126, 7, 110, 0.3);
}

.carta-estatica:hover::before {
    opacity: 1;
}

.carta-estatica h4 {
    color: #333;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.carta-estatica h4 img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carta-estatica p {
    color: #555;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.carta-estatica:hover p {
    max-height: 200px;
    opacity: 1;
    padding-top: 15px;
}

/* --- FOOTER --- */
.pie-pagina {
    background: linear-gradient(90deg, #53136c 0%, #671178 50%, #7e076e 100%);
    color: #ffffff;
    padding: 25px 20px;
    margin-top: 50px;
}

.contenido-footer {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.separador {
    color: #ff00fb;
    font-weight: bold;
    opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 2px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 60%;
        background: #53136c;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #menu-check:checked~.nav-menu {
        max-height: 500px;
    }

    .nav-menu li a {
        display: block;
        padding: 15px;
        text-align: center;
    }

    .contenedor-cuadricula {
        grid-template-columns: repeat(2, 1fr);
    }

    html {
        cursor: auto;
    }
}

@media (max-width: 500px) {
    .contenedor-cuadricula {
        grid-template-columns: 1fr;
    }
}

@keyframes rotar-borde {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}