:root {
    --pubs-per-row: 2;
    --grid-spacing: 0.0625rem;
    --a-orange: var(--agru-orange, #f26522);
    --a-orange-deep: var(--agru-orange-deep, #c86016);
    --a-dark: var(--agru-dark, #12151b);
    --a-dark-warm: var(--agru-dark-warm, #1a1512);
    --a-cream: var(--agru-cream, #faf6f0);
    --a-surface: #ffffff;
    --a-line: #ece4d8;
    --a-ink: #1c1a17;
    --a-ink-muted: #7a746c;
    --a-shadow: 0 2px 14px rgba(60,30,10,.08);
    --a-shadow-lift: 0 8px 26px rgba(60,30,10,.14);
    --a-radius: 12px;
    --a-sidebar-w: 224px;
    --a-live-bg: #e8f3ea; --a-live-ink: #2f7a4f;
    --a-private-bg: #fbeee0; --a-private-ink: #a3651c;
    --a-hidden-bg: #efeceb; --a-hidden-ink: #6b6c6f;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

/* ===================== Admin shell (sidebar) ===================== */

body {
    background: var(--a-cream) !important;
    font-family: var(--font-body) !important;
    color: var(--a-ink) !important;
}

.admin-sidebar {
    position: fixed;
    top: 74px;
    left: 0;
    bottom: 0;
    width: var(--a-sidebar-w);
    background: var(--a-dark);
    color: rgba(255,255,255,.68);
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    z-index: 15;
    overflow-y: auto;
    transition: transform .2s ease;
}

.admin-sidebar__label {
    font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.35); padding: 16px 10px 6px;
}
.admin-sidebar__label:first-child { padding-top: 6px; }

.admin-sidebar__nav { display: flex; flex-direction: column; gap: 2px; }

.admin-navlink {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 9px;
    text-decoration: none; color: rgba(255,255,255,.68);
    font-size: 14px; font-weight: 500; font-family: var(--font-body);
    transition: background .15s ease, color .15s ease;
}
.admin-navlink:hover { background: #1c2029; color: #fff; }
.admin-navlink.active { background: #1c2029; color: #fff; }
.admin-navlink.active .admin-navlink__icon { color: var(--a-orange); }
.admin-navlink__icon { flex: none; width: 18px; height: 18px; color: rgba(255,255,255,.5); }
.admin-navlink__badge {
    margin-left: auto; background: var(--a-orange); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
    padding: 3px 6px; border-radius: 999px;
}

.admin-sidebar__toggle {
    display: none;
    position: fixed; top: 84px; left: 14px; z-index: 16;
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: var(--a-dark); color: #fff; align-items: center; justify-content: center;
    box-shadow: var(--a-shadow-lift); cursor: pointer;
}

.container.main {
    margin-left: var(--a-sidebar-w) !important;
    width: calc(100vw - var(--a-sidebar-w)) !important;
    max-width: none !important;
    padding: 24px 28px 60px !important;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .admin-sidebar { transform: translateX(-100%); top: 0; padding-top: 84px; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-sidebar__toggle { display: flex; }
    .container.main {
        margin-left: 0 !important;
        width: 100vw !important;
        padding: 20px 16px 50px !important;
    }
}

/* ===================== Shared admin components ===================== */

.admin-page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.admin-page-head h1 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0;
}
.admin-page-head__meta { color: var(--a-ink-muted); font-size: .85rem; margin-top: 3px; }

.admin-card {
    background: var(--a-surface); border-radius: var(--a-radius); box-shadow: var(--a-shadow);
    padding: 22px 24px; margin-bottom: 20px;
}
.admin-card h2, .admin-card h3 { font-family: var(--font-display); }

.a-btn {
    display: inline-flex; align-items: center; gap: 7px;
    border-radius: 999px; border: 1px solid transparent;
    padding: 9px 18px; font-size: .86rem; font-weight: 600;
    cursor: pointer; transition: opacity .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none; font-family: var(--font-body);
}
.a-btn svg { width: 15px; height: 15px; }
.a-btn--primary { background: var(--a-orange); color: #fff; }
.a-btn--primary:hover { background: var(--a-orange-deep); }
.a-btn--ghost { background: transparent; border-color: var(--a-line); color: var(--a-ink); }
.a-btn--ghost:hover { border-color: var(--a-ink-muted); }
.a-btn[disabled] { opacity: .5; cursor: not-allowed; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.img-tile {
    position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
    background-color: var(--a-cream); background-repeat: no-repeat;
}
.img-tile > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.img-tile__btn {
    position: absolute; width: 26px; height: 26px; border-radius: 50%; border: none;
    background: rgba(18,21,27,.6); color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .7rem;
}
.img-tile__btn--star { top: 6px; left: 6px; color: #c9cdd1; }
.img-tile__btn--star.is-active { color: gold; }
.img-tile__btn--rotate { top: 6px; right: 6px; }
.img-tile__btn--del { bottom: 6px; right: 6px; }
.img-tile__btn--del:hover { background: #c23b3b; }
.img-tile--add {
    border: 1.5px dashed var(--a-line); display: flex; align-items: center; justify-content: center;
    color: var(--a-ink-muted); cursor: pointer; background: var(--a-cream);
}
.img-tile--add:hover { border-color: var(--a-orange); color: var(--a-orange-deep); }
.img-tile--add svg { width: 20px; height: 20px; }

.a-banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--a-private-bg); color: var(--a-private-ink);
    border-radius: var(--a-radius); padding: 13px 18px; margin: 0 0 22px;
    font-size: .88rem;
}
.a-banner svg { flex: none; width: 18px; height: 18px; }
.a-banner a { color: inherit; font-weight: 700; }

.state-chip {
    display: inline-flex; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .02em;
    padding: 3px 9px; border-radius: 999px;
}
.state-chip.live { background: var(--a-live-bg); color: var(--a-live-ink); }
.state-chip.private { background: var(--a-private-bg); color: var(--a-private-ink); }
.state-chip.hidden { background: var(--a-hidden-bg); color: var(--a-hidden-ink); }

.a-seg { display: inline-flex; background: var(--a-cream); border-radius: 999px; padding: 3px; gap: 2px; }
.a-seg button {
    border: none; background: none; padding: 8px 16px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: var(--a-ink-muted); cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all .15s ease; font-family: var(--font-body);
}
.a-seg button svg { width: 14px; height: 14px; }
.a-seg button.active { background: var(--a-surface); color: var(--a-ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.a-seg button.active[data-state="publica"] { color: var(--a-live-ink); }
.a-seg button.active[data-state="privada"] { color: var(--a-private-ink); }
.a-seg button.active[data-state="oculta"] { color: var(--a-hidden-ink); }

.a-chip {
    border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-ink-muted);
    border-radius: 999px; padding: 7px 14px; font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .15s ease; font-family: var(--font-body);
}
.a-chip.active { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }
.a-chip:hover:not(.active) { border-color: var(--a-ink-muted); color: var(--a-ink); }

.a-eyebrow {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--a-ink-muted); margin: 22px 0 12px;
}
.a-eyebrow:first-child { margin-top: 0; }

.obras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 8px; }

.obra-card {
    background: var(--a-surface); border-radius: var(--a-radius); overflow: hidden;
    box-shadow: var(--a-shadow); display: flex; flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.obra-card:hover { box-shadow: var(--a-shadow-lift); transform: translateY(-2px); }

.obra-card__media { position: relative; aspect-ratio: 1/1; background: var(--a-cream); }
.obra-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vis-btn {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: rgba(18,21,27,.55); color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .85rem;
}
.vis-btn:hover { background: rgba(18,21,27,.8); }

.obra-card__body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.obra-card__title { font-size: .88rem; font-weight: 600; color: var(--a-ink); }

.obra-card__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.a-icon-btn {
    width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--a-line);
    background: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--a-ink-muted); transition: all .15s ease; text-decoration: none; font-size: .8rem;
}
.a-icon-btn:hover { border-color: var(--a-ink); color: var(--a-ink); }
.a-icon-btn--danger:hover { border-color: #c23b3b; color: #c23b3b; }

.a-empty {
    background: var(--a-surface); border: 1.5px dashed var(--a-line); border-radius: var(--a-radius);
    padding: 40px 20px; text-align: center; color: var(--a-ink-muted); font-size: .9rem;
}

@media (min-width: 768px) and (max-width: 1199px) {
    :root {
        --pubs-per-row: 3;
    }
}
@media (min-width: 1200px) {
    :root {
        --pubs-per-row: 4;
    }
}

        @font-face {
            font-family: agruparte;
            src: url(../agruparte.ttf);
        }
		
		.icon {
 margin: auto;
  width: 50%;
  padding: 5px;
height:250px;
width:230px;
}
.relative {position: relative}
.myArt {background-position:0px 0px;}
.myProfile {background-position:-250px 0px;}
.myStats {background-position:-250px -250px;}
.myGalery {background-position:0px -250px;}

.main {
	width: 100vw;
    margin-bottom: 0px;
    padding: 0px;

}

.boxed
    {
      width:96%;height:auto;
	  padding:15px;
	  margin:2%;
      border: solid 1px #555;
      background-color: white;
      box-shadow:  0 0 10px  rgba(0,0,0,0.6);
      -moz-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
      -webkit-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
      -o-box-shadow: 0 0 10px  rgba(0,0,0,0.6);
    }

.content {
	background-color: #f0f0f0;
	margin-top: 120px;
	height:auto;

}



.t-body {
		font-size: .875rem;
	    font-family: Questrial,sans-serif;
		font-weight: 400;
		text-transform: none;
		letter-spacing: 0;}

#main_cards {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/*
.card {
	max-width: 18rem;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	justify-content: center;
	
}

.card-body {
	background: linear-gradient( to bottom, white 75%, transparent 95%);
}
.card-subtitle {
	margin: 3px;
}
*/

.nav-opt:hover {
background-color: rgb(243, 242, 246);
box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;}

#contenido {
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.8);
	box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
	animation: fadeIn 2s;
	transition: width 2s, height 4s;
}

.page {
	transition:  2s;
	animation: fadeIn 2s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.gallery {
	align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
	transition: transform 0.5s ease;
}

.edicion {
		border-radius: unset;
	    max-height: 300px;
		min-height: 250px;
} 

.glow {
	box-shadow: 1px 1px 20px 10px var(--agru-orange, #f9a912);
}

.btn-primary {
	--bs-btn-bg: var(--agru-orange, #f26522);
	--bs-btn-border-color: var(--agru-orange, #f26522);
	--bs-btn-hover-bg: var(--agru-orange-deep, #c86016);
	--bs-btn-hover-border-color: var(--agru-orange-deep, #c86016);
	--bs-btn-active-bg: var(--agru-orange-deep, #c86016);
	--bs-btn-active-border-color: var(--agru-orange-deep, #c86016);
}
.etiqueta{
  transition: transform 0.5s ease;
	margin-top: -10px;
	padding: 7px 1px !important;
}

.gallery{
	
}
 .form-control, .form-select, .form-check-label {
			height: calc(2rem + 6px);
  
}
                font-size: calc(11px + 0.390625vw);  
            }
            .form-floating>label {
                padding: 3px; 
				transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
				opacity: .65;
				}
			.form-check-input>label {
                font-size: calc(11px + 0.3vw); 
				height: calc(13px + 0.3vw);
				}
			
            .form-floating {
                margin-bottom: 10px; /* Reducir el margen entre campos */
            }

.pie_edicion {
	position: absolute;
    bottom: 0;
    right: 1px;
    width: 100%;
    padding-top: 40px!important;
    background: linear-gradient(180deg,transparent 0,rgba(0,0,0,.5) 39%,rgba(0,0,0,.9) 63%);
	text-align: center!important;
	padding-bottom: 0.5rem!important;
}

.form-label {
    margin-bottom: 2px;
	margin-top: 4px;
    font-weight: 600;
    font-style: oblique;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%)
}

.avatar:hover .image {
  opacity: 0.3;
}

.avatar:hover .middle {
  opacity: 1;
}
.avatar .button {
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 6px;
}

.image {
  opacity: 1;
  display: block;
  object-fit: contain;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.avatar {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 3px;
}


.nav-pills {
	min-width: 60px;
}
.navbar-custom {
    width: 200px; 
	}
	
	
.listing-type-grid {
    display: grid;
    width: 100%;
    grid-gap: var(--grid-spacing,0.625rem);
    grid-template-columns: repeat(auto-fill,minmax(calc( (100% - var(--grid-spacing) * (var(--pubs-per-row) - 1))/var(--pubs-per-row)),1fr));
}	
.listing-pub {
    border-radius: var(--img-border-radius);
    overflow: hidden;
    position: relative;
}
.listing-image {
    width: 100%;
    height: 100%;
    -webkit-transition: -webkit-transform 300ms ease;
    transition: -webkit-transform 300ms ease;
    transition: transform 300ms ease;
    transition: transform 300ms ease,-webkit-transform 300ms ease;
    position: absolute;
    top: 0;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
}
	
	.listing-pub .cover {
    position: relative;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    overflow: hidden;
    padding-top: var(--listing-cover-ratio);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
@media (max-width: 1000px) {
           .navbar-custom {
    width: 15%; 
	}
	
	
	
			.icon {
	    margin: auto;
    width: 50%;
    padding: 1px;
    height: auto; 
			width: 130px;}
			
			/*
			.card {
    min-width: 130px;
    max-width: 10rem;
    border-radius: 4px;
}
*/
}

/* ===================== Mensajes ===================== */
.msg-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    align-items: start;
}

.msg-list {
    background: var(--a-surface);
    border-radius: var(--a-radius);
    box-shadow: var(--a-shadow);
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.msg-list-item {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background .12s ease;
}
.msg-list-item + .msg-list-item { margin-top: 2px; }
.msg-list-item:hover { background: var(--a-cream); }
.msg-list-item.active { background: var(--a-cream); border-left-color: var(--a-orange); }
.msg-list-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; flex: none; }
.msg-list-item__body { flex: 1; min-width: 0; }
.msg-list-item__title {
    display: block;
    font-size: .85rem; font-weight: 600; color: var(--a-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-list-item__obra {
    display: block;
    font-size: .72rem; color: var(--a-orange-deep); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 1px;
}
.msg-list-item__preview {
    display: block;
    font-size: .78rem; color: var(--a-ink-muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-list-item__dot {
    width: 18px; height: 18px; flex: none;
    border-radius: 50%; background: var(--a-orange); color: #fff;
    font-size: .68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.msg-thread {
    background: var(--a-surface);
    border-radius: var(--a-radius);
    box-shadow: var(--a-shadow);
    padding: 18px 20px;
    min-height: 260px;
    display: flex; flex-direction: column;
}
.msg-thread__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--a-line); }
.msg-thread__head img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; flex: none; }
.msg-thread__head strong { font-family: var(--font-display); font-size: 1rem; }
.msg-thread__body {
    display: flex; flex-direction: column; gap: 12px;
    flex: 1; overflow-y: auto; max-height: 420px;
    padding: 4px 2px;
}
.msg-bubble-row { display: flex; flex-direction: column; max-width: 75%; }
.msg-bubble-row--mia { align-self: flex-end; align-items: flex-end; }
.msg-bubble-row--otra { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 9px 13px; border-radius: 14px; font-size: .85rem; line-height: 1.45; }
.msg-bubble-row--mia .msg-bubble { background: var(--a-orange); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble-row--otra .msg-bubble { background: var(--a-cream); color: var(--a-ink); border-bottom-left-radius: 4px; }
.msg-bubble-row__time { font-size: .68rem; color: var(--a-ink-muted); margin-top: 3px; padding: 0 3px; }
.msg-thread__reply { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.msg-thread__reply textarea {
    flex: 1; resize: vertical; min-height: 44px;
    border-radius: 10px; border: 1px solid var(--a-line);
    background: var(--a-cream);
    padding: 10px 12px; font-family: var(--font-body); font-size: .88rem;
}
.msg-thread__reply textarea:focus { outline: none; border-color: var(--a-orange); background: var(--a-surface); }

@media (max-width: 760px) {
    .msg-layout { grid-template-columns: 1fr; }
}

.obra-card__like {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.55); color: #fff; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.obra-card__like:hover { background: var(--a-orange); }

/* ===================== Modal de login requerido ===================== */
.auth-modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(18,21,27,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.auth-modal {
    background: var(--a-surface);
    border-radius: var(--a-radius);
    box-shadow: var(--a-shadow-lift);
    padding: 32px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}
.auth-modal h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: var(--a-ink);
}
.auth-modal p {
    color: var(--a-ink-muted);
    font-size: .9rem;
    margin: 0 0 20px;
}
.auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-modal__actions .a-btn {
    justify-content: center;
    width: 100%;
}
.auth-modal__back {
    display: inline-block;
    margin-top: 16px;
    font-size: .82rem;
    color: var(--a-ink-muted);
}

