/* ═══════════════════════════════════════════
   Ayllu Pages — Shared Design System
   ═══════════════════════════════════════════ */

.ayllu-page {
  --rose: #a3888c;
  --rose-dark: #8b6b6b;
  --orange: #f47820;
  --dark: #1a1719;
  --cream: #faf7f5;
  --gold: #c9a87c;
  --white: #ffffff;
  --text-muted: #6b6568;
  width: 100%;
  max-width: 100%;
}

.ayllu-main {
  min-height: 50vh;
}

/* ─── Page Hero ─── */
.ayllu-page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
  padding: 150px 24px 56px;
  box-sizing: border-box;
}

.ayllu-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 16, 17, 0.32) 0%,
    rgba(18, 16, 17, 0.2) 40%,
    rgba(18, 16, 17, 0.38) 100%
  );
  z-index: 0;
}

.ayllu-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 55%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
  z-index: 0;
}

.ayllu-page-hero__content {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 40px 28px;
  background: rgba(18, 16, 17, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
}

.ayllu-page-hero__eyebrow {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(244, 120, 32, 0.45);
}

.ayllu-page-hero__title {
  font-family: "Gilda Display", serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 14px;
}

.ayllu-page-hero__subtitle {
  font-family: "Jost", sans-serif;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 560px;
}

.ayllu-page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 22px;
  padding: 9px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ayllu-page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.ayllu-page-hero__breadcrumb a:hover {
  color: var(--orange);
}

.ayllu-page-hero__breadcrumb span:nth-child(2) {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.ayllu-page-hero__breadcrumb span:last-child {
  color: var(--orange);
  font-weight: 700;
}

/* ─── Section Head ─── */
.ayllu-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.ayllu-section-head__eyebrow {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.ayllu-section-head h2 {
  font-family: "Gilda Display", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.ayllu-section-head p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── Section Padding ─── */
.ayllu-section {
  padding: 80px 0;
}

.ayllu-section--cream {
  background: var(--cream);
}

.ayllu-section--white {
  background: var(--white);
}

.ayllu-section--dark {
  background: linear-gradient(160deg, var(--dark) 0%, #2d2428 100%);
}

.ayllu-section--dark .ayllu-section-head h2,
.ayllu-section--dark .ayllu-section-head p {
  color: var(--white);
}

.ayllu-section--dark .ayllu-section-head p {
  opacity: 0.78;
}

/* ─── Buttons ─── */
.ayllu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 50px;
  padding: 13px 28px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.ayllu-btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(244, 120, 32, 0.3);
}

.ayllu-btn--primary:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
}

.ayllu-btn--outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}

.ayllu-btn--outline:hover {
  background: var(--rose);
  color: var(--white);
}

.ayllu-btn--white {
  background: var(--white);
  color: var(--dark);
}

.ayllu-btn--white:hover {
  background: var(--orange);
  color: var(--white);
}

.ayllu-btn--sm {
  padding: 10px 18px;
  font-size: 0.82rem;
  gap: 6px;
}

.ayllu-btn--sm iconify-icon {
  font-size: 1rem;
}

.ayllu-btn.w-100 {
  width: 100%;
  justify-content: center;
}

.ayllu-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Photo collage (masonry, sin huecos) ─── */
.ayllu-photo-collage {
  column-count: 3;
  column-gap: 12px;
  line-height: 0;
}

.ayllu-photo-collage--single {
  column-count: 1;
  max-width: 560px;
}

.ayllu-photo-collage__item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 23, 25, 0.08);
}

.ayllu-photo-collage__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.ayllu-photo-collage__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .ayllu-photo-collage {
    column-count: 2;
  }
}

@media (max-width: 575px) {
  .ayllu-photo-collage {
    column-count: 1;
  }
}

/* ─── Cards Grid ─── */
.ayllu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ─── Event / Service Card ─── */
.ayllu-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(26, 23, 25, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ayllu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(163, 136, 140, 0.16);
}

