@import "https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css";

/* Apply background color to the whole page */
body, html {
    height: 100%;
    background-color: #f4f4f4;   /* Full-screen background color */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* li a {
	display: flex;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
} */

/* Style for the company logo */
.menu li.logo {
    width: auto !important; /* Allow the logo to take its natural size */
    /* pointer-events: none; */
}

li.logo a img {
    height: 30px; /* Set the logo height */
    vertical-align: middle;
}

li a:hover:not(.active) {
/* background-color: #c3c3c3; */
color: #ffffff;
cursor: pointer;
}

li.logo a:hover{
  background-color: #90d4d7 !important;
  }

li.logo a{
  background-color: #90d4d7 !important;
  }

li a {
    display: flex;            /* Use flexbox for the <a> tags */
	  /* flex-direction: column; */
    justify-content: center;     /* Center the icon and text horizontally */
    align-items: center;         /* Center the icon and text vertically */
    color: #1a1a1a;
    text-decoration: none;
    height: 100%;                /* Make the <a> tag fill the entire height of the <li> */
    padding: 0 16px;
}

.icon-size {
  font-size: 24px; /* Control the icon size here */
  margin-bottom: 5px; /* Space between icon and text */
}

.menu-text {
  margin-top: 1px; /* Space between icon and text */
  font-size: 1vw;
}


i {
  margin: 0px; /* Space between icon and text */
  height: 16px;
  width: 16px;
}


.active {
background-color: #c3c3c3;
color: black;
}

li a.active:hover {
	background-color: #c8e7e9;
	color: black;
}


.archivo-procim {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.style-btn {
  margin-top: 10px;
  background-color: #333;
  border: none;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.style-btn:hover {
background-color: #90d4d7;
color: black;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
	height: 50px; /* Set fixed height for the footer */
}

/* Floating Button Styles */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1001;
}

.floating-btn i {
    vertical-align: middle;
}

.floating-btn:hover {
    background-color: #90d4d7;
    color: black;
}

/* Floating Button Styles */
.floating-btn-dark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1001;
}

.floating-btn-dark i {
  vertical-align: middle;
}

.floating-btn-dark:hover {
  background-color: #90d4d7;
  color: black;
}


.news-modal {
    display: none; 
    position: fixed; 
    z-index: 1005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.news-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
}

.carrousel,
.carrousel * {
  box-sizing: border-box;
}
.carrousel {
  font-size: 1rem;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: max-content 1fr max-content;
  grid-template-rows: max-content 1fr max-content;
  grid-template-areas:
    ". . f"
    "l . r"
    "p b c";
  border-radius: 0.25rem;
  color: white;
}
.carrousel:focus {
  outline: 1px solid currentcolor;
}

.carrousel.full-view {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1006;
  font-size: 1.5rem;
  --object-fit: contain !important;
  border-radius: 0;
}
.carrousel.hide-controls .control {
  opacity: 0;
  pointer-events: 0;
}
.carrousel .slides {
  grid-column: 1/-1;
  grid-row: 1/-1;
  display: flex;
  flex-grow: grow;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius:inherit;
}

.carrousel > *:not(.slides) {
  margin: 0.5em;
}
.carrousel .slides img {
  --backgroundOverlay: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  background: #1d1e22;
  object-fit: var(--object-fit, cover);
  transition: margin-left 1s ease;
  background-size: cover;
  background-position: center center;
}

.carrousel .icon {
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.carrousel .arrow-left {
  grid-area: l;
  font-size: 1.5em;
}
.carrousel .arrow-right {
  grid-area: r;
  font-size: 1.5em;
}
.carrousel .full-view-btn {
  grid-area: f;
}
.carrousel .auto-play-btn {
  grid-area: p;
}
.carrousel .controls-hide-btn {
  grid-area: c;
}
.carrousel .bullets {
  grid-area: b;
  display: flex;
  gap: 0.5rem;
}
/* for demo */

/* body {
  margin: 0;
  padding: 1rem;
  background: #060606;
  font-family: sans-serif;
  color: white;
  text-align: center;
} */

.menu {
    padding: 20px;
    width:auto;
}

.menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #90d4d7;
	/* border: 1px solid black; */
	display: flex;               /* Use flexbox for the <ul> */
	align-items: center;         /* Vertically center the items */
	height: 50px;                /* Set a fixed height for the menu */
  position: fixed;    /* Fixes the menu at the top */
  top: 0%;
  width: 100%;        /* Ensure it spans the full width of the screen */
  left: 0%;
  z-index: 1000;      /* Ensures it stays on top of other elements */
}
  
