/* =============================================
   InmoVision - Landing Page Styles
   ============================================= */

:root {
    --color-primary: #1a3c5e;
    --color-secondary: #e67e22;
    --color-bg: #f8f9fa;
    --color-text: #333;
    --color-light: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* ---- NAVBAR ---- */
.navbar-brand img {
    max-height: 48px;
    width: auto;
}

.navbar-inmovision {
    background: var(--color-primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-inmovision .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-inmovision .nav-link:hover,
.navbar-inmovision .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

.navbar-inmovision .btn-contact {
    background: var(--color-secondary);
    color: #fff !important;
    border-radius: 25px;
    padding: 8px 24px !important;
    font-weight: 600;
}

.navbar-inmovision .btn-contact:hover {
    background: #d35400;
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- HERO ---- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c5f8a 50%, #1a3c5e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><path fill="rgba(255,255,255,0.03)" d="M0,400 C360,200 720,600 1440,300 L1440,800 L0,800 Z"/><path fill="rgba(255,255,255,0.02)" d="M0,600 C480,300 960,700 1440,400 L1440,800 L0,800 Z"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-accent {
    color: var(--color-secondary);
}

/* ---- SEARCH BOX ---- */
.search-box {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
}

.search-box .form-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.15);
}

.btn-search {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-search:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,126,34,0.4);
    color: #fff;
}

/* ---- SECTIONS ---- */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin: 16px auto 24px;
}

/* ---- PROPERTY CARDS ---- */
.property-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.property-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.property-card:hover .property-card-img img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-operacion {
    background: var(--color-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-operacion.alquiler {
    background: #27ae60;
}

.badge-operacion.alquiler_temporal {
    background: #8e44ad;
}

.badge-destacada {
    background: var(--color-secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.property-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.property-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.property-location i {
    color: var(--color-secondary);
    margin-right: 4px;
}

.property-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #555;
}

.property-feature i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.btn-ver-mas {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.btn-ver-mas:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- WHY US SECTION ---- */
.why-us-section {
    background: var(--color-primary);
    color: #fff;
    padding: 80px 0;
}

.why-us-section .section-title {
    color: #fff;
}

.why-us-section .section-subtitle {
    color: rgba(255,255,255,0.75);
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.why-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

.why-card h5 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.why-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- ABOUT SECTION ---- */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-img-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-stat {
    text-align: center;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--border-radius);
}

.about-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.about-stat .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* ---- CONTACT SECTION ---- */
.contact-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.contact-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-text h6 {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-decoration: none;
}

.contact-info-text a:hover {
    color: var(--color-secondary);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

.btn-enviar {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

.btn-enviar:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,126,34,0.4);
    color: #fff;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-slogan {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--color-secondary);
    margin-top: 2px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-link:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.7); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* ---- PROPIEDAD DETAIL ---- */
.property-detail-header {
    background: var(--color-primary);
    color: #fff;
    padding: 40px 0 30px;
    margin-top: 70px;
}

.property-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.gallery-main {
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 500px;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-secondary);
}

.ficha-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.ficha-card h5 {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-secondary);
    font-size: 1.05rem;
}

.ficha-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.ficha-item:last-child {
    border-bottom: none;
}

.ficha-item .label {
    color: #888;
    font-weight: 500;
}

.ficha-item .value {
    font-weight: 700;
    color: var(--color-primary);
}

.caracteristica-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    margin: 4px;
}

.caracteristica-tag i {
    color: var(--color-secondary);
}

/* ---- BREADCRUMB ---- */
.breadcrumb-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item a {
    color: var(--color-secondary);
    text-decoration: none;
}

/* ---- FILTERS ---- */
.filters-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.filters-card .form-control,
.filters-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: var(--transition);
}

.filters-card .form-control:focus,
.filters-card .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,60,94,0.1);
}

/* ---- PAGINATION ---- */
.pagination .page-link {
    color: var(--color-primary);
    border-radius: 8px !important;
    margin: 0 2px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* ---- UTILITIES ---- */
.text-primary-custom { color: var(--color-primary) !important; }
.text-secondary-custom { color: var(--color-secondary) !important; }
.bg-primary-custom { background: var(--color-primary) !important; }
.bg-secondary-custom { background: var(--color-secondary) !important; }

.btn-primary-custom {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: #0f2a42;
    color: #fff;
}

.btn-secondary-custom {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: #d35400;
    color: #fff;
}

/* Alert styles */
#contact-alert {
    display: none;
    margin-top: 16px;
}

