/*==========================================================
    CONEXIÓN A.L.M
    TERMINOS.CSS
==========================================================*/

/*==============================
    VARIABLES
==============================*/

:root{

    --primary:#7A1F5C;

    --secondary:#9A3E78;

    --beige:#F4E8D5;

    --white:#FFFFFF;

    --text:#1D1D1D;

    --background:#F5F5F5;

    --shadow:0 12px 35px rgba(0,0,0,.08);

    --radius:20px;

}

/*==============================
    RESET
==============================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.8;

}

/*==============================
    HEADER
==============================*/

.header{

    width:100%;

    background:var(--white);

    box-shadow:0 2px 15px rgba(0,0,0,.05);

    padding:18px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

    position:sticky;

    top:0;

    z-index:100;

}

.logo-section{

    display:flex;

    align-items:center;

    gap:18px;

}

.logo{

    width:70px;

    height:70px;

    object-fit:contain;

}

.logo-section h1{

    color:var(--primary);

    font-size:1.5rem;

    font-weight:700;

}

.logo-section p{

    color:#666;

    font-size:.95rem;

}

.back-button{

    text-decoration:none;

    background:var(--primary);

    color:white;

    padding:12px 24px;

    border-radius:12px;

    transition:.3s;

    font-weight:600;

}

.back-button:hover{

    background:var(--secondary);

    transform:translateY(-2px);

}

/*==============================
    CONTENEDOR
==============================*/

.container{

    width:min(1200px,92%);

    margin:50px auto;

}

/*==============================
    HERO
==============================*/

.hero{

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:white;

    border-radius:28px;

    padding:55px;

    margin-bottom:45px;

    box-shadow:var(--shadow);

}

.badge{

    display:inline-block;

    background:rgba(255,255,255,.18);

    padding:8px 16px;

    border-radius:30px;

    margin-bottom:20px;

    font-size:.9rem;

}

.hero h2{

    font-size:2.8rem;

    margin-bottom:20px;

}

.hero-text{

    max-width:760px;

    opacity:.95;

    margin-bottom:25px;

}

.update-box{

    display:inline-block;

    background:rgba(255,255,255,.15);

    padding:12px 20px;

    border-radius:12px;

    font-weight:500;

}

/*==============================
    ÍNDICE
==============================*/

.index-card{

    background:var(--white);

    border-radius:var(--radius);

    padding:35px;

    margin-bottom:45px;

    box-shadow:var(--shadow);

}

.index-card h3{

    color:var(--primary);

    margin-bottom:20px;

    font-size:1.5rem;

}

.index-card ul{

    list-style:none;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:15px;

}

.index-card a{

    text-decoration:none;

    color:var(--text);

    transition:.25s;

    font-weight:500;

}

.index-card a:hover{

    color:var(--primary);

    padding-left:8px;

}
/*==========================================================
    CONTENIDO
==========================================================*/

.content{

    display:flex;

    flex-direction:column;

    gap:35px;

}

.card{

    background:var(--white);

    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--shadow);

    transition:.3s;

    scroll-margin-top:120px;

}

.card:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);

}

.card h2{

    color:var(--primary);

    font-size:1.8rem;

    margin-bottom:20px;

    position:relative;

}

.card h2::after{

    content:"";

    display:block;

    width:70px;

    height:4px;

    background:var(--secondary);

    border-radius:50px;

    margin-top:10px;

}

.card p{

    margin-bottom:18px;

    text-align:justify;

    color:#444;

}

.list{

    margin:20px 0 20px 25px;

}

.list li{

    margin-bottom:10px;

    color:#333;

}

/*==========================================================
    TABLA HISTORIAL
==========================================================*/

.history-table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

    overflow:hidden;

    border-radius:15px;

}

.history-table thead{

    background:var(--primary);

    color:white;

}

.history-table th{

    padding:16px;

    text-align:left;

}

.history-table td{

    padding:16px;

    border-bottom:1px solid #ececec;

}

.history-table tbody tr:nth-child(even){

    background:#fafafa;

}

.history-table tbody tr:hover{

    background:#f3e4ed;

}

/*==========================================================
    FOOTER
==========================================================*/

.footer{

    margin-top:60px;

    background:var(--primary);

    color:white;

    text-align:center;

    padding:35px 20px;

}

.footer p:first-child{

    font-weight:600;

    margin-bottom:10px;

}

.footer p:last-child{

    opacity:.85;

    max-width:900px;

    margin:auto;

}

/*==========================================================
    SCROLLBAR
==========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--secondary);

    border-radius:30px;

}

::-webkit-scrollbar-track{

    background:#ececec;

}

/*==========================================================
    RESPONSIVE
==========================================================*/

@media(max-width:992px){

    .header{

        flex-direction:column;

        text-align:center;

    }

    .logo-section{

        flex-direction:column;

    }

    .hero{

        padding:40px;

    }

    .hero h2{

        font-size:2.2rem;

    }

    .index-card ul{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .container{

        width:95%;

    }

    .hero{

        padding:30px;

    }

    .hero h2{

        font-size:2rem;

    }

    .card{

        padding:28px;

    }

    .card h2{

        font-size:1.5rem;

    }

    .history-table{

        display:block;

        overflow-x:auto;

    }

}

@media(max-width:480px){

    .logo{

        width:55px;

        height:55px;

    }

    .logo-section h1{

        font-size:1.2rem;

    }

    .hero{

        border-radius:20px;

    }

    .hero h2{

        font-size:1.7rem;

    }

    .back-button{

        width:100%;

        text-align:center;

    }

    .card{

        padding:22px;

    }

}