.menu li {
	float: left;
  justify-content: center;     /* Center content horizontally */
  align-items: center;         /* Center content vertically */
  height: 100%;                /* Make the <li> fill the entire height of the <ul> */
  width: 11.11%;                /* Set a fixed width for each menu item */
	text-align: center;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 20em;
  gap: 2em;
  width: auto;
  /* max-width: 1000px; */
  height: 60%;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: calc(2% + 5px);

  margin-inline: auto;
}
@media (min-width: 40rem) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
.container > *:first-child {
  grid-column: 1/-1;
}

.controls-info {
  max-width: max-content;
  display: grid;
  text-align: left;
  margin-inline: auto;
  grid-template-columns: repeat(3, auto);
}
.controls-info * {
  padding: 0.25em 0.5em;
  align-self: center;
}
.controls-info .title {
  border-bottom: 1px solid lightgray;
  font-weight: 600;
}
.controls-info .icon {
  display: flex;
  justify-content: center;
  border-inline: 1px dashed lightgray;
}
.controls-info .double {
  grid-column: span 2;
  border-left: 1px dashed lightgray;
}

input {
  width: 90%;
  font-size: 12px;
  height: 25px;
  border: 1px solid #CCC;
  border-radius: 10px;
  display: block; 
  margin-top: 5px;
}

#editor_1 {
  height: 300px; /* Fixed height */
  overflow-y: auto; /* Enable vertical scrollbar */
  border: 1px solid #ccc; /* Optional border */
  padding: 10px; /* Optional padding */
}

.ql-container
, .ql-editor {
    height: auto; /* auto-growth */
}

#help-section {
  display: none; /* Initially hidden */
  margin-top: 30px;
  padding: 20px;
  overflow-y: auto; /* Allow scrolling if content overflows */
  
  /* Flex settings for full height */
  display: flex;
  flex-direction: column;
  height: 100vh; /* Adjust HEADER_HEIGHT to the height of any fixed headers */
  box-sizing: border-box;
}

/* Ensure that the FAQ container grows to take available space */
.faq-container {
  flex-grow: 1;
  overflow-y: auto;
}

/* Optional styling for FAQ items */
.faq-item {
  margin-bottom: 15px;
}

.expand-faq {
  width: 100%;
  text-align: left;
  background: #e0e0e0;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.faq-answer {
  padding: 10px;
  background-color: #fff;
  border-left: 3px solid #007bff;
}

/* ===== Feed PROCIM — refresh ===== */
.news-section {
    padding: 32px 32px 48px;
    background: #f4f4f4;
    min-height: 60vh;
}

.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 24px;
}

.news-section-title {
    font-family: "Archivo", sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    text-align: left;
}

.news-section-subtitle {
    font-family: "Archivo", sans-serif;
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid #eef0f2;
}
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.news-item-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}
.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease;
}
.news-item:hover .news-item-image img {
    transform: scale(1.04);
}

.news-item-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-item-title {
    font-family: "Archivo", sans-serif;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: left;
}

.news-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eef0f2;
    margin-bottom: 4px;
}
.news-author-label {
    font-size: 12px;
    color: #6b7280;
}
.news-author-label strong {
    color: #1a1a1a;
    font-weight: 600;
}

.btn-follow-feed {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #28B4B6;
    background: #28B4B6;
    color: #fff;
    transition: background 0.15s, color 0.15s;
}
.btn-follow-feed[data-following="1"] {
    background: #fff;
    color: #28B4B6;
}
.btn-follow-feed:hover { opacity: 0.85; }

