/*
 * marcas.css — Componentes de marca portables entre proyectos
 * Aycle · AyCom · intercec
 *
 * Uso: <link rel="stylesheet" href="css/marcas.css">
 */

/* ══════════════════════════════════════════
   AYCOM LOGO
   <a class="aycom-logo" href="https://aycom.com.ar">
       <span class="aycom-wordmark">
           <span class="aycom-ay">Ay</span><span class="aycom-com">Com</span>
       </span>
       <span class="aycom-tag">by Aycle</span>
   </a>
   ══════════════════════════════════════════ */
.aycom-logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    background: #2563eb;
    padding: 0.45rem 0.85rem 0.4rem;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}
.aycom-logo:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}
.aycom-wordmark {
    display: flex;
    align-items: baseline;
}
.aycom-ay {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.04em;
}
.aycom-com {
    font-size: 1.4rem;
    font-weight: 900;
    color: #93c5fd;
    letter-spacing: -0.04em;
}
.aycom-tag {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #bfdbfe;
    margin-top: 0.15rem;
    text-align: right;
}

/* Variante grande (para headers) */
.aycom-logo.lg .aycom-ay,
.aycom-logo.lg .aycom-com {
    font-size: 3rem;
}
.aycom-logo.lg .aycom-tag {
    font-size: 0.65rem;
    margin-top: 0.25rem;
}
.aycom-logo.lg {
    padding: 1rem 1.5rem 0.85rem;
    border-radius: 1rem;
}


/* ══════════════════════════════════════════
   AYCLE LOGO
   <a class="aycle-logo" href="https://aycle.com">
       <span class="aycle-wordmark">Aycle</span>
       <span class="aycle-tag">Argentina</span>
   </a>
   ══════════════════════════════════════════ */
.aycle-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    user-select: none;
    transition: opacity 0.2s, transform 0.2s;
}
.aycle-logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}
.aycle-wordmark {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1d4ed8;
}
.aycle-tag {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.1rem;
}


/* ══════════════════════════════════════════
   INTERCEC — WIDGET CALCULADORA
   <a class="calc-link" href="escalacec.php">
       <div class="calc-widget"> ... </div>
   </a>
   ══════════════════════════════════════════ */
.calc-link {
    display: block;
    text-decoration: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}
.calc-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}
.calc-widget {
    background: linear-gradient(145deg, #e8f0fa 0%, #d0e2f5 100%);
    border: 1px solid rgba(26,58,92,0.1);
    border-radius: 1rem;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.calc-widget::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(26,58,92,0.05);
    border-radius: 50%;
}
.calc-widget::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 120px; height: 120px;
    background: rgba(26,58,92,0.04);
    border-radius: 50%;
}
.calc-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e63946, #b52030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(230,57,70,0.4);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.calc-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}
.calc-title {
    color: #1a3a5c;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.calc-subtitle {
    color: #5a7a99;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-top: -0.5rem;
}
.calc-category {
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.35);
    color: #c0303c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}
.calc-cta {
    background: #e63946;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(230,57,70,0.35);
    transition: background 0.2s;
}
.calc-link:hover .calc-cta {
    background: #c0303c;
}
