/* ------------------------------
   Chercan font family
   ------------------------------ */

@font-face {
  font-family: "Chercan";
  src:
    url("../../assets/fonts/ChercanStd-Fina.woff2") format("woff2"),
    url("../../assets/fonts/ChercanStd-Fina.woff") format("woff"),
    url("../../assets/fonts/ChercanStd-Fina.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chercan";
  src:
    url("../../assets/fonts/ChercanStd-Gris.woff2") format("woff2"),
    url("../../assets/fonts/ChercanStd-Gris.woff") format("woff"),
    url("../../assets/fonts/ChercanStd-Gris.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chercan";
  src:
    url("../../assets/fonts/ChercanStd-Morena.woff2") format("woff2"),
    url("../../assets/fonts/ChercanStd-Morena.woff") format("woff"),
    url("../../assets/fonts/ChercanStd-Morena.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------
   Global styles
   ------------------------------ */

:root {
  --cp-blue: #4262ff;
  --cp-blue-soft: rgba(66, 98, 255, 0.08);
  --cp-bg: #f5f7ff;
  --cp-text: #24253a;
  --cp-muted: #9296b8;
  --cp-border: #e0e4ff;
  --cp-radius-lg: 28px;
  --cp-radius-pill: 999px;
  --cp-shadow-soft: 0 18px 40px rgba(30, 45, 120, 0.12);
  --cp-transition: 0.18s ease-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Chercan", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--cp-text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* fonts Inherit */

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

/* App wrapper */

.cp-app {
  max-width: 1600px;
  width: 100%; 
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

/* HEADER */

.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-logos-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 40px;
}

.cp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.cp-org-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-org-logo img {
  display: block;
  height: 70px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(236deg) brightness(97%) contrast(97%);
}

.cp-org-logo-text {
  display: block;
  height: 48px;
  line-height: 48px;
  font-size: 18px;
  font-weight: 500;
  color: #4169e1;
  white-space: nowrap;
}

.cp-logo-separator {
  width: 1px;
  height: 36px;
  background-color: #4169e1;
  margin: 0 10px;
}

.cp-top-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.cp-top-links a {
  position: relative;
  color: #444;
}

.cp-top-links a:hover {
  color: var(--cp-blue);
}

.cp-bell {
  width: 13px;
  height: 17px;
  border-radius: 8px;
  border: 1.2px solid var(--cp-blue);
  position: relative;
}

.cp-bell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  width: 8px;
  height: 4px;
  border-radius: 8px 8px 0 0;
  border: 1.2px solid var(--cp-blue);
  border-bottom: none;
}

.cp-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--cp-blue);
}

/* Title */

h1.cp-title {
  margin: 60px 0 10px;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  text-align: center;
  color: var(--cp-blue);
}

/* STEPPER */

.cp-stepper {
  position: relative;
  padding: 16px 0 33px;
  margin-bottom: 16px;
}

.cp-stepper::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 31px;
  height: 2px;
  background: #e3e5ff;
  z-index: 0;
}

.cp-stepper-list {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.cp-step {
  text-align: center;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.cp-step-index {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 999px;
  border: 2px solid #d2d6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--cp-muted);
  transition: background var(--cp-transition), color var(--cp-transition),
    border-color var(--cp-transition), transform var(--cp-transition);
}

.cp-step:hover .cp-step-index {
  border-color: var(--cp-blue);
  color: var(--cp-blue);
}

.cp-step-label {
  font-size: 12px;
  color: var(--cp-muted);
  line-height: 1.2;
}

.cp-step--active .cp-step-index {
  background: var(--cp-blue);
  color: #fff;
  border-color: var(--cp-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(66, 98, 255, 0.16);
}

.cp-step--active .cp-step-label {
  color: #555a80;
  font-weight: 500;
}

.cp-step--completed .cp-step-index {
  background: var(--cp-blue);
  border-color: var(--cp-blue);
  color: #fff;
}

/* MAIN LAYOUT */

.cp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(100vh - 140px);
}

/* Card */

.cp-card {
  background: #f8f9ff;
  border-radius: var(--cp-radius-lg);
  padding: 28px 32px 30px;
  box-shadow: var(--cp-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.cp-card h2 {
  margin-top: 0;
  font-size: 16px;
  color: var(--cp-blue);
  margin-bottom: 12px;
}

.cp-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4b66;
}

.cp-card p strong {
  font-weight: 600;
}

.cp-inline-button {
  margin-top: 18px;
  text-align: center;
}

.cp-project-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }

.cp-project-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  padding: 14px 16px;
}

.cp-project-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cp-project-title { font-weight: 600; }
.cp-project-comuna { font-size: 12px; opacity: 0.75; }
.cp-project-resumen { margin-top: 8px; }


/* Buttons */

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--cp-radius-pill);
  border: 1.5px solid var(--cp-blue);
  background: var(--cp-blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--cp-transition), color var(--cp-transition),
    box-shadow var(--cp-transition), transform var(--cp-transition);
  white-space: nowrap;
}

