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

/* =====================================
   RESET
===================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #f5f5f7;
    color: #202124;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =====================================
   PÁGINA DEL EDITOR
===================================== */

.editor-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
}

/* =====================================
   CONTENEDOR PRINCIPAL EDITOR
===================================== */

.editor-alone {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
}

/* =====================================
   CABECERA EDITOR
===================================== */

.editor-header {
    margin-bottom: 30px;
}

.editor-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(71, 67, 197, .08);
    color: #4743c5;
    font-size: 13px;
    font-weight: 700;
}

.editor-brand-icon {
    font-size: 16px;
}

.editor h1 {
    margin: 0 0 12px;
    color: #4743c5;
    font-size: 34px;
    line-height: 1.15;
}

.intro {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* =====================================
   FORMULARIO
===================================== */

#cardForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
}

/* =====================================
   LABELS
===================================== */

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.full-field {
    grid-column: 1 / -1;
}

/* =====================================
   INPUTS
===================================== */

input,
textarea {
    width: 100%;
    border: 1px solid #d9d9df;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 15px;
    font-size: 16px;
    color: #222;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

input {
    min-height: 50px;
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4743c5;
    box-shadow: 0 0 0 3px rgba(71, 67, 197, .10);
}

input[type="file"] {
    background: #f8f8fa;
    cursor: pointer;
}

/* =====================================
   BOTONES EDITOR
===================================== */

.editor-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.primary-button,
.secondary-button {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.primary-button {
    border: none;
    background: #4743c5;
    color: white;
    box-shadow: 0 6px 18px rgba(71, 67, 197, .20);
}

.secondary-button {
    border: 1px solid #4743c5;
    background: white;
    color: #4743c5;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:hover {
    box-shadow: 0 8px 22px rgba(71, 67, 197, .26);
}

.secondary-button:hover {
    background: rgba(71, 67, 197, .05);
}

/* =====================================
   MENSAJE GUARDADO
===================================== */

.save-message {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(34, 163, 84, .10);
    color: #18743c;
    font-size: 14px;
    font-weight: 700;
}

/* =====================================
   NOTA FINAL
===================================== */

.editor-note {
    margin-top: 26px;
    padding: 18px;
    border-radius: 14px;
    background: #f7f7fa;
}

.editor-note strong {
    color: #4743c5;
}

.editor-note p {
    margin: 7px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   TARJETA PÚBLICA
========================================================= */

.public-card-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 12px 110px;
}

.public-preview {
    width: 100%;
    max-width: 430px;
    position: relative;
}

/* =====================================
   TARJETA
===================================== */

.business-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .12);
    min-height: 650px;
}

/* =====================================
   TOPBAR
===================================== */

.card-topbar {
    /* Dejar pasar los clics al QR entre los botones superiores. */
    pointer-events: none;

    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-topbar > * {
    pointer-events: auto;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    color: #222;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.edit-card-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 13px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .94);

    color: #333;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .12);

    backdrop-filter: blur(8px);
}

.edit-card-button:hover {
    background: #ffffff;
    color: #4743c5;
}

/* =====================================
   PORTADA
===================================== */

.cover {
    position: relative;

    height: 210px;

    background:
        linear-gradient(
            135deg,
            #4743c5,
            #706cf1
        );

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

.cover::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .03) 55%,
            rgba(0, 0, 0, .16) 100%
        );

    pointer-events: none;
}

.cover.has-cover-image {
    background-color: #4743c5;
}

   /* =====================================
        FOTO + LOGO SOBRE PORTADA
   ===================================== */

.identity-row {
    position: relative;

    width: 100%;

    min-height: 88px;

    margin-top: -54px;

    padding: 0 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    z-index: 10;
}

/* =====================================
   FOTO PERSONAL
===================================== */

.photo-wrapper {
    width: 108px;
    height: 108px;

    flex: 0 0 108px;

    padding: 4px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, .16);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

/* =====================================
   LOGO DEL NEGOCIO
===================================== */

.company-logo-wrapper {
    width: 150px;
    height: 108px;

    flex: 0 0 150px;

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

    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}

.company-logo-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border: none;
    border-radius: 14px;

    background: transparent;
}

/* =====================================
   SI NO HAY FOTO
===================================== */

.identity-row:has(
    .photo-wrapper[style*="display: none"]
) {
    justify-content: flex-end;
}

/* =====================================
   SI NO HAY LOGO
===================================== */

.identity-row:has(
    .company-logo-wrapper[style*="display: none"]
) {
    justify-content: flex-start;
}

/* =====================================
   SI NO HAY FOTO NI LOGO
===================================== */

.identity-row:has(
    .photo-wrapper[style*="display: none"]
):has(
    .company-logo-wrapper[style*="display: none"]
) {
    min-height: 0;
    margin-top: 0;
    padding: 0;
}

