/*
Theme Name: Twenty Twenty-Three Child
Template: twentytwentythree
Version: 1.0
*/

:root{
    --bg:#f3f3f3;
    --surface:#ffffff;
    --text:#595959;
    --heading:#444;
    --yellow:#f1c232;
    --yellow-dark:#ddb127;
    --border:#dddddd;
    --dark:#1f1c22;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

a{
    text-decoration:none;
}

.topbar {
    background:linear-gradient(180deg,#18141b 0%, #1f1c22 100%);
    min-height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.footer {
    background:linear-gradient(180deg,#18141b 0%, #1f1c22 100%);
    min-height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    width: 100%;
    margin-top: 40px;
    flex-direction: column;
    color: #fff;
}

.topbar::after{
    content:"";
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:180px;
    height:3px;
    background:#f1c232;
}

.topbar h1,
.footer h1{
    color:white;
    margin:0;
    font-size:1.4rem;
}

.lang-switcher {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-switcher a {
    background: #444;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher a img {
    width: 28px;
    height: 28px;
    display: block;
}

.lang-switcher a.active {
    background: var(--yellow);
    color: #222;
}

@media (max-width: 600px) {

    .topbar,
    .footer{
        padding: 0 12px;
        box-sizing: border-box;
    }

    .topbar h1, 
    .footer h1 {
        padding: 0 8px;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .header {
        padding: 0 90px 0 12px;
    }

    .lang-switcher {
        top: 10px;
        right: 10px;
        justify-content: center;
        gap: 5px;
    }

    .lang-switcher a {
        padding: 5px;
        border-radius: 6px;
    }

    .lang-switcher a img {
        width: 22px;
        height: 22px;
    }
}

main{
    flex:1;
}

.container{
    max-width:1100px;
    margin:auto;
    padding:40px 20px;
    flex: 1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.card h3 {
    margin: 0 0 20px;
    color: var(--heading);
    font-size: 1.6rem;
    line-height: 1.35;
    text-align: center;
    min-height: 3.5em;
}

.card p {
    flex-grow: 1;
    line-height: 1.6;
    min-height: 100px;
    text-align: justify;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 120px;
    height: auto;
}

.card a {
    margin-top: auto;
}

.clave-logo {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: .08em;
    color: #444;
}

.clave-logo span {
    color: #ef7d00;
}

.btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:56px;
    background:var(--yellow);
    color:#222;
    border-radius:10px;
    font-weight:bold;
    transition:.2s;
}

.btn:hover{
    background:var(--yellow-dark);
}

.card .btn{
    margin-top:auto;
}

.info {
    margin-top: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    text-align: center;
}

.info h3 {
    margin: 0 0 20px;
    color: var(--heading);
    font-size: 1.6rem;
    line-height: 1.35;
}

.info-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:10px;
}

.info-links a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafafa;
    color: #555;
    text-decoration: none;
}