.cp-btn:hover {
  background: #2f4df3;
  box-shadow: 0 12px 25px rgba(66, 98, 255, 0.35);
  transform: translateY(-1px);
}

.cp-btn--ghost {
  background: transparent;
  color: var(--cp-blue);
}

.cp-btn--ghost:hover {
  background: var(--cp-blue-soft);
  box-shadow: none;
  transform: translateY(0);
}

.cp-btn--small {
  padding: 6px 16px;
  font-size: 13px;
}

/* Form steps visibility */

.form-step {
  display: none;
}

.form-step--active {
  display: block;
}

/* Form layout */

.cp-section-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
  color: #3d4070;
}

.cp-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.cp-field-row {
  display: grid;
  grid-template-columns: 1.2fr 2.2fr;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
}

@media (max-width: 720px) {
  .cp-card {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }

  .cp-field-row {
    grid-template-columns: 1fr;
  }
}

.cp-field-label {
  font-size: 14px;
  font-weight: 500;
  color: #3f4164;
  padding-top: 6px;
}

.cp-field-help {
  font-size: 12px;
  color: var(--cp-muted);
  margin-top: 6px;
}

.cp-input-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-input,
.cp-textarea {
  width: 100%;
  border-radius: var(--cp-radius-pill);
  border: 1.5px solid var(--cp-border);
  padding: 10px 18px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #333555;
  transition: border-color var(--cp-transition), box-shadow var(--cp-transition),
    background var(--cp-transition);
}

.cp-textarea {
  border-radius: 20px;
  min-height: 110px;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}

.cp-input::placeholder,
.cp-textarea::placeholder {
  color: rgba(140, 148, 190, 0.8);
}

.cp-input:focus,
.cp-textarea:focus {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(66, 98, 255, 0.2);
  background: #ffffff;
}

.cp-input-note {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #bcc0e0;
  pointer-events: none;
}

.cp-tagline {
  font-size: 12px;
  text-align: right;
  color: var(--cp-muted);
  margin-top: 4px;
}

/* Upload widgets */

.cp-upload-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.cp-upload-btn {
  border-radius: var(--cp-radius-pill);
  border: 1.5px dashed #c8ccff;
  background: rgba(66, 98, 255, 0.03);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cp-blue);
  cursor: pointer;
  transition: background var(--cp-transition), border-color var(--cp-transition);
}

.cp-upload-btn:hover {
  background: rgba(66, 98, 255, 0.08);
  border-color: var(--cp-blue);
}

.cp-upload-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--cp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.cp-upload-thumb {
  width: 168px;
  height: 105px;
  border-radius: 14px;
  background: #d9ddee;
  overflow: hidden;
  flex-shrink: 0;
}

.cp-upload-thumb-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c5cae9, #9fa8da);
}

/* Columns */

.cp-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .cp-two-columns {
    grid-template-columns: 1fr;
  }
}

/* Etapas timeline */

.cp-etapas-wrapper {
  margin-top: 16px;
  position: relative;
  padding-left: 30px;
}

.cp-etapas-line {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 36px;
  width: 3px;
  background: #d2d6ff;
}

.cp-etapa-item {
  position: relative;
  padding-left: 16px;
  margin-bottom: 18px;
}

.cp-etapa-index {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--cp-blue);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(66, 98, 255, 0.24);
}

.cp-etapa-inner {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 14px 14px 10px;
  border: 1px solid #dde1ff;
}

/* Repeaters */

.cp-repeater {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.cp-repeater-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  border: 1px solid #dde1ff;
  padding: 12px 14px 10px;
}

.cp-repeater-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.cp-repeater-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px 16px;
}

@media (max-width: 720px) {
  .cp-repeater-grid,
  .cp-repeater-grid-3 {
    grid-template-columns: 1fr;
  }
}

.cp-sub-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--cp-muted);
}

/* Navigation footer */