/* =====================================
   VISTAS
===================================== */

.card-view {
    display: none;
}

.card-view.active {
    display: block;
}

/* =====================================
   CONTENIDO PRINCIPAL
===================================== */

.card-content {
    padding: 18px 22px 30px;
    text-align: left;
}

.card-content h1 {
    margin: 0;

    font-size: 28px;
    font-weight: 750;
    line-height: 1.15;

    color: #202124;

    letter-spacing: -0.4px;
}

.position {
    margin-top: 6px;
    margin-bottom: 0;

    color: #6f7280;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.business-name {
    margin-top: 10px;
    margin-bottom: 0;

    color: #4743c5;

    font-size: 14px;
    font-weight: 650;
}

.category {
    margin-top: 3px;

    color: #929292;

    font-size: 12px;
    font-weight: 500;
}

.description {
    margin: 18px 0 0;
    max-width: 330px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================
   ACCIONES RÁPIDAS
===================================== */

.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.contact-row {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #202124;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}

.contact-row-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #4743c5, #3855ff);
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(71, 67, 197, .20);
}

.contact-row-icon svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-row-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.contact-row-text strong {
    display: block;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.contact-row-text small {
    display: block;
    margin: 0;
    color: #7b8190;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.contact-row:hover {
    transform: translateX(2px);
}

.contact-row:active {
    opacity: .75;
}

/* =====================================
   DATOS DE CONTACTO
===================================== */

.details {
    display: grid;
    gap: 12px;

    margin-top: 18px;

    text-align: left;
}

/* =====================================
   FILA
===================================== */

.details a {
    min-width: 0;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 14px;

    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    color: #202124;

    text-decoration: none;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

/* =====================================
   ICONO CIRCULAR
===================================== */

.detail-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #4743c5,
            #3855ff
        );

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;

    box-shadow:
        0 4px 12px
        rgba(71, 67, 197, .20);
}

.detail-icon svg {
    width: 21px;
    height: 21px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =====================================
   TEXTO
===================================== */

.details a > div {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.details strong,
.details small {
    display: block;
}

.details strong {
    color: #202124;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.2;

    overflow-wrap: anywhere;
}

.details small {
    margin: 0;

    color: #7b8190;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.25;
}

/* =====================================
   INTERACCIÓN
===================================== */

.details a:hover {
    transform: translateX(2px);
}

.details a:active {
    opacity: .75;
}

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

.qr-drawer {
    position: relative;

    width: 100%;

    margin: 0;

    border-top: none;
    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    z-index: 8;

    touch-action: pan-y;
}

.qr-drawer.active .qr-toggle-icon {
    transform: rotate(180deg);
}

.qr-toggle {
    width: 100%;

    min-height: 42px;

    border: none;

    background: #ffffff;

    display: flex;
    flex-direction: row;

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

    gap: 7px;

    padding: 8px 12px;

    cursor: pointer;

    color: #666;

    font-size: 11px;
    font-weight: 600;
}

.qr-toggle-icon {
    color: #4743c5;

    font-size: 18px;

    transition:
        transform .3s ease;
}

.qr-panel {
    width: 100%;
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    background: #ffffff;

    transition:
        max-height .4s ease,
        opacity .25s ease;
}

.qr-panel.open {
    max-height: 400px;
    opacity: 1;
}

.qr-panel-content {
    padding:
        6px
        20px
        18px;

    text-align: center;
}

.qr-panel-content h3 {
    margin:
        4px
        0
        4px;

    font-size: 16px;
}

.qr-panel-content p {
    margin:
        0
        0
        8px;

    color: #777;

    font-size: 11px;
    line-height: 1.4;
}

#qrcode {
    display: flex;

    justify-content: center;

    padding: 6px;
}

#qrcode img,
#qrcode canvas {
    border: 10px solid white;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
}

/* =====================================
   VISTAS INTERNAS
===================================== */

.section-view {
    min-height: 0;
    padding: 34px 22px 35px;
}

.section-view h2 {
    margin: 0;
    color: #202124;
    font-size: 25px;
}

.section-view>p {
    margin: 8px 0 18px;
    color: #777;
    line-height: 1.5;
}

/* =====================================
   UTILIDADES
===================================== */

.utility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-top: 18px;
}

/* BOTÓN */

.utility-grid button {
    position: relative;

    width: 100%;
    height: 52px;

    margin: 0;
    padding: 0;

    border: 1px solid #ececf1;
    border-radius: 13px;

    background: #fafafe;

    cursor: pointer;
}

/* ICONO - CENTRO EXACTO DEL BOTÓN */

.utility-grid button .utility-icon {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 28px;
    height: 28px;

    margin: 0;
    padding: 0;

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

    border-radius: 50%;

    background: #f0efff;
    color: #4743c5;

    pointer-events: none;
}

