* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: #333;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background: radial-gradient(circle, #57adb4 0%, #155bbc 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Nav */
nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Intro Section */
.intro-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro-section h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.intro-section p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Efectos Section */
.efectos-section h2 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.efectos-section {
    padding: 20px;
}

/* Tabla de Efectos */
.tabla-efectos {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 4px solid #bb5fa1;
}

.tabla-efectos thead {
    background: #ed94d4;
    color: white;
    font-weight: 600;
}

.tabla-efectos th {
    padding: 1.2rem 0.8rem;
    text-align: left;
    font-size: 1rem;
    border-bottom: 2px solid #bb5fa1;
}

.tabla-efectos th.col-numero {
    width: 60px;
    text-align: center;
}

.tabla-efectos th.col-descripcion {
    width: 30%;
}

.tabla-efectos th.col-codigo {
    width: 45%;
}

.tabla-efectos th.col-funcion {
    width: 15%;
    text-align: center;
}

.tabla-efectos tbody tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.tabla-efectos tbody tr:hover {
    background: #f9f9f9;
}

.tabla-efectos tbody tr:last-child {
    border-bottom: none;
}

.tabla-efectos td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

.tabla-efectos .numero {
    font-weight: 700;
    font-size: 1.3rem;
    color: #4d218a;
    text-align: center;
}

.tabla-efectos .descripcion {
    color: #555;
    font-size: 0.95rem;
}

.tabla-efectos .codigo {
    background: #f5f5f5;
    padding: 0.8rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #333;
    border-left: 3px solid #bb5fa1;
}

.tabla-efectos .codigo code {
    background: #282c34;
    padding: 0.8rem;
    color: #abb2bf;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
    display: block;
}

.tabla-efectos .probar {
    text-align: center;
}

.btn-probar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-probar:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-probar:active {
    transform: translateY(0);
}

.demo-row td {
    padding: 0 1.2rem !important;
}

.demo-elemento {
    text-align: center;
    margin: 1rem 0;
}

.clase-activa {
    background-color: #ff6b6b !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}


/* Footer */
footer {
    background: radial-gradient(circle, #57adb4 0%, #155bbc 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    font-size: 0.95rem;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    main {
        padding: 0 1rem;
    }

    .tabla-efectos {
        width: calc(100% - 1rem);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }

    .tabla-efectos th {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .tabla-efectos td {
        padding: 0.75rem 0.5rem;
    }

    .tabla-efectos th.col-numero {
        width: 45px;
    }

    .tabla-efectos th.col-descripcion {
        width: 25%;
    }

    .tabla-efectos th.col-codigo {
        width: 40%;
    }

    .tabla-efectos th.col-funcion {
        width: 18%;
    }

    .tabla-efectos .codigo code {
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    .tabla-efectos .descripcion {
        font-size: 0.85rem;
    }

    .btn-probar {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .demo-elemento {
        padding: 10px !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    main {
        padding: 0 0.5rem;
    }

    .tabla-efectos {
        width: calc(100% - 0.5rem);
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        border-radius: 4px;
    }

    .tabla-efectos thead {
        display: none;
    }

    .tabla-efectos tbody, .tabla-efectos tr, .tabla-efectos td {
        display: block;
        width: 100%;
    }

    .tabla-efectos tbody tr {
        margin-bottom: 1.5rem;
        border: 1px solid #bb5fa1;
        border-radius: 6px;
        overflow: hidden;
    }

    .tabla-efectos tbody tr.demo-row {
        margin-bottom: 0;
        border: none;
    }

    .tabla-efectos td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid #bb5fa1;
    }

    .tabla-efectos .numero {
        background: #e0f2fe;
        font-weight: 700;
        padding: 0.5rem;
        border-radius: 4px;
        text-align: center;
    }

    .tabla-efectos .codigo {
        padding: 0.5rem 0;
        border-left: none;
    }

    .tabla-efectos .codigo code {
        background: #282c34;
        color: #abb2bf;
        border-radius: 4px;
        overflow-x: auto;
        display: block;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .btn-probar {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .demo-row td {
        padding: 1rem 0.5rem !important;
    }

    .demo-elemento {
        padding: 1rem !important;
        margin: 0 !important;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1rem;
    }

    .efecto-header {
        flex-wrap: wrap;
    }

    .efecto-header h3 {
        flex: 1 0 100%;
        margin-bottom: 0.5rem;
    }

    .numero-efecto {
        font-size: 1.2rem;
    }

    .efecto-content {
        padding: 1.5rem;
    }

    main {
        padding: 0 1rem;
    }

}