@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root{
    --ink:#15243a;
    --muted:#586679;
    --blue:#163c67;
    --gold:#ad8331;
    --line:#dce3ea;
    --paper:#f7f9fb;
    --white:#fff;
    font-family:'DM Sans',Arial,sans-serif;
    color:var(--ink);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--paper);
    font-size:16px;
    line-height:1.6;
}

a{
    color:inherit;
}

a:focus-visible,
button:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:3px;
}

.skip-link{
    position:absolute;
    top:-100px;
    left:12px;
    z-index:10000;
    background:white;
    padding:10px;
}

.skip-link:focus{
    top:12px;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header{
    background:white;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:100;
}

.header-inner,
.shell,
.footer-inner{
    max-width:1180px;
    margin:auto;
    padding-left:24px;
    padding-right:24px;
}

.header-inner{
    min-height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

/*
|--------------------------------------------------------------------------
| MARCA
|--------------------------------------------------------------------------
|
| Estructura:
|
| [ LOGO ] [ DIÁLOGO CRISTIANO ]
| [           ESLOGAN          ]
|
|--------------------------------------------------------------------------
*/

.brand,
.dc-public-brand{
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    flex-shrink:0;
    min-width:0;
    color:var(--ink);
}

/*
|--------------------------------------------------------------------------
| PRIMERA FILA: LOGO + TÍTULO
|--------------------------------------------------------------------------
*/

.dc-brand-main{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:12px;
    width:100%;
    min-width:0;
}

/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.brand img,
.dc-brand-logo{
    display:block;
    visibility:visible;
    opacity:1;
    height:50px;
    width:auto;
    max-width:150px;
    object-fit:contain;
    object-position:left;
    flex:0 0 auto;
    margin:0;
}

/*
|--------------------------------------------------------------------------
| TÍTULO
|--------------------------------------------------------------------------
*/

.dc-brand-title{
    display:block;
    margin:0;
    padding:0;
    color:var(--ink);
    font-family:'Libre Baskerville',Georgia,serif;
    font-size:22px;
    font-weight:700;
    line-height:1.1;
    white-space:nowrap;
}

/*
|--------------------------------------------------------------------------
| ESLOGAN
|--------------------------------------------------------------------------
*/

.dc-brand-slogan{
    display:block;
    width:100%;
    margin-top:4px;
    padding:0;
    color:var(--muted);
    font-family:'DM Sans',Arial,sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:1.3;
    letter-spacing:.025em;
    white-space:nowrap;
}

/*
|--------------------------------------------------------------------------
| COMPATIBILIDAD CON ESTRUCTURA ANTERIOR
|--------------------------------------------------------------------------
*/

.brand span{
    color:var(--muted);
    font-size:12px;
    letter-spacing:.045em;
}

/*
|--------------------------------------------------------------------------
| NAVEGACIÓN
|--------------------------------------------------------------------------
*/

.site-nav{
    display:flex;
    gap:22px;
    align-items:center;
}

.site-nav a{
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    white-space:nowrap;
}

.site-nav a:hover{
    color:var(--gold);
}

.site-nav .account{
    border:1px solid var(--blue);
    color:var(--blue);
    border-radius:4px;
    padding:8px 12px;
}

.menu-button{
    display:none;
}

/*
|--------------------------------------------------------------------------
| MASTHEAD
|--------------------------------------------------------------------------
*/

.masthead{
    background:var(--blue);
    color:white;
    padding:65px 0 72px;
}

.eyebrow{
    text-transform:uppercase;
    letter-spacing:.15em;
    font-weight:700;
    font-size:12px;
    color:var(--gold);
}

.masthead .eyebrow{
    color:#e7c584;
}

.masthead h1,
.page-heading h1,
.article h1{
    font-family:'Libre Baskerville',Georgia,serif;
    letter-spacing:-.03em;
    line-height:1.22;
}

.masthead h1{
    max-width:850px;
    font-size:clamp(38px,5vw,64px);
    margin:14px 0 20px;
}

.masthead p{
    max-width:620px;
    font-size:19px;
    color:#dfe8f1;
}

.button{
    display:inline-block;
    background:var(--gold);
    color:#10243e;
    text-decoration:none;
    font-weight:700;
    padding:12px 18px;
    border-radius:4px;
}

.masthead .button{
    margin-top:12px;
}

/*
|--------------------------------------------------------------------------
| SECCIONES
|--------------------------------------------------------------------------
*/

.section{
    padding-top:52px;
    padding-bottom:52px;
}

.section-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    border-bottom:1px solid var(--line);
    padding-bottom:15px;
    margin-bottom:22px;
}

.section-heading h2,
.page-heading h1{
    margin:0;
    font-family:'Libre Baskerville',Georgia,serif;
}

.section-heading a{
    color:var(--blue);
    font-weight:700;
}

/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.card{
    background:white;
    border:1px solid var(--line);
    overflow:hidden;
}

.card img{
    width:100%;
    height:195px;
    object-fit:cover;
    display:block;
}

.card-body{
    padding:24px;
}

.card h3{
    font:700 22px/1.35 'Libre Baskerville',Georgia,serif;
    margin:8px 0 12px;
}

.card h3 a{
    text-decoration:none;
}

.card h3 a:hover{
    text-decoration:underline;
}

.card p{
    color:var(--muted);
    margin:0 0 18px;
}

.meta{
    font-size:13px;
    color:var(--muted);
}

.empty{
    background:white;
    border:1px solid var(--line);
    padding:32px;
}

.empty p{
    margin-bottom:0;
    color:var(--muted);
}

/*
|--------------------------------------------------------------------------
| FEATURES
|--------------------------------------------------------------------------
*/

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.feature-grid a{
    padding:28px;
    background:#e9eff5;
    text-decoration:none;
    border-top:4px solid var(--gold);
}

.feature-grid strong{
    font:700 22px 'Libre Baskerville',Georgia,serif;
}

.feature-grid p{
    color:var(--muted);
    margin-bottom:0;
}

/*
|--------------------------------------------------------------------------
| DIRECTORIO
|--------------------------------------------------------------------------
*/

.directory-callout{
    background:#e9eff5;
    padding:38px;
    margin-top:40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.directory-callout h2{
    font-family:'Libre Baskerville',Georgia,serif;
    margin:0 0 10px;
}

.directory-callout p{
    margin:0;
    color:var(--muted);
}

/*
|--------------------------------------------------------------------------
| PÁGINAS
|--------------------------------------------------------------------------
*/

.page-heading{
    padding:54px 0 28px;
}

.page-heading h1{
    font-size:clamp(32px,4vw,46px);
    margin:10px 0;
}

.tabs{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:28px;
}

.tabs a{
    text-decoration:none;
    padding:8px 13px;
    border:1px solid var(--line);
    background:white;
}

.tabs a.current{
    background:var(--blue);
    color:white;
}

/*
|--------------------------------------------------------------------------
| ARTÍCULOS
|--------------------------------------------------------------------------
*/

.article{
    max-width:790px;
    margin:auto;
    padding:54px 24px 80px;
    background:white;
}

.article h1{
    font-size:clamp(34px,5vw,54px);
    margin:12px 0 20px;
}

.article .lead{
    font-size:20px;
    color:var(--muted);
}

.article>img{
    width:100%;
    height:auto;
    margin:20px 0;
}

.article-content{
    font:18px/1.85 Georgia,serif;
    overflow-wrap:anywhere;
}

.article-content h2,
.article-content h3{
    font-family:'Libre Baskerville',Georgia,serif;
    line-height:1.35;
}

.article-content img{
    max-width:100%;
    height:auto;
}

.article-content a{
    color:var(--blue);
}

/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer{
    background:#10243e;
    color:white;
    margin-top:55px;
}

.footer-inner{
    padding-top:40px;
    padding-bottom:40px;
    display:flex;
    align-items:start;
    justify-content:space-between;
    gap:25px;
}

.footer-inner p{
    color:#c8d5e4;
}

.footer-inner nav{
    display:flex;
    gap:18px;
}

.footer-inner nav a{
    text-decoration:none;
}

.footer-inner small{
    color:#c8d5e4;
}

/*
|--------------------------------------------------------------------------
| TABLET / MENÚ RESPONSIVE
|--------------------------------------------------------------------------
*/

@media(max-width:980px){

    .header-inner{
        position:relative;
        gap:12px;
    }

    /*
    | Marca ocupa solamente el espacio disponible.
    | El botón conserva su espacio a la derecha.
    */

    .dc-public-brand{
        flex:1 1 auto;
        min-width:0;
    }

    .dc-brand-main{
        gap:9px;
    }

    .brand img,
    .dc-brand-logo{
        display:block;
        visibility:visible;
        opacity:1;
        height:42px;
        width:auto;
        max-width:120px;
    }

    .dc-brand-title{
        font-size:19px;
    }

    .dc-brand-slogan{
        font-size:11px;
    }

    /*
    | Botón menú
    */

    .menu-button{
        display:block;
        flex:0 0 auto;
        position:static;
        margin:0;
        background:var(--blue);
        color:white;
        border:0;
        padding:10px 14px;
        font:inherit;
        font-weight:700;
        border-radius:4px;
        white-space:nowrap;
    }

    /*
    | Navegación desplegable
    */

    .site-nav{
        display:none;
        position:absolute;
        top:90px;
        left:0;
        right:0;
        background:white;
        padding:20px 24px;
        border-bottom:1px solid var(--line);
        flex-direction:column;
        align-items:stretch;
    }

    .site-nav.open{
        display:flex;
    }

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

/*
|--------------------------------------------------------------------------
| CELULAR
|--------------------------------------------------------------------------
*/

@media(max-width:640px){

    .header-inner,
    .shell,
    .footer-inner{
        padding-left:18px;
        padding-right:18px;
    }

    /*
    |--------------------------------------------------------------------------
    | HEADER MÓVIL
    |--------------------------------------------------------------------------
    */

    .header-inner{
        min-height:78px;
        width:100%;
        max-width:100%;

        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        flex-wrap:nowrap;

        gap:8px;
    }

    /*
    |--------------------------------------------------------------------------
    | MARCA
    |--------------------------------------------------------------------------
    */

    .brand,
    .dc-public-brand{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;

        flex:1 1 auto;

        width:auto;
        min-width:0;
        max-width:none;

        margin:0;
        overflow:visible;
    }

    /*
    |--------------------------------------------------------------------------
    | LOGO + TÍTULO
    |--------------------------------------------------------------------------
    */

    .dc-brand-main{
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:flex-start;
        flex-wrap:nowrap;

        width:100%;
        min-width:0;

        gap:7px;
    }

    /*
    |--------------------------------------------------------------------------
    | LOGO MÓVIL
    |--------------------------------------------------------------------------
    */

    .brand img,
    .dc-public-brand .dc-brand-logo{
        display:block !important;
        visibility:visible !important;
        opacity:1 !important;

        position:static;

        width:42px !important;
        min-width:42px;
        max-width:42px;

        height:42px !important;
        min-height:42px;
        max-height:42px;

        object-fit:contain;
        object-position:center;

        flex:0 0 42px;

        margin:0;
        padding:0;

        transform:none;
    }

    /*
    |--------------------------------------------------------------------------
    | TÍTULO
    |--------------------------------------------------------------------------
    */

    .dc-brand-title{
        display:block;

        flex:0 1 auto;
        min-width:0;

        margin:0;

        font-size:16px;
        line-height:1.1;

        white-space:nowrap;
    }

    /*
    |--------------------------------------------------------------------------
    | ESLOGAN
    |--------------------------------------------------------------------------
    */

    .dc-brand-slogan{
        display:block;

        width:100%;
        margin-top:3px;

        font-size:9px;
        line-height:1.2;

        white-space:normal;
    }

    /*
    |--------------------------------------------------------------------------
    | BOTÓN MENÚ
    |--------------------------------------------------------------------------
    */

    .menu-button{
        display:block;
        position:static;

        flex:0 0 auto;

        margin:0;

        padding:9px 12px;

        transform:none;

        right:auto;
        left:auto;
    }

    /*
    |--------------------------------------------------------------------------
    | MENÚ DESPLEGABLE
    |--------------------------------------------------------------------------
    */

    .site-nav{
        top:78px;
        padding-left:18px;
        padding-right:18px;
    }

    /*
    |--------------------------------------------------------------------------
    | RESTO DEL PORTAL
    |--------------------------------------------------------------------------
    */

    .masthead{
        padding:48px 0;
    }

    .grid,
    .feature-grid{
        grid-template-columns:1fr;
    }

    .directory-callout,
    .footer-inner{
        display:block;
    }

    .directory-callout .button{
        margin-top:20px;
    }

    .footer-inner nav{
        margin:25px 0;
        flex-wrap:wrap;
    }

    .section{
        padding-top:38px;
        padding-bottom:38px;
    }
}

/*
|--------------------------------------------------------------------------
| CELULARES PEQUEÑOS
|--------------------------------------------------------------------------
*/

@media(max-width:380px){

    .header-inner{
        padding-left:12px;
        padding-right:12px;
        gap:6px;
    }

    .dc-brand-main{
        gap:5px;
    }

    .brand img,
    .dc-public-brand .dc-brand-logo{
        width:36px !important;
        min-width:36px;
        max-width:36px;

        height:36px !important;
        min-height:36px;
        max-height:36px;

        flex:0 0 36px;
    }

    .dc-brand-title{
        font-size:14px;
    }

    .dc-brand-slogan{
        font-size:8px;
    }

    .menu-button{
        padding:8px 10px;
        font-size:14px;
    }
}




