/*
 * cassiopeia_rancho — user.css
 * Rules not covered by Bootstrap 5 / Cassiopeia
 */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Karla:wght@400;600&display=swap");

/* ==========================================================================
   1. root variables (overrides)
   ========================================================================== */
:root {
  --rf-navy: #21266d;
  --rf-night: #101336;
  --rf-night-2: #161a4a;
  --rf-green: #1f6b45;
  --rf-green-dark: #175435;
  --rf-mint: #7fc4a0;
  --rf-mint-light: #e6f0ea;
  --rf-cream: #f5f3ec;
  --rf-gray: #3e423e;
  --rf-line: #e2e0d8;
  --rf-font-display: "Archivo", sans-serif;
  --rf-font-body: "Karla", sans-serif;

  --text-muted: var(--rf-gray);

  --cassiopeia-color-primary: var(--rf-navy);
  --cassiopeia-color-link: var(--rf-green);
  --cassiopeia-color-hover: var(--rf-green-dark);
}

/* ==========================================================================
   2. Base / fonts / color utilities
   ========================================================================== */

body {
  font-family: var(--rf-font-body);
}

:focus-visible,
.accordion-button:focus,
.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.bg-rf-navy {
  background-color: var(--rf-navy);
}
.bg-rf-night {
  background-color: var(--rf-night);
}
.bg-rf-night-2 {
  background-color: var(--rf-night-2);
}
.bg-rf-green-dark {
  background-color: var(--rf-green-dark);
}
.bg-rf-mint-light {
  background-color: var(--rf-mint-light);
}
.bg-rf-cream {
  background-color: var(--rf-cream);
}
.text-rf-navy {
  color: var(--rf-navy);
}
.text-rf-green {
  color: var(--rf-green);
}
.text-rf-mint {
  color: var(--rf-mint);
}
.text-rf-gray {
  color: var(--rf-gray) !important;
}
.rf-border {
  border-color: var(--rf-line) !important;
}
.rf-border-light {
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.rf-border-mint {
  border-color: var(--rf-mint) !important;
}

.rf-display,
.rf-h2,
.rf-h3,
.rf-eyebrow,
.rf-rate-value,
.rf-name,
.rf-phone {
  font-family: var(--rf-font-display);
}
.rf-h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rf-h2-app {
  font-size: 1.875rem;
}
.rf-h3 {
  font-size: 1rem;
  font-weight: 600;
}
.rf-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rf-lead {
  font-size: 1.03rem;
}
.rf-lead-sm {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.78);
}
.rf-link-mint {
  color: var(--rf-mint);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 196, 160, 0.5);
}
.rf-link-green {
  color: var(--rf-green);
}
.rf-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}
.rf-divider-lg {
  height: 30px;
  background: var(--rf-line);
}

/* Buttons */
.rf-btn,
.rf-btn-outline {
  font-family: var(--rf-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.8rem 1.5rem;
}
.rf-btn {
  background: var(--rf-green);
  color: #fff;
  border: 0;
}
.rf-btn:hover,
.rf-btn:focus {
  background: var(--rf-green-dark);
  color: #fff;
}
.rf-btn-outline {
  background: #fff;
  color: var(--rf-navy);
  border: 1px solid var(--rf-line);
  padding: 0.6rem 0.85rem;
}

.rf-btn-outline:hover,
.rf-btn-outline:focus {
  background: var(--rf-navy);
  color: #fff;
}

.btn-outline-secondary {
  color: #626970;
  border-color: #626970;
}

/* ==========================================================================
   3. Homepage — sections
   ========================================================================== */

/* 3.1 alert */
.rf-lead-sm strong {
  font-size: 1.09rem;
}

/* 3.2 topbar */
.rf-topbar a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  text-decoration: none;
}
.rf-topbar a.rf-eyebrow {
  color: var(--rf-mint);
  font-size: 0.72rem;
}

