.navbar, .navigation, header {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.btn, .button {
    border-radius: 999px;
}

header img[src*="logo"],
.navbar img[src*="logo"],
.navigation img[src*="logo"] {
    max-height: 52px;
    width: auto;
}

header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.swiper-slide img.img-responsive {
    max-height: 48px !important;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
header,
.navbar,
.navigation {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(20, 24, 40, 0.08);
}

header img[src*="logo"],
.navbar img[src*="logo"],
.navigation img[src*="logo"],
.logo img,
.navbar-brand img {
    max-height: 72px !important;
    width: auto;
}

header .container,
.navbar .container,
.navigation .container {
    display: flex;
    align-items: center;
}

header a,
.navbar a,
.navigation a {
    font-weight: 700;
    letter-spacing: 0.2px;
}

#home {
    padding-top: 150px;
    padding-bottom: 90px;
}

#home h1,
#home .display-4 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: #273244;
    margin-bottom: 18px;
}

#home .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

#home .btn,
#home .button {
    padding: 14px 30px;
    font-weight: 700;
}

@media (max-width: 991px) {
    #home {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    #home h1,
    #home .display-4 {
        font-size: 52px;
    }
}

@media (max-width: 767px) {
    #home {
        padding-top: 90px;
        padding-bottom: 40px;
        text-align: center;
    }

    #home h1,
    #home .display-4 {
        font-size: 36px;
    }

    #home .lead {
        font-size: 16px;
    }

    #home .nav {
        justify-content: center;
    }

    .swiper-slide img.img-responsive {
        max-width: 120px;
        max-height: 42px !important;
    }
}
header .container,
.navbar .container,
.navigation .container {
    justify-content: space-between;
}

header nav ul,
.navbar-nav,
.navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

header nav ul li,
.navbar-nav li,
.navigation ul li {
    list-style: none;
}

header nav ul li a,
.navbar-nav li a,
.navigation ul li a {
    white-space: nowrap;
    font-size: 15px;
}

@media (max-width: 1300px) {
    header nav ul,
    .navbar-nav,
    .navigation ul {
        gap: 20px;
    }

    header nav ul li a,
    .navbar-nav li a,
    .navigation ul li a {
        font-size: 14px;
    }
}
header nav ul li a,
.navbar-nav li a,
.navigation ul li a {
    color: #5a57a8 !important;
    opacity: 1 !important;
    font-weight: 700;
}

header nav ul li a:hover,
.navbar-nav li a:hover,
.navigation ul li a:hover {
    color: #2f2c7a !important;
}

header nav ul li.active a,
.navbar-nav li.active a,
.navigation ul li.active a {
    color: #2f2c7a !important;
}
header nav ul li a,
.navbar-nav li a,
.navigation ul li a {
    color: #5a57a8 !important;
    opacity: 1 !important;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

header nav ul li a:hover,
.navbar-nav li a:hover,
.navigation ul li a:hover {
    color: #2f2c7a !important;
    transform: scale(1.08);
}

header nav ul li.active a,
.navbar-nav li.active a,
.navigation ul li.active a {
    color: #2f2c7a !important;
}
#home .col-md-6:first-child {
    max-width: 640px;
}

#home .display-4,
#home .head-line-2,
#home .lead {
    max-width: 620px;
}
#testimonios .section-heading {
    background: #ffffff;
    border: 1px solid #e8ebf2;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(33, 37, 41, 0.06);
    height: 100%;
}

#testimonios .heading-line {
    font-size: 22px;
    font-weight: 800;
    color: #273244;
    line-height: 1.35;
    margin-bottom: 14px;
}

#testimonios .heading-line small {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #5b6574;
}

#testimonios .lead {
    font-size: 17px;
    line-height: 1.8;
    color: #5b6574;
    margin-bottom: 18px;
}

#testimonios h6 {
    font-size: 16px;
    font-weight: 700;
    color: #273244;
    margin-top: 18px;
}

