/* ==========================================================================
   GENERAL
   ========================================================================== */
:root {
    --primary: #0d6efd;           /* bootstrap primary */
    --primary-dark: #0a58ca;
    --dark: #000000;
    --light: #f8f9fa;
    --gray: #6c757d;
    --accent: #d4af37;             /* dorado sutil para toques financieros */
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

/* Spinner */
#spinner {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility 0s .5s;
    z-index: 9999;
}
#spinner.show {
    transition: opacity .6s ease .4s, visibility 0s;
}

/* Navbar */
.navbar {
    background-color: #070d22 !important;
    transition: all .4s;
    padding: 1rem 2rem !important;
}

.logo-navbar {
    max-height: 50px;
    width: auto;
}

.navbar-space {
    height: 90px;  /* ajustado para navbar fixed + padding */
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: all .3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* Carousel */
#header-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.45);
}

.carousel-content {
    max-width: 900px;
    padding: 1.5rem;
}

.carousel-content h1 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.logo-carousel {
    max-width: 320px;
    width: 70%;
}

/* Facts Section */
.facts .bg-primary,
.facts .bg-light {
    transition: transform .3s;
}

.facts .bg-primary:hover,
.facts .bg-light:hover {
    transform: translateY(-10px);
}

/* About, Services, etc. */
.section-title h5 {
    letter-spacing: 3px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all .3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Servicios cards */
.bg-light.rounded,
.bg-white.rounded {
    transition: all .4s ease;
    overflow: hidden;
}

.bg-light.rounded:hover,
.bg-white.rounded:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.display-5 {
    font-size: 1.6rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Noticias (AXR News) */
.axr-news {
    padding: 70px 15px;
    background: #fff;
}

.axr-news-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #000;
}

.axr-news-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.axr-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.axr-news-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all .35s ease;
    background: white;
}

.axr-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.axr-news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.axr-news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.axr-news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.axr-news-desc {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
}

.axr-news-btn {
    background: #000;
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .3s;
    align-self: flex-start;
}

.axr-news-btn:hover {
    background: #222;
}

/* Testimonial (Owl Carousel) */
.testimonial-item {
    background: var(--light);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0.75rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-item h4 {
    font-weight: 700;
}

/* Contacto */
iframe {
    border-radius: 12px;
}

/* Footer */
.bg-dark {
    background: #0a0a0a !important;
}

.text-light a {
    color: var(--accent);
    text-decoration: none;
}

.text-light a:hover {
    text-decoration: underline;
}

/* Chatbot & WhatsApp */
.axr-bot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 10000;
}

.axr-bot-button {
    background: var(--dark);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all .3s;
}

.axr-bot-button:hover {
    transform: scale(1.1);
    background: #111;
}

.axr-bot-box {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 360px;
    max-height: 560px;
    background: var(--dark);
    color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    border: 1px solid #333;
}

.axr-bot-box.show {
    display: flex;
}

.axr-bot-header {
    background: linear-gradient(135deg, #000, #1a1a1a);
    padding: 16px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.axr-bot-header span {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

.axr-bot-content {
    padding: 18px;
    flex: 1;
    overflow-y: auto;
    background: #0f0f0f;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.axr-bot-message {
    background: #1e1e1e;
    padding: 14px 18px;
    border-radius: 12px 12px 12px 0;
    font-size: 14.5px;
    line-height: 1.55;
    border-left: 4px solid var(--accent);
}

.axr-bot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.axr-bot-options button {
    background: white;
    color: #000;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s;
}

.axr-bot-options button:hover {
    background: var(--accent);
    color: white;
}

.axr-whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-decoration: none;
    z-index: 9999;
    transition: all .3s;
}

.axr-whatsapp-float:hover {
    transform: scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #header-carousel {
        height: 85vh;
    }
    .carousel-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #header-carousel {
        height: 80vh;
    }
    .carousel-content h1 {
        font-size: 2.2rem;
    }
    .navbar-space {
        height: 80px;
    }
    .axr-bot-box {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}

@media (max-width: 576px) {
    .carousel-content h1 {
        font-size: 1.8rem;
    }
    .logo-carousel {
        max-width: 220px;
    }
    .axr-news-title {
        font-size: 2.2rem;
    }
}