/* 3.3 below-top (header) */
.rf-logo {
  height: 22px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.rf-logo.rancho {
  height: 40px;
}

/* Main menu (mod_menu, layout collapse-metismenu): */
.rf-header {
  position: relative;
}
.rf-header .navbar {
  position: static;
  flex-grow: 1;
  padding: 0;
}
.rf-header .navbar-toggler {
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  color: var(--rf-navy);
  border: 1px solid var(--rf-line);
  border-radius: 0;
  background: #fff;
}
.rf-header .metismenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rf-header .metismenu a,
.mod-menu button {
  display: block;
  font-family: var(--rf-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rf-navy) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.rf-header .metismenu a:hover,
.rf-header .metismenu .active > a {
  color: var(--rf-green);
}
.container-nav {
  flex-wrap: wrap;
}
.metismenu.mod-menu .mm-toggler:after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #21266d;
  font-size: 0.6875rem;
  border: none;
  width: auto;
  height: auto;
  margin-inline-start: 0.5em;
  transition: all 0.3s ease-out;
}

.metismenu.mod-menu .mm-toggler {
  margin-inline-start: 0.5em;
}

.mobile-menu .navbar-toggler {
  display: none;
}

.metismenu.mod-menu .metismenu-item {
  padding: 0.5em 0.5rem;
}

.resources-calc-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}
.resources-calc-card:hover,
.resources-calc-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 43, 73, 0.08) !important;
}
.resources-calc-card .calc-link-text {
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.3s ease;
}
.resources-calc-card .calc-arrow {
  transition: transform 0.3s ease;
}
.resources-calc-card:hover .calc-arrow,
.resources-calc-card:focus-within .calc-arrow {
  transform: translateX(6px);
}

.resource-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.resource-list li {
  margin-bottom: 0.6rem;
}
.resource-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: inline-block;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.resource-list a:hover,
.resource-list a:focus {
  color: var(--primary);
  transform: translateX(4px);
}

.rancho-contact-page,
.rancho-contact-page *,
.rancho-contact-page *::before,
.rancho-contact-page *::after {
  box-sizing: border-box;
}

.rancho-contact-page a {
  color: var(--rf-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rancho-contact-page a:hover {
  color: var(--rf-night);
  text-decoration: underline;
}

/* Header */
.rancho-contact-page .contact-header {
  margin-bottom: 50px;
}

/* Grid Layouts */
.rancho-contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.rancho-contact-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Contact Cards (Top Row) */
.rancho-contact-page .contact-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rancho-contact-page .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.rancho-contact-page .card-icon {
  background: #f3f0fc;
  color: var(--rf-navy);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.rancho-contact-page .contact-card h3 {
  color: var(--rf-navy);
  margin: 0 0 15px;
  font-size: 1.3rem;
}

.rancho-contact-page .contact-card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.rancho-contact-page .card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

/* Info Blocks (Middle & Bottom) */
.rancho-contact-page .info-section,
.rancho-contact-page .bottom-info {
  margin-bottom: 50px;
}

.rancho-contact-page .info-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  border-top: 4px solid var(--rf-navy);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.rancho-contact-page .info-block h3 {
  margin: 0 0 20px;
  color: var(--rf-navy);
  font-size: 1.4rem;
}

.rancho-contact-page .info-block p {
  margin: 0 0 15px;
  font-size: 0.95rem;
}

.rancho-contact-page .employment-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Locations Section */
.rancho-contact-page .locations-section {
  margin-bottom: 50px;
}

.rancho-contact-page .locations-section h2 {
  text-align: center;
  color: var(--rf-navy);
  font-size: 2rem;
  margin: 0 0 40px;
}

.rancho-contact-page .locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.rancho-contact-page .location-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rancho-contact-page .location-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rancho-contact-page .location-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rancho-contact-page .location-details h3 {
  margin: 0 0 5px;
  color: var(--rf-navy);
  font-size: 1.3rem;
}

.rancho-contact-page .location-details h3 span {
  font-weight: normal;
  font-size: 1rem;
  color: #666;
}

.rancho-contact-page .sub-location {
  font-style: italic;
  color: #777;
  margin: 0 0 15px !important;
  font-size: 0.9rem;
}

.rancho-contact-page .location-details p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.rancho-contact-page .atm-note {
  font-size: 0.85rem;
  background: #f3f0fc;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--rf-navy);
  margin-bottom: 20px !important;
}

.rancho-contact-page .location-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
}

/* Buttons */
.rancho-contact-page .btn-primary,
.rancho-contact-page .btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.rancho-contact-page .btn-primary {
  background-color: var(--rf-navy);
  color: #ffffff;
  border: 1px solid var(--rf-navy);
}

.rancho-contact-page .btn-primary:hover {
  background-color: var(--rf-night);
  color: #ffffff;
  text-decoration: none;
}

.rancho-contact-page .btn-secondary {
  background-color: transparent;
  color: var(--rf-navy);
  border: 1px solid var(--rf-navy);
}

.rancho-contact-page .btn-secondary:hover {
  background-color: #f3f0fc;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rancho-contact-page .info-grid {
    grid-template-columns: 1fr;
  }

  .rancho-contact-page .location-links {
    flex-direction: column;
  }
}

figcaption {
  color: #fff !important;
}

/* < lg: mobile menu */
@media (max-width: 991.98px) {
  .rf-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--rf-line);
    box-shadow: 0 0.75rem 1rem rgba(0, 0, 0, 0.12);
  }
  .rf-header .metismenu li + li {
    border-top: 1px solid var(--rf-line);
  }
  .rf-header .metismenu a {
    padding: 0.9rem 1.5rem;
  }
  .rf-header .metismenu ul {
    list-style: none;
    padding: 0 0 0 1rem;
  }
}