.cp-nav-bar {
  margin-top: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-nav-bar-left,
.cp-nav-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .cp-nav-bar {
    flex-direction: row;
  }

  .cp-nav-bar-left .cp-btn,
  .cp-nav-bar-right .cp-btn {
    width: 130px;
    justify-content: center;
  }
}

/* Footer */

.cp-footer {
  border-top: 1px solid #edf0ff;
  margin-top: 40px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 11px;
  color: #777b9c;
}

.cp-footer-logos-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 70px;
}

.cp-footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cp-footer-simple-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cp-footer-logo {
  font-size: 18px;
  line-height: 1.1;
  color: #4169e1;
  font-weight: 500;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}

/* Misc helpers */

.cp-align-right {
  text-align: right;
}

.cp-mt-12 {
  margin-top: 12px;
}

.cp-mt-18 {
  margin-top: 18px;
}

.mb-4 {
  margin-bottom: 1rem;
}

.gallery-carousel .main-carousel .carousel-item,
.gallery-carousel video.carousel-item {
  height: 300px;
  width: 100%;
  object-fit: cover;
}



.cp-confirm-title {
  font-size: 16px;
  color: var(--cp-blue);
  margin-bottom: 14px;
}

.cp-confirm-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4a4b66;
  margin-bottom: 18px;
  text-align: center;
}

.cp-confirm-text strong {
  font-weight: 600;
}

.cp-confirm-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* Gastos Chart */
.gastos-chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px; /* Give it space for outer labels */
  margin: 0 auto;
  aspect-ratio: 1.5; /* wider to accommodate side labels */
}

.gastos-chart-total {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--heading-color);
  pointer-events: none;
  font-family: 'Chercan', sans-serif;
}

@media (max-width: 600px) {
  .gastos-chart-wrapper {
    aspect-ratio: 1;
  }
}

/* -------------------------------------------------- */
/* Homepage CSS Stylings */
/* -------------------------------------------------- */