.ayllu-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.ayllu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ayllu-card:hover .ayllu-card__img img {
  transform: scale(1.06);
}

.ayllu-card__body {
  padding: 24px;
}

.ayllu-card__body h3 {
  font-family: "Gilda Display", serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0 0 10px;
}

.ayllu-card__body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.ayllu-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ayllu-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--rose-dark);
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 50px;
}

.ayllu-card__tag i {
  color: var(--orange);
  font-size: 0.75rem;
}

/* ─── Value Cards ─── */
.ayllu-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 24px;
  justify-content: center;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.ayllu-value-card {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(163, 136, 140, 0.08);
  transition: all 0.35s ease;
}

.ayllu-value-card:hover {
  border-color: var(--rose);
  box-shadow: 0 12px 36px rgba(163, 136, 140, 0.12);
  transform: translateY(-4px);
}

.ayllu-value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.ayllu-value-card__icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.ayllu-value-card h3 {
  font-family: "Gilda Display", serif;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.ayllu-value-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── About Split ─── */
.ayllu-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ayllu-about-split__img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(26, 23, 25, 0.12);
}

.ayllu-about-split__img img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ayllu-about-split__content h2 {
  font-family: "Gilda Display", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.ayllu-about-split__content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.ayllu-about-split__text {
  white-space: pre-line;
}

/* ─── Mission / Vision ─── */
.ayllu-mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ayllu-mission-vision-card {
  background: var(--white);
  border: 1px solid rgba(163, 136, 140, 0.12);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 12px 36px rgba(26, 23, 25, 0.06);
}

.ayllu-mission-vision-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 1.5rem;
}

.ayllu-mission-vision-card h3 {
  font-family: "Gilda Display", serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.ayllu-mission-vision-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
}

/* ─── Contact Info Cards ─── */
.ayllu-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.ayllu-contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(163, 136, 140, 0.1);
  transition: all 0.3s ease;
}

.ayllu-contact-card:hover {
  border-color: var(--rose);
  box-shadow: 0 8px 28px rgba(163, 136, 140, 0.12);
}

.ayllu-contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ayllu-contact-card__icon i {
  font-size: 1.4rem;
  color: var(--orange);
}

.ayllu-contact-card h3 {
  font-family: "Gilda Display", serif;
  font-size: 1.55rem !important;
  color: var(--dark);
  margin-bottom: 8px;
}

.ayllu-contact-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Contact Form ─── */
.ayllu-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(26, 23, 25, 0.06);
  border: 1px solid rgba(163, 136, 140, 0.1);
}

.ayllu-form .form-control {
  border: 1px solid rgba(163, 136, 140, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Jost", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.ayllu-form .form-control:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(163, 136, 140, 0.15);
  outline: none;
}

.ayllu-form textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.ayllu-form .submit-area {
  margin-top: 8px;
}

/* ─── Map ─── */
.ayllu-map {
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.ayllu-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(20%);
}

/* ─── Presupuestador Shell ─── */
.ayllu-budget-shell {
  background: var(--cream);
  padding: 48px 0 80px;
}

.ayllu-budget-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(26, 23, 25, 0.06);
  border: 1px solid rgba(163, 136, 140, 0.1);
}

.ayllu-budget-card .form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.88rem;
}

.ayllu-budget-card .form-control,
.ayllu-budget-card .form-select {
  border-radius: 10px;
  border-color: rgba(163, 136, 140, 0.25);
}

.ayllu-budget-card .form-control:focus,
.ayllu-budget-card .form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(163, 136, 140, 0.12);
}

/* ─── Loading ─── */
.ayllu-page-loading {
  text-align: center;
  padding: 80px 24px;
}

.ayllu-page-loading__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(163, 136, 140, 0.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: aylluPageSpin 0.75s linear infinite;
}