#testimonios h6 a {
    color: #3f4aa8;
    text-decoration: none;
}
.service-subtitle {
    font-size: 22px;
    line-height: 1.4;
    color: #5b6574;
    font-weight: 600;
    margin-bottom: 18px;
}

.service-points {
    margin: 22px 0 18px 0;
    padding-left: 0;
    list-style: none;
}

.service-points li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.6;
    color: #4f5b6a;
}

.service-points li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #5a57a8;
    font-size: 22px;
    line-height: 1;
}

.service-note {
    font-size: 17px;
    line-height: 1.75;
    color: #5b6574;
    max-width: 650px;
}
.plan-badge {
    display: inline-block !important;
    background: #5a57a8 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    margin-bottom: 14px !important;
    line-height: 1 !important;
}
.contact-intro {
    max-width: 760px;
    margin: 0 auto 14px auto;
    text-align: center;
}

.contact-note {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #5b6574;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#trial .section-heading {
    max-width: 860px;
    margin: 0 auto;
}

#trial .nav.flex-column.flex-md-row {
    margin-top: 26px;
}
/* ===== CIERRE VISUAL: CONTACTO + WHY CHOOSE US ===== */

#trial {
    padding-top: 110px;
    padding-bottom: 90px;
}

#trial .heading-line {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

#trial .btn {
    min-width: 240px;
}

#trial + section {
    position: relative;
    z-index: 2;
    margin-top: -10px;
    padding-top: 60px;
    padding-bottom: 90px;
}

#trial + section .rounded.media.bg-contrast {
    background: #ffffff !important;
    border: 1px solid #e8ebf2;
    border-radius: 22px !important;
    box-shadow: 0 16px 36px rgba(33, 37, 41, 0.08) !important;
    padding: 24px !important;
}

#trial + section .media-body h4 {
    font-size: 28px;
    font-weight: 800;
    color: #5a57a8;
    margin-bottom: 6px;
}

#trial + section .media-body a {
    font-weight: 700;
    text-decoration: none;
}

.why-choose-us {
    padding-top: 95px;
    padding-bottom: 140px;
}

.why-choose-us .section-heading {
    max-width: 820px;
    margin: 0 auto 44px auto;
    text-align: center;
}

.why-choose-us .heading-line {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: #273244;
    margin-bottom: 18px;
}

.why-choose-us .lead,
.why-choose-us .section-heading p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #5b6574;
    line-height: 1.8;
}

.why-choose-us .media {
    background: #ffffff;
    border: 1px solid #e8ebf2;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 12px 28px rgba(33, 37, 41, 0.06);
    margin-bottom: 18px;
}

.why-choose-us .icon-shape,
.why-choose-us .media .mr-4,
.why-choose-us .media .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(90, 87, 168, 0.08);
}

.why-choose-us .media-body h4,
.why-choose-us .media-body h5 {
    font-size: 22px;
    font-weight: 800;
    color: #273244;
    margin-bottom: 8px;
}

.why-choose-us .media-body p {
    color: #5b6574;
    line-height: 1.75;
    margin-bottom: 0;
}

.why-choose-us img,
.why-choose-us .shadow-box,
.why-choose-us .screen,
.why-choose-us .iphone {
    border-radius: 20px;
    overflow: hidden;
}

.why-choose-us img {
    box-shadow: 0 18px 36px rgba(33, 37, 41, 0.10);
}

@media (max-width: 991px) {
    .why-choose-us .heading-line {
        font-size: 38px;
    }

    #trial .btn {
        min-width: 220px;
    }
}

@media (max-width: 767px) {
    .why-choose-us .heading-line {
        font-size: 32px;
    }

    #trial {
        padding-top: 90px;
        padding-bottom: 70px;
    }

    #trial + section {
        padding-top: 40px;
    }
}
/* ===== FAQ / PREGUNTAS FRECUENTES ===== */

#faq {
    padding-top: 100px;
    padding-bottom: 110px;
    background: #eef4f8 !important;
}

#faq .container {
    max-width: 1080px;
}

