html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: #1f2b3a;
}

section {
    position: relative;
}

section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.25);
    opacity: 0.9;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
}

.navbar-nav {
    flex: 1 1 auto;
    justify-content: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #1f2b3a;
    font-size: 1rem;
    padding: 0.85rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: #0a4778;
}

.lang-trigger {
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-actions {
    width: 100%;
}

.nav-cta-btn {
    white-space: nowrap;
}

.hero {
    background: linear-gradient(135deg, #06173c, #0a4778);
    color: #fff;
    padding: 5rem 0;
}

.hero .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-keyword {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f6f8fb;
}

.section-light {
    background: #f4f7fb;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a4778;
    font-size: 1.5rem;
}

.cta-banner {
    background: radial-gradient(circle at top, #0a4778, #031229);
    color: #fff;
}

.keyword-cloud span {
    font-size: 0.95rem;
    color: #0a4778;
    border: 1px solid #d4e5ff;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    margin: 0.3rem;
    display: inline-block;
}

.contact-card {
    border-radius: 1rem;
    border: 1px solid #e0e7f1;
    padding: 2rem;
    background: #052c65;
    box-shadow: 0 20px 35px rgba(10, 71, 120, 0.08);
    color: #f5f8ff;
}

.contact-card .text-secondary {
    color: #c8d6f4 !important;
}

.contact-card a {
    color: #8ed0ff;
}

.contact-card a:hover {
    color: #c4e3ff;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #7ec4ff, #3f8efc);
    color: #031839 !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(10, 71, 120, 0.25);
}

.btn-cta-primary:hover {
    color: #020d21 !important;
    transform: translateY(-1px);
}

.btn-unidades {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    animation: unidadPulse 2.4s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(62, 140, 252, 0.35);
}

.btn-unidades:hover {
    animation-play-state: paused;
    transform: translateY(-1px) scale(1.01);
}

.site-footer {
    position: relative;
    background: #023c63;
    color: #dff1ff;
    padding: 4rem 0 2.5rem;
    margin-top: -0.5rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.25);
    opacity: 0.9;
}

.site-footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #d1e6ff;
    font-size: 0.95rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: #8fd0ff;
}

.site-footer .footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.site-footer .footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.site-footer .footer-social a:hover {
    transform: translateY(-2px);
    border-color: #8fd0ff;
    color: #8fd0ff;
}

.site-footer .coverage-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.site-footer .coverage-list i {
    color: #8fd0ff;
}

.footer-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
}

.site-footer .footer-meta {
    position: relative;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.site-footer .footer-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.25);
}

@media (min-width: 768px) {
    .site-footer .footer-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.faq-section {
    background: radial-gradient(circle at top, rgba(10, 71, 120, 0.08), #f6faff);
}

.faq-section .section-label {
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    color: #0a4778;
}

.faq-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a4778;
    display: inline-block;
    margin-right: 0.35rem;
}

.faq-accordion .accordion-item {
    border: none;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(5, 32, 64, 0.08);
}

.faq-accordion .accordion-button {
    background: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #054b78;
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-accordion .accordion-body {
    background: #fff;
    padding: 1.25rem 1.5rem;
    color: #364152;
    border-top: 1px solid rgba(10, 71, 120, 0.08);
}

.faq-cta {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(10, 71, 120, 0.12);
    margin-top: 2rem;
}

.faq-cta .btn {
    font-weight: 600;
}

.faq-layout .faq-accordion {
    margin-bottom: 1.5rem;
}

.faq-checklist-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 45px rgba(6, 23, 60, 0.1);
    height: 100%;
}

.faq-checklist-card h3 {
    color: #041c36;
}

.checklist-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}

.checklist-step:last-child {
    margin-bottom: 0;
}

.checklist-step-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #0a4778;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-step h6 {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #09233f;
}

.faq-cta {
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .faq-checklist-card {
        padding: 1.75rem;
    }
}