/* SVG */

.utility-grid button .utility-icon svg {
    width: 16px;
    height: 16px;

    display: block;

    margin: 0;
    padding: 0;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* LEYENDA */

.utility-grid button .utility-label {
    position: absolute;

    left: 50%;
    top: calc(100% + 5px);

    transform: translateX(-50%);

    width: max-content;

    margin: 0;
    padding: 0;

    background: transparent;

    color: #202124;

    font-size: 9px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    white-space: nowrap;

    pointer-events: none;
}

/* =====================================
   CUPONES
===================================== */

.coupon-card {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border-radius: 19px;
    background: #4743c5;
    color: #ffffff;
}

.coupon-card h3 {
    margin: 18px 0 8px;
    font-size: 22px;
}

.coupon-card p {
    margin: 0 0 18px;
    line-height: 1.5;
    opacity: .9;
}

.coupon-card>strong {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 9px;
    background: #ffffff;
    color: #4743c5;
    letter-spacing: 1px;
}

.coupon-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =====================================
   PROMOCIONES
===================================== */

.promotion-card {
    padding: 23px;
    border-radius: 19px;
    border: 1px solid #e8e8ed;
    background: #ffffff;
}

.promotion-card>span {
    color: #4743c5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.promotion-card h3 {
    margin: 13px 0 8px;
    font-size: 21px;
}

.promotion-card p {
    margin: 0;
    color: #666;
    line-height: 1.55;
}

.empty-hint {
    margin-top: 16px;
    padding: 15px;
    border-radius: 13px;
    background: #f7f7fa;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

/* =====================================
   NAVEGACIÓN INFERIOR
===================================== */
.bottom-nav{
    position: fixed;
    z-index: 50;

    left: 50%;
    bottom: 14px;

    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 430px;
    height: 84px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;

    padding: 10px 5px 9px;

    overflow: visible;

    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 30px;

    background: rgba(255, 255, 255, .98);

    box-shadow:
        0 12px 30px rgba(40, 45, 70, .14);

    backdrop-filter: blur(14px);
}

/* BOTONES */

.bottom-nav-item {
    position: relative;

    min-width: 0;
    height: 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    padding: 0 1px 2px;

    border: 0;

    background: transparent;

    color: #627083;

    text-decoration: none;
    text-align: center;

    font-family: inherit;
    font-size: 10px;
    font-weight: 500;

    cursor: pointer;
}

/* ICONOS NORMALES */

.bottom-nav-icon {
    width: 36px;
    height: 36px;

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

    flex: 0 0 36px;

    color: #4743c5;

    background: transparent;

    border-radius: 50%;
}

/* SVG */

.bottom-nav-icon svg {
    width: 29px;
    height: 29px;

    display: block;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* TEXTO */

.bottom-nav-label {
    display: block;

    line-height: 1;

    white-space: nowrap;
}

/* =====================================
   MI TARJETA - BOTÓN CENTRAL
===================================== */

.bottom-nav-item.active {
    color: #4743c5;

    font-weight: 700;

    transform: translateY(-12px);
}

.bottom-nav-item.active .bottom-nav-icon {
    width: 68px;
    height: 68px;

    flex: 0 0 68px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #4743c5,
            #625cf0
        );

    border: 6px solid #ffffff;

    box-shadow:
        0 6px 18px
        rgba(71, 67, 197, .28);
}

.bottom-nav-item.active .bottom-nav-icon svg {
    width: 34px;
    height: 34px;

    stroke-width: 1.7;
}

.bottom-nav-item.active .bottom-nav-label {
    font-size: 11px;
    font-weight: 750;
}

/* =====================================
   EL ALDEANO
===================================== */

/* =========================================================
   MENÚ LATERAL
========================================================= */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;

    background: rgba(0, 0, 0, .48);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;

    z-index: 100;

    width: min(82vw, 320px);

    display: flex;
    flex-direction: column;

    padding: 22px;

    background: #17171c;
    color: white;

    box-shadow: 12px 0 30px rgba(0, 0, 0, .25);

    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform .28s ease,
        opacity .2s ease,
        visibility .2s ease;
}

.side-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.side-menu-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.side-menu-brand-icon {
    font-size: 21px;
}

.close-menu-button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.side-menu-section {
    margin-top: 38px;
}

.side-menu-title {
    display: block;
    margin-bottom: 14px;
    color: #9999a4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.side-menu-section a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    padding: 10px 8px;
    border-radius: 11px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.side-menu-section a:hover {
    background: rgba(255, 255, 255, .07);
}

.side-menu-icon {
    width: 28px;
    text-align: center;
    font-size: 19px;
}

.side-menu-footer {
    margin-top: auto;
    padding-top: 25px;
}

.side-menu-footer a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px;

    border-radius: 13px;

    background: #4743c5;
    color: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* =====================================
   ACCESIBILIDAD
===================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(71, 67, 197, .22);
    outline-offset: 2px;
}

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

@media (max-width: 700px) {

    .editor-page {
        padding: 18px 12px 40px;
    }

    .editor-alone {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .editor h1 {
        font-size: 29px;
    }

    #cardForm {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .editor-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    /* TARJETA */

    .public-card-page {
        padding: 0 0 95px;
    }

    .public-preview {
        max-width: none;
    }

    .business-card {
        min-height: calc(100vh - 95px);
        border-radius: 0;
        box-shadow: none;
    }

    .bottom-nav {
        bottom: 8px;
        width: calc(100% - 16px);
    }

}

@media (max-width: 380px) {

    .card-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-actions {
        gap: 7px;
    }

    .utility-grid {
        gap: 9px;
    }

    .bottom-nav-item {
        font-size: 8px;
    }

    .bottom-nav-icon {
        font-size: 18px;
    }

}

/* =====================================
   IDENTIDAD SIN FOTO
===================================== */

.identity-images:has(
    .photo-wrapper[style*="display: none"]
) {
    height: 55px;
    margin-top: -28px;
}

.identity-images:has(
    .photo-wrapper[style*="display: none"]
)
.company-logo-wrapper {
    position: relative;

    right: auto;
    bottom: auto;

    width: 60px;
    height: 60px;

    margin: 0 auto;
}

.aldeano-nav-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    padding: 0;

    overflow: hidden;

    background: transparent;
    border-radius: 50%;
}

.aldeano-nav-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

.aldeano-nav-item .bottom-nav-icon {
    color: inherit;
}

/* =====================================
   CARRUSEL EL ALDEANO - UTILIDADES
===================================== */

.utilities-carousel {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid #ececf1;
}

/* CABECERA */

.utilities-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;

    padding: 0 18px;

    margin-bottom: 18px;
}