#faq .section-heading {
    max-width: 760px;
    margin: 0 auto 34px auto;
    text-align: center;
}

#faq .heading-line {
    font-size: 46px;
    font-weight: 800;
    color: #273244;
    margin-bottom: 16px;
}

#faq .faq-intro,
#faq .section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #5b6574;
    line-height: 1.75;
}

#faq .row {
    justify-content: center;
}

#faq .col-lg-8 {
    max-width: 920px;
    flex: 0 0 920px;
}

#faq .card {
    border: 1px solid #e5eaf2 !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(33, 37, 41, 0.06);
    margin-bottom: 14px;
    background: #ffffff;
}

#faq .card-header {
    background: #ffffff !important;
    border-bottom: 0 !important;
    padding: 0 !important;
}

#faq .card-title {
    display: block;
    width: 100%;
    text-align: left;
    padding: 20px 24px !important;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #2e3650 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
}

#faq .card-title:hover {
    background: #f7f9fc !important;
    color: #4b4aa6 !important;
}

#faq .card-body {
    padding: 0 24px 24px 24px !important;
    font-size: 16px;
    line-height: 1.8;
    color: #5b6574;
    background: #ffffff;
}

#faq .card-body p,
#faq .card-body li,
#faq .collapse {
    color: #5b6574;
    line-height: 1.8;
}

#faq .card-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

#faq .card-body strong,
#faq .card-body b {
    color: #273244;
}

#faq .shapes-container {
    opacity: 0.12;
}

@media (max-width: 991px) {
    #faq {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    #faq .heading-line {
        font-size: 38px;
    }

    #faq .col-lg-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    #faq .heading-line {
        font-size: 32px;
    }

    #faq .card-title {
        padding: 18px 18px !important;
        font-size: 16px;
    }

    #faq .card-body {
        padding: 0 18px 20px 18px !important;
        font-size: 15px;
    }
}
#faq .card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#faq .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(33, 37, 41, 0.08);
}
#contact-form {
    padding: 100px 0 180px;
    background: #f7f9fc;
    position: relative;
    z-index: 2;
}

#contact-form .contact-form-card {
    border-radius: 24px;
    border: 1px solid #e7ebf2;
    background: #fff;
}

#contact-form .form-label {
    display: block;
    font-weight: 700;
    color: #2e3650;
    margin-bottom: 10px;
}

#contact-form .form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d8deea;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    color: #273244;
    background: #ffffff;
    box-shadow: none;
}

#contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

#contact-form .form-control:focus {
    border-color: #5a57a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 87, 168, 0.12);
}

.site-footer {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}
#contact-form .alert {
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

#contact-form .alert-success {
    background: #e9f8ef;
    border: 1px solid #bfe5cb;
    color: #226c3a;
}

#contact-form .alert-danger {
    background: #fff1f1;
    border: 1px solid #f0c7c7;
    color: #a03434;
}
#contact-form .text-danger {
    color: #c0392b !important;
    font-size: 13px;
    font-weight: 600;
}

#contact-form .form-control.is-invalid,
#contact-form .form-control:invalid {
    border-color: #e0b4b4;
}

/* Banner móvil Solicitar Demo */
#mobile-demo-banner {
    display: none;
}

@media (max-width: 767px) {
    #mobile-demo-banner {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: linear-gradient(90deg, #7c3aed 0%, #5b21b6 100%);
        text-align: center;
        padding: 10px 16px;
    }

    #mobile-demo-banner a {
        color: #fff;
        font-size: 0.88rem;
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.02em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    /* Empujar el navbar hacia abajo para no tapar */
    .navbar.fixed-top {
        top: 41px;
    }

    /* Compensar en el hero */
    #home {
        padding-top: 135px !important;
    }
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
    background: #25d366;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(37,211,102,0.5);
    color: #fff;
    text-decoration: none;
}

