:root {
    /* Marca */
    --primary: #1254B5;
    --secondary: #E1262F;
    --light: #F4F6F9;
    --dark: #0B0B0C;

    /* Escala azul */
    --navy-900: #0B0B0C;
    --navy: #1254B5;
    --navy-800: #0D3C7D;
    --navy-700: #2F72DE;

    /* Escala roja */
    --gold: #E1262F;
    --gold-light: #FF4D4D;
    --gold-dark: #B3121A;

    /* Neutros */
    --body-color: #475569;
    --muted: #64748B;
    --border: #E2E8F0;
}

/* ---------- Base ---------- */
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--body-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Roboto", "Inter", sans-serif;
    color: var(--navy);
    font-weight: 700;
}

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-800 { background-color: var(--navy-800) !important; }
.bg-gold { background-color: var(--gold) !important; }

/* ---------- Utilidades Bootstrap re-mapeadas a la marca ---------- */
.bg-primary { background-color: var(--navy) !important; }
.bg-secondary { background-color: var(--gold) !important; }
.bg-success { background-color: var(--dark) !important; }
.bg-dark { background-color: var(--navy-900) !important; }
.bg-light { background-color: var(--light) !important; }

.text-primary { color: var(--navy) !important; }
.text-secondary { color: var(--gold-dark) !important; }
.text-dark { color: var(--navy) !important; }

.border-dark { border-color: var(--gold) !important; }

.fw-medium { font-weight: 600 !important; }

.form-control:focus,
.form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 .2rem rgba(18, 84, 181, .18);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* =================== Splash screen =================== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-900) !important;
    background-image: radial-gradient(circle at 50% 40%, #1E63C8 0%, #1254B5 45%, #0B0B0C 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .6s ease, visibility 0s linear .6s;
}

    #splash-screen.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.splash-content {
    text-align: center;
}

.splash-logo {
    max-width: 210px;
    background: #fff;
    padding: 14px 22px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    animation: splashPulse 1.6s ease-in-out infinite;
}

.splash-spinner {
    margin: 28px auto 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .splash-spinner span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gold);
        animation: splashBounce 1s infinite ease-in-out;
    }

    .splash-spinner span:nth-child(2) { animation-delay: .15s; }
    .splash-spinner span:nth-child(3) { animation-delay: .3s; }

.splash-brand {
    margin-top: 18px;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes splashBounce {
    0%, 80%, 100% { transform: scale(.6); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
}

/* =================== Botones =================== */
.btn {
    font-weight: 600;
    letter-spacing: .2px;
    transition: .3s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-dark,
.btn.btn-danger {
    color: #FFFFFF;
}

.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

.btn-primary:focus,
.btn-dark:focus {
    box-shadow: 0 0 0 .25rem rgba(18, 84, 181, .35);
}

.btn-secondary:focus,
.btn-danger:focus {
    box-shadow: 0 0 0 .25rem rgba(225, 38, 47, .35);
}

.btn-dark {
    background-color: var(--navy);
    border-color: var(--navy);
}
.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

.btn-danger {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}
.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #FFFFFF;
}

/* Botón rojo (CTA principal) */
.btn-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(225, 38, 47, .35);
}

/* Botón navy (secundario) */
.btn-navy {
    background-color: var(--navy);
    border: 2px solid var(--navy);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-navy:hover,
.btn-navy:focus {
    background-color: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(18, 84, 181, .3);
}

/* Botón contorno rojo */
.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* =================== Navbar =================== */
.navbar-psn {
    background-color: var(--navy-900) !important;
    background-image: linear-gradient(90deg, #0B0B0C 0%, #0F3F86 55%, #1254B5 100%);
    background-position: center;
    border-top: 4px solid var(--gold) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

.navbar-psn .navbar-brand {
    height: 78px;
}
.navbar-psn .navbar-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.navbar-psn .navbar-nav .nav-link {
    position: relative;
    margin-right: 26px;
    padding: 27px 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: color .3s;
}
.navbar-psn .navbar-nav .nav-link:hover,
.navbar-psn .navbar-nav .nav-link.active {
    color: var(--gold-light);
}
.navbar-psn .navbar-toggler {
    border-color: rgba(255, 255, 255, .45);
}
.navbar-psn .navbar-toggler-icon {
    filter: invert(1);
}

@media (min-width: 992px) {
    .navbar-psn .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 18px;
        left: 0;
        background: var(--gold-light);
        transition: .4s;
    }
    .navbar-psn .navbar-nav .nav-link:hover::before,
    .navbar-psn .navbar-nav .nav-link.active::before {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .navbar-psn .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
    }
    .navbar-psn .navbar-nav {
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: 8px;
    }
}

.navbar.sticky-top {
    top: 0;
    transition: .3s;
}

/* =================== Header / Page header =================== */
.page-header {
    background: linear-gradient(rgba(11, 11, 12, .88), rgba(18, 84, 181, .72)), url(../img/IMG_7425.jpg) center center no-repeat;
    background-size: cover;
    border-bottom: 4px solid var(--gold);
}

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

/* =================== Header carousel =================== */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }
    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

/* =================== About / Feature =================== */
@media (min-width: 992px) {
    .container.about { max-width: 100% !important; }
    .about-text { padding-right: calc(((100% - 960px) / 2) + .75rem); }
}
@media (min-width: 1200px) {
    .about-text { padding-right: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .about-text { padding-right: calc(((100% - 1320px) / 2) + .75rem); }
}

@media (min-width: 992px) {
    .container.feature { max-width: 100% !important; }
    .feature-text { padding-left: calc(((100% - 960px) / 2) + .75rem); }
}
@media (min-width: 1200px) {
    .feature-text { padding-left: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .feature-text { padding-left: calc(((100% - 1320px) / 2) + .75rem); }
}

/* =================== Service / Price / Team =================== */
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}
.service-item img,
.team-item img { transition: .5s; }
.service-item:hover img,
.team-item:hover img { transform: scale(1.1); }

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}
.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--navy);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}
.team-item div.btn-slide span a i { padding: 0 10px; }
.team-item div.btn-slide span a:hover i { background: var(--gold); }
.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}
.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i { border-radius: 0; }
.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span { left: 0; }
.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span { background: var(--gold); }

/* =================== Testimonial =================== */
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}
.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}
.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--navy);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}
.testimonial-carousel .owl-dot.active {
    background: var(--gold);
    border-color: var(--gold-light);
}

/* =================== Contact =================== */
@media (min-width: 992px) {
    .container.contact-page { max-width: 100% !important; }
    .contact-page .contact-form { padding-left: calc(((100% - 960px) / 2) + .75rem); }
}
@media (min-width: 1200px) {
    .contact-page .contact-form { padding-left: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .contact-page .contact-form { padding-left: calc(((100% - 1320px) / 2) + .75rem); }
}

/* =================== Footer =================== */
.footer-psn {
    background-color: var(--navy-900) !important;
    background-image: linear-gradient(180deg, #0F3F86 0%, #0B0B0C 100%);
    border-top: 4px solid var(--gold);
}
.footer-psn h4 {
    color: #fff !important;
}
.footer-psn h4::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    background: var(--gold);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 35px;
    transition: .3s;
}
.footer .btn.btn-social:hover {
    color: #FFFFFF;
    background: var(--gold);
    border-color: var(--gold);
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--gold-light);
}
.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    color: var(--gold-light);
    box-shadow: none;
}
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer .copyright a {
    color: var(--gold-light);
}
