

:root {
    --primary:   #0d6efd;   /* brand blue */
    --primary-dark: #0a58ca;
    --secondary: #1d3557;   /* deep navy */
    --accent:    #f1c40f;   /* key yellow */
    --dark:      #14213d;
    --light:     #f8f9fa;
    --gray:      #6c757d;
    --text:      #212529;
    --whatsapp:  #25d366;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* Icons inside links should never be underlined */
a {
    text-decoration: none;
}

.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    text-decoration: none;
    display: inline-block;
}

.section {
    padding: 60px 0;
}

/* ===== Navbar ===== */
#mainNav {
    background: #0d6efd;
    transition: all 0.35s ease;
    padding: 18px 0;
}

#mainNav.scrolled {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--accent);
    transform: rotate(-45deg);
    display: inline-block;
}

.navbar-brand span {
    color: var(--accent);
}

#mainNav.scrolled .navbar-brand {
    color: var(--secondary);
}

#mainNav .nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 4px;
    transition: color 0.25s ease;
}

#mainNav.scrolled .nav-link {
    color: var(--secondary);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--accent);
}

#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
    color: var(--primary);
}

.btn-call-nav {
    background: var(--accent);
    color: #333;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
}

.btn-call-nav:hover {
    background: var(--primary-dark);
    color: #fff;
}

.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.2);
}

#mainNav.scrolled .navbar-toggler {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background: #162843 url('/heroimage.jpg?2') center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 33, 61, 0.42) 0%, rgba(29, 53, 87, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    padding-top: 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(241, 196, 15, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.92;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-features span {
    font-weight: 500;
}

.hero-features i {
    color: var(--accent);
    margin-right: 6px;
}

/* ===== Section header ===== */
.section-header {
    max-width: 640px;
    margin: 0 auto 50px;
}

.section-header.text-start {
    margin-left: 0;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.section-header h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

section p a {
    color: #000;
    text-decoration: none;
}


/* ===== Services ===== */
.services {
    background: var(--light);
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.service-icon {
    float: left;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 5px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 12px;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.service-card p {
    clear: both;
    display: block;
    color: var(--gray);
    margin-bottom: 0;
    padding-top: 12px;
}

/* ===== Benefits ===== */

#benefits {
    overflow: hidden;
}

.benefits-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefit-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.benefit-item h4 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.benefit-item p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ===== CTA ===== */
.cta {
    position: relative;
    padding: 38px 0;
    background: #162843 url('/ctaimage.jpg?2') center/cover fixed no-repeat;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 33, 61, 0.95), rgba(10, 88, 202, 0.85));
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.92;
}

/* ===== Testimonials ===== */
.testimonials {
    background: #fff;
}

.testimonial-card {
    background: var(--light);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid #ccc;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.testimonial-card p {
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 22px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author h5 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq {
    background: var(--light);
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--secondary);
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    color: var(--gray);
    padding: 20px 25px;
    background: #fff;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 25px;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    margin-bottom: 18px;
    text-decoration: none;
}

.footer-brand i {
    color: var(--accent);
    transform: rotate(-45deg);
    display: inline-block;
}

.footer-brand span {
    color: var(--accent);
}

.footer p {
    color: #94a3b8;
    line-height: 1.7;
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-contact li i {
    color: var(--primary);
    width: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 22px;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== Floating buttons ===== */
.float-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.float-btn.call {
    background: var(--accent);
    animation: pulse 2s infinite;
}

.float-btn.whatsapp {
    background: var(--whatsapp);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    #mainNav {
        background: var(--secondary);
        padding: 12px 0;
    }
    #mainNav .navbar-collapse {
        background: var(--secondary);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    .btn-call-nav {
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {

.hero {
    position: relative;
    background: #162843 url(/heroimage_mob.jpg?2) center / cover no-repeat;
}

.hero .container {
    background: rgba(20, 33, 61, 0.25);
}

    .hero-content {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    .hero .lead {
        display: none;
        font-size: 1.05rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .cta-content h2 {
        font-size: 1.5rem;
    }
    .cta {
        background-attachment: scroll;
    }
    .hero-features {
        gap: 12px;
    }
    .page-banner h1 {
        font-size: 1.9rem;
    }
}

/* ===== Language links ===== */
.lang-link {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 4px 10px !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#mainNav.scrolled .lang-link {
    border-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .lang-link {
        display: inline-block;
        margin: 6px 6px 0 0;
    }
}

/* ===== Service card link ===== */
.card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.card-link:hover {
    color: var(--primary-dark);
}

.service-card .service-icon.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer social ===== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ===== Page banner (inner pages) ===== */
.page-banner {
    position: relative;
    background: #162843 url('/ctaimage.jpg?2') center/cover no-repeat;
    color: #fff;
    padding: 40px 0 40px;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 33, 61, 0.94) 0%, rgba(29, 53, 87, 0.82) 100%);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 12px 0 12px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav a {
    color: var(--accent);
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav .sep {
    margin: 0 8px;
    opacity: 0.6;
}

/* ===== Contact page ===== */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-ic {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-list strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
}

.contact-list a,
.contact-list span {
    color: var(--gray);
}

.contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-wrap h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    padding: 12px 14px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

/* ===== 404 ===== */
.error-section {
    padding: 170px 0 100px;
    text-align: center;
}

.error-section h1 {
    font-size: 6rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-section h2 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.btn-primary-cta,
.btn-outline-primary-cta {
    border-radius: 30px;
    padding: 12px 26px;
    font-weight: 600;
}

.btn-primary-cta {
    background: var(--primary);
    color: #fff;
}

.btn-primary-cta:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary-cta {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary-cta:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== open.php content ===== */
.content-block {
    line-height: 1.8;
    color: var(--text);
}

.content-block h2,
.content-block h3 {
    color: var(--secondary);
    margin: 28px 0 14px;
}

/* ===== Blog cards (bloq.php) ===== */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 33, 61, .06);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(20, 33, 61, .12);
}

.blog-thumb {
    overflow: hidden;
    background: var(--light);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.blog-body {
    padding: 20px 22px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.blog-card h3 a {
    color: var(--secondary);
    transition: color .2s ease;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--gray);
    margin: 0 0 12px;
    font-size: .95rem;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    transition: gap .2s ease, color .2s ease;
}

.blog-readmore:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.blog-readmore i {
    font-size: .85rem;
}