.whatsapp-float img {
    width: 40px !important;
    height: 40px !important;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        padding: 8px 10px;
        font-size: 0.65rem;
        border-radius: 12px;
    }

    .whatsapp-float img {
        width: 32px !important;
        height: 32px !important;
    }
}

#submit-contact-btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

#submit-contact-btn.is-submitting {
    transform: none !important;
}

/* Eliminar borde diagonal del footer */
.site-footer.edge.top-left::before {
    display: none;
}

/* ── INTRO OVERLAY ──────────────────────────────────────────── */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #08111f;
    perspective: 1600px;
}

#intro-stage {
    display: flex;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

#intro-panel-left {
    width: 28%;
    background: linear-gradient(160deg, #0a1628 0%, #0e2a52 60%, #133570 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    transform-origin: left center;
    transform: rotateY(0deg);
    z-index: 2;
}

#intro-panel-left.brochure-open {
    transform: rotateY(-130deg);
}

#intro-panel-center {
    flex: 1;
    background: transparent;
    z-index: 1;
}

#intro-panel-right {
    width: 28%;
    background: linear-gradient(200deg, #133570 0%, #0e2a52 40%, #0a1628 100%);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform-origin: right center;
    transform: rotateY(0deg);
    z-index: 2;
}

#intro-panel-right.brochure-open {
    transform: rotateY(130deg);
}

@media (max-width: 767px) {
    #intro-panel-left,
    #intro-panel-right { display: none; }
    #intro-panel-center { width: 100%; }
}

/* ── BROCHURE TRIPTYCH VIEWER ───────────────────────────────── */
#brochure-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #08111f;
    perspective: 1600px;
}

#brochure-stage {
    display: flex;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Paneles compartidos */
.brochure-panel {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
    backface-visibility: hidden;
    will-change: transform;
}

/* Panel izquierdo */
#brochure-panel-left {
    width: 28%;
    background: linear-gradient(160deg, #0a1628 0%, #0e2a52 60%, #133570 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    transform-origin: left center;
    transform: rotateY(0deg);
    z-index: 2;
}

#brochure-panel-left.brochure-open {
    transform: rotateY(-130deg);
}

/* Panel central */
#brochure-panel-center {
    flex: 1;
    background: #0c0c0c;
    z-index: 1;
}

/* Panel derecho */
#brochure-panel-right {
    width: 28%;
    background: linear-gradient(200deg, #133570 0%, #0e2a52 40%, #0a1628 100%);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform-origin: right center;
    transform: rotateY(0deg);
    z-index: 2;
}

#brochure-panel-right.brochure-open {
    transform: rotateY(130deg);
}

/* Contenido decorativo de paneles laterales */
.brochure-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    gap: 1.8rem;
    color: #fff;
}

.brochure-panel-content img {
    max-width: 110px;
    opacity: 0.88;
}

.brochure-panel-content span {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.8;
}

/* Línea decorativa vertical en paneles laterales */
.brochure-panel-content::before {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}

/* iframe */
#brochure-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

#brochure-frame.brochure-loaded {
    opacity: 1;
}

/* Spinner */
#brochure-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: opacity 0.4s ease;
    z-index: 3;
}

#brochure-spinner p { margin: 0; }

#brochure-spinner.brochure-hidden {
    opacity: 0;
    pointer-events: none;
}

.brochure-spin-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #5b9cf6;
    border-radius: 50%;
    animation: brochure-rotate 0.85s linear infinite;
}

@keyframes brochure-rotate {
    to { transform: rotate(360deg); }
}

/* Botón cerrar */
#brochure-close-btn {
    position: fixed;
    top: 1.1rem;
    right: 1.4rem;
    z-index: 9999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
    transition: opacity 0.35s ease 0.8s,
                transform 0.35s ease 0.8s,
                background 0.2s;
}

#brochure-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

#brochure-overlay.brochure-active #brochure-close-btn {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Responsive móvil */
@media (max-width: 767px) {
    #brochure-panel-left,
    #brochure-panel-right { display: none; }
    #brochure-panel-center { width: 100%; }
}