.ayllu-page-loading p {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

@keyframes aylluPageSpin {
  to { transform: rotate(360deg); }
}

/* ─── Success Message ─── */
.ayllu-success {
  text-align: center;
  padding: 80px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.ayllu-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.35rem;
  color: #28a745;
}

.ayllu-success h2 {
  font-family: "Gilda Display", serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.ayllu-success p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ─── Nav Active State ─── */
.wpo-site-header.wpo-header-style-2 #navbar > ul > li > a.nav-active {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1200px) {
  .wpo-site-header.wpo-header-style-2 #navbar > ul > li > a.nav-active::before {
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--orange) !important;
    height: 3px;
  }
}

.wpo-site-header .navigation.sticky-on #navbar > ul > li > a.nav-active {
  color: #fff !important;
}

@media (max-width: 991px) {
  .wpo-site-header #navbar > ul > li > a.nav-active {
    color: #fff !important;
    background: rgba(244, 120, 32, 0.22);
    border-left: 3px solid var(--orange);
    padding-left: 27px !important;
  }
}

/* ─── Header tablet / mobile ─── */
@media (max-width: 1199px) {
  .wpo-site-header {
    padding: 0 !important;
  }

  .wpo-site-header .topbar {
    display: none !important;
  }

  .wpo-site-header.wpo-header-style-2 {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #141214;
  }

  .wpo-site-header.wpo-header-style-2 .navigation {
    background: #141214 !important;
    padding: 10px 16px !important;
  }

  .wpo-site-header.wpo-header-style-2 .navigation::before {
    display: none;
  }

  .wpo-site-header .navigation .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .wpo-site-header .mobail-menu button {
    background-color: rgba(255, 255, 255, 0.12);
    width: 42px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 5px 10px;
    outline: 0;
    position: relative;
    z-index: 1002;
  }

  .wpo-site-header .mobail-menu button span {
    background-color: #fff;
    width: 20px;
    display: block;
    height: 2px;
    margin-bottom: 5px;
  }

  .wpo-site-header .mobail-menu button span:last-child {
    margin: 0;
  }

  .wpo-site-header .navbar-header .open-btn,
  .wpo-site-header .mobail-menu .open-btn {
    display: block !important;
  }

  .wpo-site-header #navbar {
    background: #1a1719;
    display: block !important;
    width: min(320px, 88vw);
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    position: fixed;
    left: -340px;
    top: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: left 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.28);
  }

  .wpo-site-header #navbar .navbar-nav {
    display: block;
    height: 100%;
    overflow: auto;
    padding: 8px 0 60px;
  }

  .wpo-site-header #navbar > ul > li > a {
    color: #fff !important;
    padding: 15px 24px !important;
    display: block;
    font-size: 0.95rem;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .wpo-site-header #navbar > ul .menu-item-has-children > a::before {
    display: none !important;
  }

  .wpo-site-header .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 18px 18px 8px auto;
    width: 40px;
    height: 40px;
  }

  .wpo-site-header #navbar.slideInn,
  .wpo-site-header #navbar.ayllu-menu-open {
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .wpo-site-header .navbar-toggler .first-angle,
  .wpo-site-header .navbar-toggler .last-angle {
    transition: all 0.3s;
  }

  .wpo-site-header .x-close .middle-angle {
    opacity: 0;
  }

  .wpo-site-header .x-close .first-angle {
    position: absolute;
    transform: rotate(-44deg);
    top: 16px;
    left: 10px;
  }

  .wpo-site-header .x-close .last-angle {
    transform: rotate(44deg);
    position: absolute;
    top: 16px;
    right: 10px;
  }

  .wpo-site-header .header-right {
    z-index: auto;
    right: auto !important;
    position: relative;
  }

  .wpo-site-header #navbar > ul > li > a.nav-active {
    color: #fff !important;
    background: rgba(244, 120, 32, 0.18);
    border-left: 3px solid var(--orange);
    padding-left: 21px !important;
  }

  /* Banners: el header ya no flota encima */
  .ayllu-page-hero {
    min-height: 340px;
    padding: 40px 20px 44px;
  }

  .ayllu-page-hero__content {
    width: calc(100% - 16px);
    padding: 24px 20px 20px;
  }

  .ayllu-page-hero--compact {
    min-height: 300px;
    padding: 36px 20px 40px;
  }
}