/* ---- NO IMAGE PLACEHOLDER ---- */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    font-size: 1rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-img-frame {
        transform: none;
        max-width: 420px;
        margin: 0 auto;
    }
    .hero-img-wrapper::before,
    .hero-img-wrapper::after { display: none; }
    .hero-img-pills { display: none; }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-content h1 { font-size: 2rem; }
    .hero-row { min-height: auto; padding: 20px 0 40px; }

    /* Page header */
    .page-header { padding: 60px 0 24px; }
    .page-header h1 { font-size: 1.5rem; }

    /* Search box */
    .search-box { padding: 16px; border-radius: 8px; }
    .search-box .col-md-3,
    .search-box .col-md-2,
    .search-box [class*="col-"] { margin-bottom: 4px; }

    /* Gallery */
    .gallery-main img { height: 240px; }
    .gallery-main { max-height: 240px; }
    .gallery-thumb { width: 60px; height: 46px; }

    /* Property detail */
    .property-detail-header { padding: 24px 0 18px; margin-top: 60px; }
    .property-detail-price { font-size: 1.5rem; }

    /* Ficha items: stack label/value */
    .ficha-item { flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 0; }
    .ficha-item .label { font-size: 0.78rem; }
    .ficha-item .value { font-size: 0.88rem; }
    .ficha-card { padding: 18px; }

    /* Contact */
    .contact-card { padding: 20px; }
    .contact-info-item { gap: 10px; margin-bottom: 16px; }

    /* Sections padding */
    .why-us-section,
    .about-section,
    .contact-section { padding: 54px 0; }

    /* About stats: 2-col grid on tablet */
    .about-stat .number { font-size: 2rem; }

    /* Footer */
    .footer { padding: 40px 0 24px; }
    .footer .col-md-3,
    .footer .col-md-4 { margin-bottom: 24px; }

    /* Chat widget */
    #chat-panel { width: calc(100vw - 48px); }
}

@media (max-width: 576px) {
    /* Hero */
    .hero-content { padding: 40px 0 24px; }
    .hero-content p { font-size: 0.95rem; }
    .hero-img-frame img { height: 220px; }

    /* Search box */
    .search-box { padding: 14px; margin: 0 4px; }
    .btn-search { padding: 11px 20px; font-size: 0.92rem; }

    /* Gallery */
    .gallery-main img { height: 200px; }
    .gallery-main { max-height: 200px; }
    .gallery-thumbs { gap: 5px; }
    .gallery-thumb { width: 52px; height: 40px; }

    /* Cards */
    .property-card-img { height: 180px; }

    /* Sections */
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.92rem; }
    .why-us-section,
    .about-section,
    .contact-section { padding: 40px 0; }

    /* Page header */
    .page-header { padding: 50px 0 20px; }
    .page-header h1 { font-size: 1.3rem; }

    /* Property detail */
    .property-detail-price { font-size: 1.3rem; }
    .property-detail-header { padding: 20px 0 16px; }
    .caracteristica-tag { padding: 5px 10px; font-size: 0.78rem; }

    /* Contact card */
    .contact-card { padding: 16px; }
    .contact-info-icon { width: 40px; height: 40px; font-size: 0.95rem; }

    /* Footer */
    .footer { padding: 32px 0 20px; }
    .footer-brand-name { font-size: 1.2rem; }

    /* Fixed buttons: avoid overlap */
    .whatsapp-btn { bottom: 20px; right: 16px; width: 52px; height: 52px; font-size: 1.5rem; }
    .scroll-top { bottom: 154px; right: 16px; }
    #chat-widget { bottom: 16px; right: 16px; }
    #chat-panel { width: calc(100vw - 32px); }
}

/* ---- LOADING OVERLAY ---- */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

/* Related properties */
.section-related {
    padding: 60px 0;
    background: var(--color-bg);
}