/* >= lg: submenus */
@media (min-width: 992px) {
  .rf-header .navbar-toggler {
    display: none;
  }
  .rf-header .metismenu {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .rf-header .metismenu li {
    width: auto;
  }
  /* .rf-header .metismenu a { padding: 1.6rem .75rem; } */
  .rf-header .metismenu > li {
    position: relative;
  }
  .rf-header .metismenu ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    z-index: 1030;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: #fff;
    border: 1px solid var(--rf-line);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  }
  .rf-header .metismenu ul a {
    padding: 0.6rem 1rem;
  }
}

/* 3.4 banner (homepage): slide description over image */
.banner .djslider .slide-desc {
  top: 50%;
  bottom: auto !important;
  transform: translateY(-50%);
  left: max(1rem, calc((100% - 1180px) / 2)) !important;
  width: calc(100% - 2rem) !important;
  max-width: 470px;
}
.banner .djslider .slide-desc-bg {
  display: none;
}
.banner .djslider .slide-desc-text {
  padding: 0;
}
.rf-hero-card h2 {
  font-size: 2.25rem;
  line-height: 1.13;
  letter-spacing: -0.025em;
}
.rf-hero-card {
  margin: 0;
}
@media (max-width: 767.98px) {
  .banner .djslider .slide-desc {
    top: auto;
    bottom: 1rem !important;
    transform: none;
  }
  .rf-hero-card {
    padding: 1rem !important;
  }
  .rf-hero-card h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .banner .djslider .slide-desc {
    bottom: 0.5rem !important;
    left: 0.5rem !important;
    width: calc(100% - 1rem) !important;
  }
  .rf-hero-card {
    padding: 0.75rem !important;
    border-left-width: 3px !important;
  }
  .rf-hero-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem !important;
  }
  .rf-hero-card p {
    display: none;
  }
  .rf-hero-card .btn {
    padding: 0.45rem 0.9rem;
  }
}

/* 3.5 top-a (rates) */
.rf-rate {
  padding: 0 1.4rem 1.9rem;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}
.rf-rate .rf-eyebrow {
  color: var(--rf-gray);
  letter-spacing: 0.08em;
}
.rf-rate-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--rf-navy);
}
.rf-rate-value small {
  font-family: var(--rf-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--rf-gray);
  margin-left: 0.2rem;
}
.rf-rate-featured {
  border-left: 3px solid var(--rf-green);
}
.rf-rate-featured .rf-eyebrow,
.rf-rate-featured .rf-rate-value,
.rf-rate-featured .rf-rate-value small {
  color: var(--rf-green-dark);
}
.rf-rate-featured .rf-rate-value {
  font-size: 2.875rem;
}

/* 3.6 top-b (solutions center) */
.rf-faq {
  color: var(--rf-navy);
  font-family: var(--rf-font-display);
  font-weight: 500;
  font-size: 0.97rem;
}
.rf-faq:hover {
  color: var(--rf-green);
}

/* 3.7 main-top (featured services) */
.rf-icon-box {
  width: 36px;
  height: 36px;
}
@media (min-width: 768px) {
  .rf-feature:nth-child(n + 4) {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }
  .rf-feature:not(:nth-child(3n + 1)) {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
  }
}