.homepage-wrapper {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.home-intro {
  font-family: 'Chercan', sans-serif;
  text-align: -webkit-center;
}

.home-intro h2 {
  color: var(--accent-blue);
}

.latest-projects {
  margin-top: 4rem;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.all-projects-link {
  margin-top: 2rem;
  text-align: right;
}

.button {
  background: var(--accent-blue);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
}

.ver-todos-wrapper {
    margin-top: 1em;
    margin-bottom: 2em;
    text-align: -webkit-center;
}

.project-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Styling for project cards. */
/* -------------------------------------------------- */

.project-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cp-project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.project-card {
  width: 100%;
  max-width: 280px;
  height: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.project-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  padding-bottom: 0.75rem;
}

.card-title {
  font-family: 'Chercan', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading-color);
  margin: 0;
}

.card-meta {
  font-family: 'Chercan', sans-serif;
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

.card-description {
  font-family: 'Chercan', sans-serif;
  font-size: 0.9rem;
  color: var(--text-black);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}

.card-button {
  align-self: center;
  margin-top: auto;
  font-family: 'Chercan', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  text-decoration: none;
  color: var(--accent-blue);
  transition: 0.2s ease;
}

.card-button:hover {
  background-color: var(--accent-blue);
  color: white;
}

/* Header CSS Stylings */
/* -------------------------------------------------- */
.gp-header {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ccc;
}

.gp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gp-logo img {
  height: 60px;
}

.gp-menu-toggle {
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid var(--text-black);
  display: inline-block;
}

.gp-submenu {
  display: none;
  margin-top: 0.5rem;
}

.gp-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.gp-submenu a {
  text-decoration: none;
  font-weight: 300;
}

.gp-submenu.visible {
  display: block;
}

/* Footer CSS Stylings */
/* -------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 1rem;
  font-family: 'Chercan', sans-serif;
  font-weight: 300;
  color: var(--text-black);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-menu a {
  text-decoration: none;
  color: var(--text-black);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--accent-blue);
}

.footer-logo img {
  height: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-black);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-blue);
}

.footer-left, .footer-right {
  margin-top: 0.5rem;
}

/* General CSS Styling, text and colors */
/* -------------------------------------------------- */

:root {
  --text-black: #1C1C1C;
  --heading-color: #1E0E62;
  --accent-blue: #4262FF;
}

body, .project-layout-wrapper {
  font-family: 'Chercan', sans-serif;
  color: var(--text-black);
  font-weight: 300;
}

.proyecto-single {
  padding-top: 2rem;
}

.project-title {
  color: var(--heading-color);
  font-size: 2rem;
  font-weight: 300; /* Fina */
}

.project-left h3,
.project-right h3 {
  color: var(--accent-blue);
  font-weight: 300; /* Fina */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.tab-buttons button {
  background: #eee;
  color: var(--text-black);
  transition: 0.5s;
  font-weight: 300; /* Fina */
  font-family: 'Chercan', sans-serif;
  border-style: solid;
  width: 100%;
}
.tab-buttons button.active {
  background: var(--accent-blue);
  color: white;
}

.tab-buttons button:hover {
  background-color: var(--accent-blue);
  color: white;
}

a, .emphasis {
  color: var(--accent-blue);
  font-weight: 300; /* Fina */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
strong {
  color: var(--accent-blue);
  font-weight: 300; /* Match Fina */
}
.emphasis {
  color: var(--text-black);
  font-weight: 500;
}

/* Optional button style */
button {
  font-family: 'Chercan', sans-serif;
  font-weight: 300;
  background-color: var(--accent-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 990px;
  border: 1px var(--accent-blue);
  cursor: pointer;
}

/* Styling for the preview images box and its delete function. */
/* -------------------------------------------------- */
.preview-wrapper {
  position: relative;
  display: inline-block;
}

.preview-wrapper img {
  display: block;
}

.delete-btn {
    position: absolute;
    vertical-align: top;
    top: 0px;
    right: 0px;
    background: white;
    color: white;
    border-radius: 99px;
    padding: 0.5em;
    cursor: pointer;
    font-size: 0.8rem;
}


/* Page Styling for the created pages of each project. */
/* -------------------------------------------------- */

/* Base styles (mobile-first) */

.featured-image {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.carousel img {
  border-radius: 8px;
  width: auto;
  max-height: 150px;
}

/* Main carousel for principal images */
.main-carousel {
  position: relative; /* Important for JS scroll calculations */
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth; /* Smooth scrolling for JS navigation */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.main-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.main-carousel .carousel-item {
  border-radius: 10px;
  width: 100%;
  height: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
}

video.carousel-item {
  background: #000;
  object-fit: contain;
  height: 300px;
  width: 100%;
}

@media (max-width: 720px) {
  .main-carousel .carousel-item,
  video.carousel-item {
    height: 250px;
  }
}

/* Carousel Container & Navigation */
.carousel-container {
  position: relative;
  width: 100%;
}

/* Indicators at the bottom */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: #4262FF;
  transform: scale(1.2);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); /* Always visible slightly */
  border: none;
  cursor: pointer;
  z-index: 20; /* Ensure above video */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  opacity: 0; /* Hidden by default, show on hover */
  transition: all 0.3s ease;
}

/* Show arrows when hovering the container */
.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: #4262FF;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

/* Reset internal carousel styles */
.carousel-container .main-carousel {
  margin-bottom: 0;
  width: 100%;
}

.team-member,
.fin-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.team-member img,
.fin-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* Page Styling for Login */
/* ---------------------- */

.custom-login-wrapper {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.custom-login-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #4262FF;
}

.custom-login-wrapper label {
  display: block;
  text-align: left;
  margin-top: 1rem;
  font-weight: 300;
}

.custom-login-wrapper input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.custom-login-wrapper button {
  margin-top: 1.5rem;
  background: white;
  border: 2px solid #4262FF;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: black;
  font-weight: 500;
  cursor: pointer;
}

.custom-login-wrapper button:hover {
  background: #4262FF;
  color: white;
}

/* Page Styling for Etapas Page */
/* ---------------------------- */

.etapas-wrapper {
  display: flex;
  height: 100%;
  padding: 2rem;
  position: relative;
  flex-wrap: wrap;
}

.etapas-left {
  width: 100%;
  display: flex;
  padding-bottom:2rem;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #4262FF;
  position: sticky;
  top: 0;
}

.etapas-right {
  width: 100%;
}

.etapa-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.etapa-icon {
  width: 40px;
  height: 40px;
  background-color: #a0c0ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.etapa-item.completada .etapa-icon {
  background-color: #4262FF;
}

.etapa-content {
  font-family: 'Chercan', sans-serif;
  color: #1C1C1C;
}

.add-etapa-btn {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  background-color: #4262FF;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
}


/* --------------------------------------------- */
/* 🌐 Layout Grid & Responsive Behavior (Final)  */
/* --------------------------------------------- */

/* Default mobile-first layout (stacked) */
.project-layout-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  margin: 2rem auto;
}

.project-wide {
  order: 1;
}

.featured-image-wrapper {
  order: 2;
}

.project-content {
  order: 4;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-main {
  order: 5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-right {
  order: 3;
  border-radius: 10px;
}

/* --------------------------------------------- */
/* Utility Classes to Control Visibility         */
/* --------------------------------------------- */

.show-on-mobile {
  display: block;
}
.hide-on-mobile {
  display: none;
}
.project-main > * {
  margin-bottom: 1rem;
}

/* --------------------------------------------- */
/* 📱 Tabs layout                                 */
/* --------------------------------------------- */
.tab-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .tab-buttons {
    flex-direction: row;
  }
}

.tab-content {
  display: none;
}
.tab-presupuesto-columns {
  display: grid;
  grid-template-columns: 1fr;   
}
.tab-content.active {
  display: block;
}

/* --------------------------------------------- */
/* 🖥 Desktop layout grid                         */
/* --------------------------------------------- */
@media (min-width: 992px) {
  .etapas-wrapper {
  flex-wrap: nowrap;
  }
  .etapas-left {
  width: 40%;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

.etapas-right {
  width: 60%;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 1rem;
}
  .project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "image sidebar"
      "tabs sidebar";
    gap: 2rem;
  }

  .featured-image-wrapper {
    grid-area: image;
  }

  .project-main {
    grid-area: tabs;
    margin-top: 0rem;
  }

  .project-right {
    grid-area: sidebar;
    align-self: start;
    padding: 0rem 1.5rem 1.5rem 1.5rem;
    margin-top: -1.1em;
  }
  
  .tab-presupuesto-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;   
  }

  .show-on-mobile {
    display: none !important;
  }

  .hide-on-mobile {
    display: block !important;
  }
  .project-title {
    font-size: 3rem;
  }
  .project-main > * {
    margin-bottom: 0;
  }
}

/* --------------------------------------------- */
/* Only for really big screens                   */
/* --------------------------------------------- */

@media (min-width: 1440px) {
  .project-layout-wrapper {
    max-width: 1400px;
  }
}


/* ------------------------------
   HOMEPAGE (matches screenshot)
------------------------------ */

/* HERO */
.cp-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

.cp-hero-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.cp-hero-x {
  font-size: 38px;
  color: var(--cp-blue);
  font-weight: 400;
}

.cp-hero-logo-placeholder {
  color: var(--cp-blue);
  font-size: 54px;
  line-height: 0.92;
  font-weight: 500;
}

.cp-hero-tagline {
  margin-top: 26px;
  font-size: 1.5em;
  color: #6d7195;
}

.cp-highlight {
  background: var(--cp-blue);
  color: #fff;
  padding: 2px 6px;
}

.cp-hero-walker {
  position: absolute;
  left: 8px;
  bottom: 36px;
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

/* FEATURED + CAROUSEL */
.cp-featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-filter-btn {
  border: 1.5px solid var(--cp-blue);
  color: var(--cp-text);
  background: transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cp-filter-caret {
  color: var(--cp-blue);
}

.cp-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cp-carousel::-webkit-scrollbar {
  height: 8px;
}
.cp-carousel::-webkit-scrollbar-thumb {
  background: rgba(66, 98, 255, 0.25);
  border-radius: 999px;
}

.cp-carousel-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.cp-featured-bottom {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* MAP SECTION */
.cp-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  padding: 20px 0 10px;
}

@media (min-width: 900px) {
  .cp-map {
    grid-template-columns: 1fr;
  }
}

.cp-map-title {
  margin: 0 0 16px;
  color: var(--cp-blue);
  font-size: 2em;
  font-weight: 500;
  line-height: 1.05;
}

.cp-map-title span {
  font-size: 0.75em;
  font-style: italic;
  display: inline-block;
  margin-top: 6px;
  color: var(--cp-blue);
}

.cp-map-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
}

.cp-map-stat-num {
  font-size: 44px;
  color: var(--cp-blue);
  font-weight: 500;
}

.cp-map-stat-text {
  font-size: 14px;
  color: #6d7195;
  line-height: 1.25;
}

.cp-map-art {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
}

.cp-map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid rgba(66,98,255,0.15);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: rgba(66,98,255,0.65);
  font-weight: 500;
}

.cp-map-stat-floating {
  position: absolute;
  right: 18px;
  top: 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cp-blue);
}

.cp-map-stat-num-inline {
  font-size: 44px;
  font-weight: 500;
}

.cp-map-stat-text-inline {
  font-size: 16px;
  font-style: italic;
}

/* ------------------------------
   NEW CARD LOOK (homepage)
------------------------------ */

.cp-hcard {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(30, 45, 120, 0.12);
  overflow: hidden;
  border: 1px solid rgba(66, 98, 255, 0.10);
}

.cp-hcard-link {
  display: block;
  color: inherit;
}

.cp-hcard-image {
  position: relative;
  height: 140px;
  background: #eef1ff;
}

.cp-hcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-hcard-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  color: #3d4070;
  min-width: 88px; /* placeholder space */
}

.cp-hcard-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #32c46a;
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  min-width: 54px; /* placeholder space */
  opacity: 0.0; /* hide until you decide to use badges */
}

.cp-hcard-body {
  padding: 12px 14px 14px;
  text-align: center;
}

.cp-hcard-title {
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e0e62; /* matches your old heading color usage */
  line-height: 1.15;
  min-height: 32px;
}

.cp-hcard-meta {
  font-size: 11px;
  color: #8b8fb3;
  margin-bottom: 8px;
}

.cp-hcard-desc {
  font-size: 12px;
  color: #4a4b66;
  line-height: 1.35;
  margin: 0 0 10px;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.cp-hcard-cta {
  display: flex;
  justify-content: center;
}

.cp-hcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--cp-blue);
  color: var(--cp-blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* NEWS CARD AND DASHBOARD*/

  .cp-news-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 24px rgba(20,60,160,.12);
    margin-top: 1em;
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:260px;
  }
  .cp-news-badge{
    position:absolute;
    top: -0.5em;
    left:12px;
    background:#1fbf59;
    color:#fff;
    font-size:12px;
    padding:4px 10px;
    border-radius:999px;
    box-shadow:0 8px 18px rgba(0,0,0,.12);
  }
  .cp-news-link{ color:inherit; text-decoration:none; display:block; }
  .cp-news-top{ 
    position:relative;
    text-align: -webkit-center;
  }
  .cp-news-pill{
    max-width: 66%;
    background: rgba(255, 255, 255, .92);
    font-size: 12px;
    padding: 0.7em;
    margin: 10px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
  }
  .cp-news-image{
    border-radius:14px;
    overflow:hidden;
    height:140px;
    background:#eef2ff;
  }
  .cp-news-image img{ width:100%; height:100%; object-fit:cover; display:block; }
  .cp-news-iconbox{
    border-radius:14px;
    height:140px;
    display:grid;
    place-items:center;
    background:#3f63ff; /* placeholder blue */
  }
  .cp-news-icon-triangle{
    width:86px; height:86px;
    border:3px solid rgba(255,255,255,.9);
    border-radius:16px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:800;
    font-size:40px;
  }
  .cp-news-body{ text-align:center; padding:4px 8px; }
  .cp-news-title{
    margin:0;
    font-size:14px;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#2b46d6;
  }
  .cp-news-date{ font-size:12px; color:#6b7aa6; margin-top:4px; }
  .cp-news-excerpt{ font-size:12px; color:#5e6a8a; margin:8px 0 0; }
  .cp-news-footer{ display:flex; justify-content:center; padding-top:4px; }
  .cp-news-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:30px;
    padding:0 18px;
    border-radius:999px;
    border:1px solid #2b46d6;
    color:#2b46d6;
    font-size:12px;
    text-decoration:none;
    background:#fff;
  }


  .cp-dashboard{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap:28px;
    padding:22px 18px;
    min-height: calc(100vh - 120px);
  }

  .cp-dash-aside{ position:sticky; top:16px; align-self:start; }
  .cp-dash-menu-card{
    background:#fff;
    border-radius:22px;
    padding:18px;
    box-shadow:0 14px 32px rgba(20,60,160,.10);
  }
  .cp-dash-org{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
  .cp-dash-org-logo{
    width:44px; height:44px;
    border-radius:999px;
    display:grid; place-items:center;
    background:#eef2ff;
    font-weight:700;
    color:#2b46d6;
  }
  .cp-dash-org-name{ font-size:12px; color:#6b7aa6; }
  .cp-dash-org-sub{ font-size:14px; font-weight:700; color:#2b46d6; line-height:1.1; }

  .cp-dash-menu-title{ font-size:12px; color:#6b7aa6; margin:12px 0 10px; }
  .cp-dash-nav{ display:flex; flex-direction:column; gap:8px; }
  .cp-dash-nav-group{ padding-left:10px; margin-left:8px; border-left:2px solid #eef2ff; display:flex; flex-direction:column; gap:8px; }
  .cp-dash-nav-item{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px;
    border-radius:14px;
    text-decoration:none;
    color:#2a3560;
    font-size:13px;
  }
  .cp-dash-nav-item .dot{
    width:8px; height:8px; border-radius:999px;
    background:#d6defa;
    display:inline-block;
  }
  .cp-dash-nav-item.is-active{
    background:#2b46d6;
    color:#fff;
  }
  .cp-dash-nav-item.is-active .dot{ background:#fff; }

  .cp-dash-add{
    margin-top:16px;
    display:flex; align-items:center; gap:10px;
    text-decoration:none;
    color:#2b46d6;
    font-size:13px;
    padding:10px 12px;
    border-radius:14px;
  }
  .cp-dash-add .plus{
    width:34px; height:34px;
    border-radius:999px;
    display:grid; place-items:center;
    background:#2b46d6;
    color:#fff;
    font-weight:600;
    font-size: 1.5em;
  }

  .cp-dash-main{ padding-top:8px; }
  .cp-dash-header{ text-align:center; margin:4px 0 18px; }
  .cp-dash-title{ margin:0; font-size:34px; color:#2b46d6; font-weight:500; }
  .cp-dash-subtitle{ margin:6px 0 0; color:#6b7aa6; font-size:13px; }

  .cp-dash-section{ margin-top:18px; }
  .cp-dash-h2{
    margin:0 0 12px;
    font-size:18px;
    color:#2b46d6;
    font-weight:500;
    font-style:italic;
  }

  .cp-dash-row{
    display:flex;
    gap:18px;
    overflow:auto;
    padding:6px 2px 14px;
  }

  .cp-dash-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap:18px;
  }

  @media (max-width: 1100px){
    .cp-dashboard{ grid-template-columns: 1fr; }
    .cp-dash-aside{ position:relative; top:auto; }
    .cp-dash-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  }
  @media (max-width: 720px){
    .cp-dash-grid{ grid-template-columns: 1fr; }
    .cp-dash-title{ font-size:28px; }
  }

/* LOGIN PAGE */
.cp-login {
  min-height: calc(100vh - var(--header-h, 0px) - var(--footer-h, 0px));
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
  position: relative;
}

.cp-login__title {
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cp-blue, #2f5cff);
}

.cp-login__card {
  width: min(920px, 92vw);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.cp-login__form {
  width: 100%;
}

.cp-login__field {
  margin-bottom: 1.5rem;
}

.cp-login__label {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  color: rgba(0, 0, 0, 0.85);
}

.cp-login__input {
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(0,0,0,0.04);
  outline: none;
  font-size: 1.05rem;
}

.cp-login__input:focus {
  border-color: rgba(47, 92, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 92, 255, 0.18);
  background: rgba(0,0,0,0.03);
}

.cp-login__error {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #b00020;
}

.cp-login__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.cp-login__btn {
  color: black;
  min-width: 220px;
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--cp-blue, #2f5cff);
  background: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.cp-login__btn:hover {
  transform: translateY(-1px);
}

.cp-login__btn:active {
  transform: translateY(0px);
}

/* Optional bottom-left little “walker” placeholder */
.cp-login__walker {
  position: absolute;
  left: 2.2rem;
  bottom: 2.2rem;
  width: 46px;
  height: 46px;
  opacity: 0.85;
  background: radial-gradient(circle at 55% 30%, transparent 10px, rgba(0,0,0,0.7) 11px, rgba(0,0,0,0.7) 12px, transparent 13px);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .cp-login__card {
    width: min(720px, 94vw);
  }
  .cp-login__label {
    font-size: 1.15rem;
  }
  .cp-login__walker {
    left: 1.25rem;
    bottom: 1.25rem;
    width: 38px;
    height: 38px;
  }
}


/* Keep content centered like Figma */
.cp-shell{
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
}


/* --- HERO spacing closer to Figma --- */
.cp-hero{
  padding: 64px 0 10px;
}
.cp-hero-logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 28px;
}
.cp-hero-x{
  font-size: 28px;
  line-height: 1;
}
.cp-hero-tagline{
  margin: 22px auto 0;
  text-align:center;
  max-width: 820px;
}

/* --- FEATURED section gets the soft blue background wash --- */
.cp-featured{
  margin-top: 38px;
  padding: 26px 0 56px;
}

/* top row: filter left, bell-ish placeholder near first card */
.cp-featured-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 18px;
}
.cp-filter-btn{
  border-radius: 999px;
  padding: 10px 14px;
}

/* horizontal carousel like Figma */
.cp-carousel{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cp-carousel-item{
  flex: 0 0 260px;          /* key: card size like Figma */
  scroll-snap-align: start;
}

/* optional: hide scrollbar (keeps it clean) */
.cp-carousel::-webkit-scrollbar{ height: 8px; }
.cp-carousel::-webkit-scrollbar-thumb{ border-radius: 999px; }

/* centered "Ver todos" button */
.cp-featured-bottom{
  display:flex;
  justify-content:center;
  margin-top: 18px;
}
.cp-btn--ghost{
  border-radius: 999px;
  padding: 10px 22px;
}

/* --- MAP section layout closer to Figma --- */
.cp-map{
  padding: 64px 0 80px;
  position: relative;
}

/* faint grid-ish background (placeholder for your wavy grid) */
.cp-map::before{
  content:"";
  position:absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events:none;
}

.cp-map-header{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.cp-map-body{
  position: relative;
  z-index: 1;
  display:flex;
  justify-content:center;
}

.cp-map-art{
  width: min(860px, 100%);
  display:flex;
  justify-content:center;
}
.cp-map-art img{
  width: 100%;
  height: auto;
  display:block;
}

/* floating stat (top-right of map area, like Figma) */
.cp-map-stat-floating{
  display:flex;
  align-items:baseline;
  gap: 10px;
  padding-top: 14px;
}

/* responsive: tighter padding on mobile */
@media (max-width: 720px){
  .cp-shell{ width: calc(100% - 32px); }
  .cp-map-header{ flex-direction: column; }
  .cp-carousel-item{ flex-basis: 78vw; }
}

/* =========================================
   HOMEPAGE – FIGMA OVERRIDES (paste last)
   ========================================= */

/* HERO */
.cp-home{ gap: 0; padding-top: 10px; }
.cp-hero{
  min-height: 520px;
  padding: 54px 0 12px;
  display: grid;
  place-items: center;
}
.cp-hero .cp-shell{ text-align: center; }
.cp-hero-logos{
  margin-top: 10px;
  justify-content: center;
  gap: 26px;
}
.cp-hero-logo-left img,
.cp-hero-logo-right img{
  height: auto; 
  width: auto;
  display:block;
}
.cp-hero-x{ font-size: 34px; }
.cp-hero-tagline{
  margin: 20px auto 0;
  max-width: 760px;
}

/* FEATURED background wash + spacing */
.cp-featured{
  margin-top: 36px;
  padding: 22px 0 62px;
}
.cp-featured-top{
  margin-bottom: 14px;
}
.cp-filter-btn{
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
}
.cp-carousel{
  padding: 10px 4px 18px;
  gap: 18px;
}
.cp-carousel-item{
  flex: 0 0 270px; /* card width like screenshot */
}

/* Make homepage cards exactly your cp-hcard look (already defined) */
.cp-hcard{ border-radius: 14px; }
.cp-hcard-image{ height: 150px; }
.cp-hcard-title{ letter-spacing: .05em; text-transform: uppercase; }

/* MAP SECTION centered like Figma screenshot */
.cp-map{
  padding: 66px 0 92px;
  position: relative;
}
.cp-map::before{
  content:"";
  position:absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events:none;
}
.cp-map > .cp-shell{ position: relative; z-index: 1; }

.cp-map-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.cp-map-stage{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top: 6px;
}
.cp-map-img{
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height:auto;
  display:block;
}

/* Mobile */
@media (max-width: 720px){
  .cp-shell{ width: calc(100% - 32px); }
  .cp-map-head{ flex-direction: column; }
  .cp-carousel-item{ flex-basis: 78vw; }
  .cp-hero-logo-left img,
  .cp-hero-logo-right img{ height: 72px; }
}



/* ===== Global background (Figma style) ===== */
.cp-page{
  min-height: 100vh;
  background: #ffffff;
}

/* Fixed background layer */
.cp-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      900px 700px at 38% 58%,
      rgba(235, 244, 255, 0.9) 0%,
      rgba(255, 255, 255, 1) 65%
    ),
    url("/assets/fondo-azul.png");

  background-repeat: no-repeat;
  background-size: 1000px auto;
  background-position: 35% 55%;
}

/* Ensure content stays above */
.cp-app{
  position: relative;
  z-index: 1;
}