.utilities-carousel-kicker {
    display: block;

    margin-bottom: 4px;

    color: #4743c5;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.utilities-carousel-header h3 {
    margin: 0;

    color: #202124;

    font-size: 18px;
    line-height: 1.2;
}

.utilities-carousel-header a {
    flex: 0 0 auto;

    color: #4743c5;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

/* =====================================
   VIEWPORT
===================================== */

.aldeano-carousel {
    width: calc(100% - 28px);

    margin: 0 auto;

    overflow: hidden;

    padding:
        4px
        0
        14px;
}

/* =====================================
   TRACK
===================================== */

.aldeano-carousel-track {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    width: max-content;

    will-change: transform;
}

/* =====================================
   TARJETAS
===================================== */

.utilities-carousel .story-card {
    width: 96px;
    min-width: 96px;
    max-width: 96px;

    height: 172px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 14px;

    background: #ffffff;

    color: #222;

    text-decoration: none;

    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, .09);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

/* IMAGEN */

.utilities-carousel .story-cover {
    position: relative;

    height: 88px;

    overflow: visible;
}

.utilities-carousel .story-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.utilities-carousel .story-image-placeholder {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #ecebff,
            #dff4f2
        );
}

/* OVERLAY */

.utilities-carousel .story-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .03),
            rgba(0, 0, 0, .16)
        );
}

/* LOGO */

.utilities-carousel .story-logo {
    position: absolute;

    left: 8px;
    bottom: -14px;

    width: 30px;
    height: 30px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #ffffff;

    object-fit: cover;

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, .18);

    z-index: 3;
}

.utilities-carousel .story-logo-fallback {
    display: flex;

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

    background: #4743c5;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

/* CUERPO */

.utilities-carousel .story-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding:
        18px
        7px
        7px;
}

/* COMUNIDAD */

.utilities-carousel .story-community {
    color: #4743c5;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

/* EMPRESA: OCULTA */

.utilities-carousel .story-company {
    display: none;
}

/* AUTOR */

.utilities-carousel .story-author {
    margin-top: 3px;
    margin-bottom: 4px;

    color: #777;

    font-size: 9px;
    font-weight: 500;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

/* TITULO */

.utilities-carousel .story-title {
    margin:
        5px
        0
        0;

    color: #222;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.25;

    display: -webkit-box;

    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* FECHA */

.utilities-carousel .story-date {
    margin-top: auto;

    color: #999;

    font-size: 8px;
}

/* ERROR */

.utilities-carousel .error-message {
    padding: 20px;

    color: #c62828;

    font-size: 12px;
}

/* HOVER */

.utilities-carousel .story-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 11px 25px
        rgba(0, 0, 0, .14);
}

.utilities-carousel .story-card:hover .story-image {
    transform: scale(1.04);
}
