/* ==========================================================
   ROSKO CARD PREMIUM v2.0
   PARTE 1
   ========================================================== */

@font-face {
    font-family: "Handstand";
    src: url("../fonts/handstand.regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}



:root {
    --bg: #f3f5f7;
    --surface: #ffffff;
    --text: #30343a;
    --muted: #808894;
    --red: #d71920;
    --blue: #2b5fa9;
    --border: #ebedf0;
    --shadow-soft: 0 8px 24px rgba(0,0,0,.05);
    --shadow-card: 0 18px 40px rgba(0,0,0,.08);
    --radius: 18px;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body{
    width:100%;
    min-height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;

    font-family:"Inter",sans-serif;
    background:radial-gradient(circle at top left,#ffffff 0%,#f6f7f9 55%,#eef2f5 100%);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:18px;
    color:var(--text);
}

.card {
    position: relative;
    width: 100%;
    max-width: 392px;
    min-height: auto;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    box-shadow: var(--shadow-card);
}

/* ====================================================== */
/* DECORACION */
/* ====================================================== */
.card::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: -170px;
    top: 70px;
    border-radius: 50%;
    background: transparent,
    rgba(0,0,0,.035) 0%,
    rgba(0,0,0,.02) 40%,
    transparent 72%);
}

.card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -140px;
    bottom: -110px;
    border-radius: 50%;
    background: radial-gradient(circle,
    rgba(215,25,32,.08),
    transparent 72%);
}

/* puntitos */
.hero::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -8px;
    width: 84px;
    height: 84px;
    opacity: .25;
    background-image: radial-gradient(#d8d8d8 1.6px,transparent 1.6px);
    background-size: 12px 12px;
}

/* ====================================================== */
.hero {
    position: relative;
    z-index: 3;
    text-align: center;
    position: relative;
    isolation:isolate;
}

/* ==========================
   LOGO
   ========================== */
.logo {
    display: block;
    width: 320px;
    max-width: 88%;
    margin: 0 auto -2px;
    object-fit: contain;
}

/* ====================================================== */
.firma{
    display:block;
    width:360px;
    max-width:91%;
    height:auto;
    margin:35px auto 4px;
}
/* ====================================================== */
.firma-linea {
    width: 52px;
    height: 3px;
    background: #d71920;
    margin: 10px auto 16px;
    border-radius: 999px;
}

/* ====================================================== */
.cargo{
    font-size:.98rem;
    color:#555;
    margin-top:4;
    margin-bottom:26px;
}

/* ====================================================== */
/* CONTACTO */
/* ====================================================== */
.contact-list{
    display:flex;
    flex-direction:column;
    gap:11px;

    margin-top:23px;

    z-index:3;
}

/* ====================================================== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 8px 16px;
    box-shadow: var(--shadow-soft);
    transition: .20s;
}

.contact-item:hover {
    transform: translateY(-2px);
}

/* ====================================================== */
.contact-item i {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    background: #343a40;
    color: #ffffff;
    font-size: 13px;
}

/* ====================================================== */
.contact-item span {
    flex: 1;
    font-size: .96rem;
    font-weight: 500;
    letter-spacing: .15px;
}

/* ======== CONTINÚA EN LA PARTE 2 ======== */
/* ====================================================== */
/* REDES SOCIALES */
/* ====================================================== */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 20px 0 18px;
    z-index: 3;
}

/* ====================================================== */
.social-link {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: #5d636b;
    box-shadow: var(--shadow-soft);
    transition: .22s;
}

.social-link i {
    font-size: 22px;
}

.social-link:hover {
    color: var(--red);
    transform: translateY(-2px);
}

/* ====================================================== */
/* BOTONES */
/* ====================================================== */
.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 3;
    margin-top: px;
}

/* ====================================================== */
.primary-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px 12px;
    color: #444;
    font-size: .94rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: .20s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.09);
}

.primary-button i {
    color: var(--red);
}

/* ====================================================== */
/* QR */
/* ====================================================== */
.qr-section {
    margin-top: auto;
    padding-top: 18px;
    text-align: center;
    z-index: 3;
}

.qr-section::before {
    content: "";
    display: block;
    width: 66px;
    height: 4px;
    background: var(--red);
    border-radius: 999px;
    margin: 0 auto 15px;
}

/* ====================================================== */
.qr-button {
    border: none;
    background: none;
    cursor: pointer;
    color: #5d636b;
    font-size: 1rem;
    font-weight: 600;
    transition: .2s;
}

.qr-button:hover {
    color: var(--red);
}

.qr-button i {
    color: var(--red);
    margin-right: 8px;
}

/* ====================================================== */
/* OVERLAY QR */
/* ====================================================== */

.qr-overlay{
    position:fixed;
    inset:0;

    display:none;

    justify-content:center;
    align-items:center;

    background:rgba(18,23,30,.18);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    z-index:9999;

    opacity:0;
    transition:opacity .18s ease;
}

.qr-overlay.active{
    display:flex;
    opacity:1;
}

/* ====================================================== */

.qr-panel{
    width:min(340px,92%);
    background:#fff;
    border-radius:28px;
    padding:28px;
    text-align:center;
    box-shadow:0 24px 60px rgba(0,0,0,.22);
    animation:qrPop .18s ease;
}

.qr-logo{
    width:185px;
    display:block;
    margin:0 auto 16px;
}

.qr-image{
    width:240px;
    max-width:100%;
    display:block;
    margin:0 auto 20px;
}

.qr-text{
    color:var(--muted);
    font-size:.92rem;
    line-height:1.45;
    margin-bottom:22px;
}

.qr-panel .primary-button{
    width:100%;
}

@keyframes qrPop{

    from{
        opacity:0;
        transform:translateY(12px) scale(.96);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }

}/* ====================================================== */
/* RESPONSIVE */
/* ====================================================== */

@media (max-width:759px){

    .card{
        padding:24px 20px;
    }

    .logo{
        width:235px;
    }

    .firma{
        width:340px;
        max-width:88%;
    }

}

@media (max-height:760px){

    .card{
        padding:18px;
    }

    .logo{
        width:150px;
    }

    .firma{
        width:300px;
        max-width:88%;
    }

    .cargo{
        margin-bottom:5px;
    }

    .contact-list{
        gap:5px;
    }

    .contact-item{
        padding:3px 14px;
    }

    .social{
        margin:14px 0;
    }

    .social-link{
        width:50px;
        height:50px;
    }

    .primary-button{
        padding:13px 10px;
        font-size:.90rem;
    }

}


/* ======================================================
   FIN
   ====================================================== */