/* 3.8 main-bottom (testimonials) */
.rf-quote {
  font-family: var(--rf-font-display);
  font-size: 1.19rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.rf-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
@media (min-width: 768px) {
  .border-md-start {
    border-left: 1px solid;
  }
}

/* 3.9 bottom-a (app) */
.rf-store {
  border-radius: 0.6rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
}
.rf-store small {
  font-size: 0.6rem;
}
.rf-app-img {
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}

/* 3.10 bottom-b (contact / branches) */
.rf-phone {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* 3.11 footer */
.rf-foot-link {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}
.rf-foot-link:hover {
  color: #fff;
}
.rf-social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.rf-social:hover {
  color: #fff;
}

.rf-badge {
  height: 34px;
  width: auto;
  opacity: 0.86;
}

/* ==========================================================================
   4. Internal articles
   ========================================================================== */
/* Page title */
.rf-h1 {
  font-family: var(--rf-font-display);
  font-size: 2.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.rf-page-title {
  min-height: 200px;
}
.rf-page-title__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (min-width: 992px) {
  .rf-page-title__img {
    width: 445px;
  }
}

/* Intro + At a Glance + rates table */
.rf-glance {
  border-top: 3px solid var(--rf-green);
  background-color: #e6f0ea;
}
.rf-table {
  --bs-table-bg: transparent;
  border-color: var(--rf-line);
}
.rf-table thead th {
  background: var(--rf-navy);
  color: #fff;
  font-family: var(--rf-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border: 0;
}
.rf-table td {
  padding: 1rem 1.25rem;
  color: var(--rf-navy);
  border-color: var(--rf-line);
  font-weight: 600;
}
.rf-table tbody td:nth-child(2) {
  color: var(--rf-gray);
  font-weight: 500;
}

/* Cross-sell (main-bottom) */
.rf-h3-lg {
  font-size: 1.375rem;
}
.rf-icon-box-lg {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rf-line);
}
@media (min-width: 992px) {
  .rf-xsell:first-child {
    padding-right: 2.5rem;
  }
  .rf-xsell + .rf-xsell {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
  }

  .article-sidebar {
    flex: 0 0 360px;
  }
}

/* Offline module */
.offline-card .header {
  background: #191b4a;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.article-alert {
  margin-top: 2rem;
  background: var(--rf-mint-light);
  border-left: 5px solid var(--rf-mint);
  padding: 20px;
}

/* ==========================================================================
   5. Responsive (media queries)
   ========================================================================== */
@media (max-width: 575.98px) {
  .rf-rate-value {
    font-size: 2rem;
  }
}

/* ==========================================================================
   6. Slider "Unlock Your Home's Potential" (bottom-a position)
   ========================================================================== */
div.bottom-a {
  padding: 3rem 1rem;
  background: #fff;
}
.bottom-a .djslider {
  background: var(--rf-navy);
  border-left: 5px solid var(--rf-mint);
}
.bottom-a ul.djslider-in > li {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: calc(100% - 3rem) !important;
  text-align: left; /* el tema DJ fuerza padding:0: el aire va por width y margin */
}
.bottom-a img.dj-image {
  width: 400px !important;
  height: 220px !important;
  object-fit: cover;
  flex-shrink: 0;
}
.bottom-a .slide-desc {
  margin-left: 3rem;
  position: static !important;
  width: auto !important;
  flex: 1;
  bottom: auto !important;
  left: auto !important;
}
.bottom-a .slide-desc-bg {
  display: none;
}
.bottom-a .slide-desc-text {
  padding: 0;
}
.rf-offer__title {
  font-family: var(--rf-font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.rf-offer__text {
  color: rgba(255, 255, 255, 0.74);
  max-width: 28rem;
}

/* < lg: below desktop */
@media (max-width: 991.98px) {
  .bottom-a .djslider,
  .bottom-a .slider-container,
  .bottom-a ul.djslider-in {
    width: 100% !important;
    height: auto !important;
  }
  .bottom-a .slider-container {
    position: relative !important;
  }
  .bottom-a .djslider {
    padding: 1.25rem;
  }
  .bottom-a .slide-desc {
    margin-left: 0;
  }
  .bottom-a ul.djslider-in > li {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .bottom-a img.dj-image {
    width: 100% !important;
  }
}