/* Page header for inner pages */
.page-header {
    background: linear-gradient(135deg, var(--color-primary), #2c5f8a);
    color: #fff;
    padding: 80px 0 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ---- NAV LOGIN ICON ---- */
.nav-login-icon {
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.25rem;
    background: rgba(255,255,255,0.12) !important;
    transition: var(--transition) !important;
}

.nav-login-icon:hover {
    background: var(--color-secondary) !important;
    transform: scale(1.08);
}

/* ---- HERO SPLIT LAYOUT ---- */
.hero-row {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.hero-content-left {
    text-align: left;
    padding: 20px 0;
}

@media (max-width: 991px) {
    .hero-content-left {
        text-align: center;
        padding: 60px 0 20px;
    }
    .hero-content-left .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- HERO IMAGE ---- */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

.hero-img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s ease;
    background: rgba(255,255,255,0.06);
}

.hero-img-frame:hover {
    transform: perspective(900px) rotateY(0deg) rotateX(0deg);
}

.hero-img-frame img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-img-svg {
    padding: 10px;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: -18px; right: -18px;
    width: 90px; height: 90px;
    border: 3px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    pointer-events: none;
}

.hero-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -12px; left: -12px;
    width: 55px; height: 55px;
    background: var(--color-secondary);
    border-radius: 12px;
    opacity: 0.35;
    pointer-events: none;
}

.hero-img-pills {
    position: absolute;
    bottom: -18px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.hero-pill {
    background: #fff;
    color: var(--color-primary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hero-pill i {
    color: var(--color-secondary);
}

/* ---- BUTTON RIPPLE ---- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleAnim 0.55s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* Enhanced hover transforms */
.btn-ver-mas {
    transform: translateY(0);
}

.btn-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,60,94,0.3);
}

/* ---- SCROLL ANIMATIONS ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.05s; }
.anim-delay-2 { transition-delay: 0.15s; }
.anim-delay-3 { transition-delay: 0.25s; }
.anim-delay-4 { transition-delay: 0.35s; }
.anim-delay-5 { transition-delay: 0.45s; }

/* ---- WHY CARDS animate ---- */
.why-card {
    transition: var(--transition), box-shadow 0.3s ease;
}

.why-icon {
    transition: transform 0.35s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* ---- CHATBOT WIDGET ---- */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1050;
}

.chatbot-bubble {
    width: 58px;
    height: 58px;
    background: var(--color-primary);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,60,94,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.25s, transform 0.25s;
    animation: chatPulse 2.8s infinite;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(26,60,94,0.45); }
    50%       { box-shadow: 0 4px 32px rgba(26,60,94,0.7); }
}

.chatbot-bubble:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.chatbot-bubble-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.chatbot-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.18);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chatbot-panel.open {
    display: flex;
    animation: chatSlideIn 0.28s ease;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    background: var(--color-primary);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 38px; height: 38px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-name  { font-weight: 700; font-size: 0.92rem; }

.chatbot-status {
    font-size: 0.72rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px; height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: statusBlink 2s infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.chatbot-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chatbot-close:hover { background: rgba(255,255,255,0.28); }

.chatbot-messages {
    padding: 14px;
    overflow-y: auto;
    max-height: 260px;
    flex: 1;
    scroll-behavior: smooth;
}

.chatbot-msg {
    margin-bottom: 10px;
    display: flex;
    gap: 7px;
    animation: msgIn 0.25s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.user { flex-direction: row-reverse; }

.chatbot-msg-avatar {
    width: 26px; height: 26px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.chatbot-msg-bubble {
    max-width: 230px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.855rem;
    line-height: 1.5;
}

.chatbot-msg.bot  .chatbot-msg-bubble { background: #f0f4f8; color: #333; border-top-left-radius: 4px; }
.chatbot-msg.user .chatbot-msg-bubble { background: var(--color-primary); color: #fff; border-top-right-radius: 4px; }

.chatbot-quick-replies {
    padding: 8px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chatbot-qr-btn {
    background: #f0f4f8;
    border: 1px solid #dce3ec;
    color: var(--color-primary);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chatbot-qr-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chatbot-input-area input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 7px 13px;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus { border-color: var(--color-primary); }

.chatbot-input-area button {
    width: 36px; height: 36px;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chatbot-input-area button:hover {
    background: #d35400;
    transform: scale(1.08);
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 9px 13px;
    background: #f0f4f8;
    border-radius: 12px;
    border-top-left-radius: 4px;
    width: fit-content;
}

.chatbot-typing span {
    width: 7px; height: 7px;
    background: #bbb;
    border-radius: 50%;
    animation: typingDot 1.3s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.18s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); background: #ccc; }
    40%           { transform: scale(1); background: var(--color-primary); }
}

/* Reposition scroll-top to not overlap chatbot */
.scroll-top {
    bottom: 170px;
}

@media (max-width: 576px) {
    .chatbot-widget { bottom: 85px; right: 16px; }
    .chatbot-panel  { width: calc(100vw - 32px); right: 0; }
    .scroll-top     { bottom: 150px; right: 16px; }
    .whatsapp-btn   { bottom: 20px; right: 16px; }
}
