:root{
    --primary:#7b5cff;
    --secondary:#9d5cff;
    --accent:#ec4899;
    --accent-light:#ff78b8;
    --background:#f7f5ff;
    --card:#ffffff;
    --text:#2d2d2d;
    --border:#e6e1ff;

    --shadow:
        0 8px 25px rgba(123,92,255,.10);

    --radius:20px;
}

html{
    scroll-behavior:smooth;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background:var(--background);
    color:var(--text);
    line-height:1.75;
}

/* CABECERA */

header{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary),
            var(--accent)
        );

    color:white;

    text-align:center;
    padding:50px 20px;

    border-bottom-left-radius:30px;
    border-bottom-right-radius:30px;

    box-shadow:var(--shadow);
}

.logo{
    width:100px;
    margin-bottom:15px;
}

header h1{
    font-size:2.2rem;
    margin-bottom:10px;
}

header p{
    opacity:.95;
}

.header-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:18px 0 12px;
}

.header-controls select{
    max-width:100%;
    padding:8px 34px 8px 12px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:8px;
    background:#fff;
    color:var(--text);
    font:inherit;
}

.translation-note:not([hidden]){
    max-width:760px;
    margin:12px auto 0;
}

[hidden]{
    display:none!important;
}

/* CONTENEDOR */

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
    padding:30px 0;
}

/* INDICE */

.toc{
    background:var(--card);

    border-radius:var(--radius);

    padding:25px;

    box-shadow:var(--shadow);

    margin-bottom:30px;

    border:1px solid var(--border);
}

.toc h2{
    color:var(--primary);
    margin-bottom:20px;
}

.toc ul{
    columns:2;
    list-style:none;
}

.toc li{
    margin:8px 0;
}

.toc a{
    text-decoration:none;
    color:#4b4b4b;
    transition:.25s;
}

.toc a:hover{
    color:var(--accent);
    padding-left:4px;
}

/* TARJETAS */

.section{
    background:var(--card);

    border-radius:var(--radius);

    padding:30px;

    margin-bottom:25px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    transition:.2s;
}

.section:hover{
    transform:translateY(-2px);
}

.section-header{
    display:flex;
    align-items:center;
    gap:15px;

    margin-bottom:20px;
}

.section-header img{
    width:40px;
    height:40px;
}

.section-header h2{
    color:var(--primary);
    font-size:1.4rem;
}

/* TEXTO */

p{
    margin-bottom:14px;
}

ul{
    margin-left:30px;
    margin-top:10px;
    margin-bottom:10px;
}

li{
    margin-bottom:8px;
}

/* ENLACES */

a{
    color:var(--primary);
}

a:hover{
    color:var(--accent);
}

/* CAJAS DESTACADAS */

.notice{
    background:#eef2ff;

    border-left:4px solid var(--primary);

    padding:15px;

    border-radius:10px;

    margin:15px 0;
}

.success{
    background:#ecfff0;

    border-left:4px solid #24b24a;

    padding:15px;

    border-radius:10px;

    margin:15px 0;
}

/* EMAIL */

.email{
    color:var(--primary);
    font-weight:600;
    text-decoration:none;
}

.email:hover{
    color:var(--accent);
}

/* FOOTER */

footer{
    text-align:center;

    padding:40px 20px;

    margin-top:30px;

    color:#666;
}

/* BOTON VOLVER ARRIBA */

.top-btn{
    position:fixed;

    right:25px;
    bottom:25px;

    width:55px;
    height:55px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color:white;

    border-radius:50%;

    text-decoration:none;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;

    box-shadow:var(--shadow);

    transition:.25s;
}

.top-btn:hover{
    transform:scale(1.1);
}

/* TABLAS */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
    margin-bottom:15px;
}

th,
td{
    border:1px solid #ddd;
    padding:10px;
    text-align:left;
}

th{
    background:#f2efff;
    color:var(--primary);
}

/* RESPONSIVE */

@media (max-width: 768px){

    header{
        padding:35px 15px;
    }

    header h1{
        font-size:1.7rem;
    }

    .toc ul{
        columns:1;
    }

    .section{
        padding:20px;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .section-header img{
        width:32px;
        height:32px;
    }

    .section-header h2{
        font-size:1.2rem;
    }

    .top-btn{
        width:48px;
        height:48px;
    }
}