.unidades-section {
    background: radial-gradient(circle at top, rgba(4, 28, 54, 0.9), #010a1c);
    color: #f5f7ff;
}

.unidades-section .section-label {
    color: #8fd0ff;
}

.unit-slide-card {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.unit-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.22);
}

.unit-slide-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.unit-slide-body {
    padding: 1.15rem;
    flex: 1;
}

.unit-slide-body h5 {
    font-weight: 700;
    color: #050505;
    margin-bottom: 0.35rem;
    font-size: 15px;
}

.unit-slide-body p {
    color: #4a5568;
}

.unit-slide-desc {
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

.unit-modal-img {
    border-radius: 1rem;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.floating-cta {
    display: none !important;
}


.separador::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5f6d, #ffc371);
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.25);
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .unit-slide-img {
        height: 200px;
    }

    .unit-modal-img {
        height: 240px;
    }
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1ebe57);
    border: none;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
    animation: pulseGlow 2.5s ease-in-out infinite;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.9);
}

@keyframes unidadPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 32px rgba(62, 140, 252, 0.25);
    }

    35% {
        transform: scale(1.04);
        box-shadow: 0 18px 38px rgba(62, 140, 252, 0.35);
    }

    55% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 12px 32px rgba(62, 140, 252, 0.25);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 22px rgba(37, 211, 102, 0.85);
        transform: scale(1.04);
    }

    100% {
        box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
        transform: scale(1);
    }
}

@media (max-width: 991.98px) {
    .hero {
        text-align: center;
        padding: 4rem 0;
    }

    .nav-cta-btn {
        width: 100%;
    }

    .hero .display-5 {
        font-size: 2.4rem;
    }

    .hero-cta-group,
    .hero-keywords {
        justify-content: center;
    }

    .d-flex.gap-3.hero-cta-group .btn {
        flex: 1 1 250px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 3rem 0;
    }

    .hero .display-5 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero-cta-group {
        gap: 0.9rem;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-keywords {
        justify-content: center;
    }

    .hero-keywords .badge-keyword {
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .lang-trigger {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 1.05rem;
        padding: 1rem 1.15rem;
    }

    .lang-trigger {
        min-width: 140px;
        justify-content: center;
        padding: 0.45rem 1.1rem;
    }
}
/* Province breadcrumbs */
.breadcrumb-gradient {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #d7e6ff;
    box-shadow: 0 10px 25px rgba(6, 23, 60, 0.35);
    backdrop-filter: blur(6px);
}

.breadcrumb-gradient .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-gradient a {
    color: #8ed0ff;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-gradient .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ec4ff, #3f8efc);
    color: #031839;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    box-shadow: 0 15px 35px rgba(10, 71, 120, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-6px);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(126, 196, 255, 0.6);
    outline-offset: 3px;
}

/* Unit search */
.unit-search-bar {
    background-color: #f8f9fa;
    padding: 1.5rem 0 2rem;
}

.unit-search-intro h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.unit-search-form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.unit-search-controls .form-control {
    min-height: 56px;
}

.unit-search-controls .btn {
    min-height: 56px;
}

@media (max-width: 767.98px) {
    .unit-search-controls .btn {
        width: 100%;
    }
}

.unit-search-results {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
}

.unit-search-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.unit-search-card-media {
    position: relative;
    padding-top: 56.25%;
    background: #e9ecef;
}

.unit-search-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unit-search-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.unit-search-card-body h3 {
    font-size: 1rem;
}

.unit-search-card-meta li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.unit-search-card-meta li:last-child {
    margin-bottom: 0;
}

.unit-search-card-actions .btn {
    flex: 1 1 150px;
}

.unit-search-results-header h3 {
    margin-bottom: 0;
}

/* Glow border class */
.glow-border {
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-border:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 255, 255, 0.5);
}

.border-gradient {
  --c: #198754;
  --p: 10%;
  background: linear-gradient(var(--c), var(--c)) padding-box,
    conic-gradient(
        from var(--gradient-angle, 0deg),
        transparent,
        rgb(121 235 34) var(--p),
        transparent calc(var(--p) * 2)
      )
      border-box;
  border: 2px solid transparent;
}