.news-content {
    font-family: "Archivo", sans-serif;
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.45;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expand-btn {
    align-self: flex-start;
    margin-top: 8px;
    background-color: transparent;
    border: 1px solid #28B4B6;
    color: #28B4B6;
    padding: 6px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.expand-btn:hover {
    background: #28B4B6;
    color: #fff;
}

.news-empty-state {
    max-width: 520px;
    margin: 24px auto;
    padding: 36px 24px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px dashed #cdd5d6;
}
.news-empty-state h3 {
    font-family: "Archivo", sans-serif;
    margin: 12px 0 6px;
    color: #1a1a1a;
}
.news-empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Destacados seguidos grid */
.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.destacado-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eef0f2;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.destacado-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.destacado-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef0f2;
    background: #f0f0f0;
}
.destacado-name {
    font-family: "Archivo", sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    font-size: 15px;
}
.btn-unfollow {
    padding: 6px 14px;
    border: 1px solid #d9534f;
    background: #fff;
    color: #d9534f;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    font-family: "Archivo", sans-serif;
    transition: background 0.15s, color 0.15s;
}
.btn-unfollow:hover { background: #d9534f; color: #fff; }

/* Full news display refresh */
.full-news-display {
    padding: 32px 5vw;
    background: #f9fbfb;
    min-height: 70vh;
}
.full-news-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #eef0f2;
}
.full-news-card h2 {
    font-family: "Archivo", sans-serif;
    margin: 16px 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}
.full-news-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin: 16px 0 0;
    display: block;
}
.full-news-meta {
    font-family: "Archivo", sans-serif;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0f2;
}
.full-news-meta strong { color: #1a1a1a; font-weight: 600; }
.full-news-content {
    font-family: "Archivo", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2b2f33;
}
.full-news-content img { max-width: 100%; height: auto; border-radius: 6px; }
.collapse-btn {
    background-color: transparent;
    color: #28B4B6;
    border: 1px solid #28B4B6;
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.collapse-btn:hover {
    background-color: #28B4B6;
    color: #fff;
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
    .news-section { padding: 20px 16px 36px; }
    .news-section-title { font-size: 22px; }
    .news-grid { grid-template-columns: 1fr; }
}

/* ===== Feed público — fixes de layout y espaciado ===== */
/* El <ul> del menú está position:fixed, pero su wrapper .menu mantiene
   padding y crea espacio fantasma en el flujo. Lo neutralizamos solo
   cuando estamos en la vista pública. */
body:has(#app[data-mode="public"]) > header,
body:has(#app[data-mode="public"]) > header .menu {
    padding: 0;
    margin: 0;
    height: 0;
}

#app[data-mode="public"] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 50px; /* compensa el menú fijo (height: 50px) */
}

#app[data-mode="public"] #carrousel-section {
    padding-top: 16px;
    padding-bottom: 8px;
    height: auto;
    grid-auto-rows: clamp(180px, 26vw, 320px);
}

#app[data-mode="public"] .news-section {
    min-height: 0;             /* elimina el 60vh fantasma */
    flex: 1 0 auto;            /* ocupa el espacio disponible y empuja al footer */
    padding: 24px clamp(16px, 3vw, 32px) 32px;
}

#app[data-mode="public"] .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

#app[data-mode="public"] .full-news-display {
    min-height: 0;
    flex: 1 0 auto;
    padding: 24px clamp(16px, 4vw, 48px);
}

#app[data-mode="public"] .footer {
    margin-top: 0;             /* el flex-grow del contenido ya separa */
    padding: 14px 16px;
    height: auto;              /* deja que el contenido defina la altura */
    flex-shrink: 0;
    box-sizing: border-box;
}
#app[data-mode="public"] .footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    #app[data-mode="public"] .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    #app[data-mode="public"] #carrousel-section {
        grid-auto-rows: clamp(140px, 40vw, 240px);
        padding-left: 16px;
        padding-right: 16px;
    }
}