@media (max-width: 767px) {
  .ayllu-page-hero {
    min-height: 320px;
    padding: 32px 16px 36px;
  }

  .ayllu-page-hero__content {
    width: calc(100% - 8px);
    padding: 22px 18px 18px;
  }

  .ayllu-page-hero__title {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .ayllu-page-hero__subtitle {
    font-size: 0.9rem;
  }
}

body.ayllu-nav-open {
  overflow: hidden;
}

/* CTA header */
.wpo-site-header .header-right .theme-btn {
  font-size: 0.82rem !important;
  padding: 11px 20px !important;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}

@media (max-width: 450px) {
  .wpo-site-header .header-right {
    right: auto !important;
  }

  .wpo-site-header .header-right > div {
    margin-right: 0;
  }
}

.wpo-site-footer.mt-5 {
  margin-top: 0 !important;
}

/* Botón volver arriba (script legacy) */
.back-to-top {
  background: #f47820 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(244, 120, 32, 0.4) !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.back-to-top:hover {
  background: #a3888c !important;
  transform: translateY(-3px) !important;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .ayllu-about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ayllu-mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .ayllu-contact-grid {
    grid-template-columns: 1fr;
  }

  .ayllu-section {
    padding: 64px 0;
  }
}

@media (max-width: 767px) {
  .ayllu-form {
    padding: 28px 20px;
  }

  .ayllu-budget-card {
    padding: 20px 16px;
  }

  .ayllu-values-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ─── Portal Auth (login / registro) ─── */
.ayllu-page-hero--compact {
  min-height: 360px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.ayllu-portal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 48px rgba(26, 23, 25, 0.08);
  border: 1px solid rgba(163, 136, 140, 0.12);
}

.ayllu-portal-card__head {
  text-align: center;
  margin-bottom: 28px;
}

.ayllu-portal-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 120, 32, 0.12);
  color: var(--orange);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.ayllu-portal-card__head h2 {
  font-family: "Gilda Display", serif;
  font-size: 1.55rem;
  color: var(--dark);
  margin: 0 0 8px;
}

.ayllu-portal-card__head p {
  font-family: "Jost", sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.ayllu-portal-card__footer {
  text-align: center;
  margin: 24px 0 0;
  font-family: "Jost", sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ayllu-portal-card__footer a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.ayllu-portal-card__footer a:hover {
  color: var(--rose-dark);
}

.ayllu-form--portal .form-control {
  margin-bottom: 0;
}

.ayllu-field {
  margin-bottom: 18px;
}

.ayllu-field__label {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.ayllu-field__hint {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.ayllu-field__error {
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  color: #c0392b;
  margin: 8px 0 0;
}

.ayllu-field__success {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  color: #1e7e34;
  margin: 8px 0 0;
}

.ayllu-form .form-control.is-invalid {
  border-color: #e57373;
  box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.15);
}

.ayllu-form .form-control.is-valid {
  border-color: #66bb6a;
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.12);
}

.ayllu-password-field {
  position: relative;
}

.ayllu-password-field .form-control {
  padding-right: 48px;
}

.ayllu-password-field__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ayllu-password-field__toggle:hover {
  color: var(--orange);
}

.ayllu-doc-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ayllu-doc-field .form-control {
  flex: 1;
}

.ayllu-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: "Jost", sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.ayllu-alert iconify-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ayllu-alert--error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.18);
  color: #922b21;
}

.ayllu-alert--success {
  background: rgba(30, 126, 52, 0.08);
  border: 1px solid rgba(30, 126, 52, 0.18);
  color: #1e5631;
}

@media (max-width: 767px) {
  .ayllu-portal-card {
    padding: 28px 20px;
  }

  .ayllu-doc-field {
    flex-direction: column;
  }

  .ayllu-doc-field .ayllu-btn {
    width: 100%;
    justify-content: center;
  }
}
