:root {
    --bordo: #6d0f1a;
    --bordo-dark: #3d0710;
    --bordo-light: #9b1c2e;
    --dark: #101014;
    --gray: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background: #fff;
}

/* NAVBAR */
.navbar-custom {
    background: rgba(16, 16, 20, 0.96);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 12px 0;
}

.logo-navbar {
    height: 42px;
    width: auto;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    margin-left: 12px;
}

.nav-link:hover {
    color: #ffccd3 !important;
}

/* HERO */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(16,16,20,0.88), rgba(61,7,16,0.90)),
        url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: 90px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    margin-top: 20px;
    color: #eee;
    font-size: 1.15rem;
}

.hero-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    color: white;
}

.hero-card i {
    font-size: 65px;
    color: #ffccd3;
    margin-bottom: 20px;
}

/* BOTONES */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--bordo), var(--bordo-light));
    color: white !important;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(109,15,26,0.35);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--bordo-dark), var(--bordo));
    color: white !important;
}

/* SECCIONES */
.section-padding {
    padding: 90px 0;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* =========================
   SERVICIOS PREMIUM
========================= */

#servicios {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

#servicios h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #161616;
}

.service-card {
    position: relative;
    height: 100%;
    padding: 36px 32px;
    border-radius: 26px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(109,15,26,0.08);
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(109,15,26,0.18), transparent 70%);
    transition: all 0.35s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--bordo), var(--bordo-light));
    transition: width 0.35s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.14);
    border-color: rgba(109,15,26,0.25);
}

.service-card:hover::before {
    transform: scale(1.4);
    opacity: 1;
}

.service-card:hover::after {
    width: 100%;
}

.service-card i {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(109,15,26,0.12), rgba(155,28,46,0.22));
    color: var(--bordo);
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(109,15,26,0.12);
    transition: all 0.35s ease;
}

.service-card:hover i {
    background: linear-gradient(135deg, var(--bordo), var(--bordo-light));
    color: white;
    transform: rotate(-3deg) scale(1.06);
}

.service-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 14px;
}

.service-card p {
    color: #5e5e5e;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* NOSOTROS */
.about-section {
    background: var(--gray);
    padding: 90px 0;
}

.about-section h2 {
    font-weight: 800;
    color: var(--bordo-dark);
}

.about-box {
    background: #fff;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.about-box div {
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 500;
}

.about-box i {
    color: var(--bordo);
    margin-right: 10px;
}

/* CLIENTES */
.clients-section {
    background: radial-gradient(circle at top, #1a1a1a 0%, #050505 70%, #000 100%);
    padding: 90px 0;
    color: white;
}

.section-badge {
    display: inline-block;
    background: rgba(155, 28, 46, 0.2);
    color: #ffccd3;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.12);
}

.clients-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #b8cbd1;
    letter-spacing: 2px;
}

.clients-subtitle {
    color: #ccc;
    margin: 0 auto 35px auto;
    max-width: 760px;
}

.client-card {
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: 0.3s;
}

.client-card img {
    max-height: 65px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(40%) brightness(1.2);
    opacity: 1;
    transition: 0.3s;
}

.client-card:hover {
    transform: translateY(-6px);
    background: rgba(109,15,26,0.25);
}

.client-card:hover img {
    filter: none;
    transform: scale(1.05);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--bordo-dark), var(--bordo));
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    font-weight: 800;
}

/* CAPACITACIONES */
.training-section {
    background: #f3f3f3;
    padding: 70px 0;
    overflow: hidden;
}

.training-title {
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.training-slider {
    overflow: hidden;
}

.training-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.training-logo {
    height: 50px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(70%);
    opacity: 0.9;
    transition: 0.3s;
}

.training-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* CONTACTO */
.contact-form {
    background: white;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.form-control {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--bordo);
    box-shadow: 0 0 0 0.2rem rgba(109,15,26,0.15);
}

.whatsapp-link {
    color: var(--bordo);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.whatsapp-link:hover {
    color: var(--bordo-dark);
}

/* FOOTER */
.footer {
    background: #111;
    color: white;
    padding: 22px;
}

.footer p {
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-padding,
    .about-section {
        padding: 60px 0;
    }

    #servicios h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 28px;
    }

    .service-card i {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .client-card {
        height: 100px;
    }

    .client-card img {
        max-height: 50px;
    }

    .training-logo {
        height: 42px;
        margin: 0 28px;
    }
}

/* =========================================================
   NIVEL EMPRESA INTERNACIONAL - REFINAMIENTOS FINALES
   Respeta la estructura actual y mejora presencia visual
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.navbar-custom {
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand img {
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

.nav-link {
    position: relative;
    padding-bottom: 8px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, var(--bordo), #ffccd3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(155,28,46,0.35), transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,0.10), transparent 28%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffccd3;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.hero h1 {
    letter-spacing: -1px;
    max-width: 760px;
}

.hero-actions .btn {
    margin-bottom: 10px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin-top: 32px;
}

.hero-stats div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.hero-stats strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.hero-stats span {
    display: block;
    color: #d8d8d8;
    font-size: 0.82rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(255,204,211,0.22), transparent 70%);
}

.hero-card-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-card-icons i {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ffccd3;
    margin-bottom: 0;
}

/* MARCAS / TECNOLOGÍAS */
.tech-section {
    background: #ffffff;
    padding: 32px 0 30px 0;
    overflow: hidden;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    position: relative;
}

.tech-kicker {
    display: inline-block;
    color: var(--bordo-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 0.78rem;
    margin-bottom: 22px;
}

.tech-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tech-slider::before,
.tech-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 130px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}

.tech-slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}

.tech-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: techScroll 38s linear infinite;
}

.tech-slider:hover .tech-track {
    animation-play-state: paused;
}

.tech-track img {
    height: 48px;
    width: auto;
    max-width: 150px;
    margin: 0 48px;
    object-fit: contain;
    filter: grayscale(25%);
    opacity: 0.95;
    transition: all 0.3s ease;
}

.tech-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes techScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Servicios más corporativos */
.service-card {
    isolation: isolate;
}

.service-card:hover h4 {
    color: var(--bordo-dark);
}

/* Clientes más visibles */
.client-card {
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.client-card img {
    filter: grayscale(10%) brightness(1.1);
}

/* CTA internacional */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Contacto más premium */
.contact-form {
    border: 1px solid rgba(109,15,26,0.08);
}

.form-control {
    transition: all 0.25s ease;
}

.form-control:hover {
    border-color: rgba(109,15,26,0.35);
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.78rem;
    }

    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .tech-section {
        padding: 26px 0;
    }

    .tech-slider::before,
    .tech-slider::after {
        width: 65px;
    }

    .tech-track img {
        height: 36px;
        max-width: 120px;
        margin: 0 30px;
    }

}
/* =========================
   POR QUÉ ELEGIRNOS PREMIUM
========================= */

.why-section {
    background:
        radial-gradient(circle at top, rgba(109,15,26,0.10), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    padding: 95px 0;
}

.why-badge {
    display: inline-block;
    background: rgba(109,15,26,0.10);
    color: var(--bordo);
    border: 1px solid rgba(109,15,26,0.16);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.why-section h2 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #151515;
}

.why-subtitle {
    max-width: 760px;
    margin: 14px auto 0 auto;
    color: #666;
    font-size: 1.05rem;
}

.why-card {
    height: 100%;
    background: #ffffff;
    padding: 38px 30px;
    border-radius: 26px;
    border: 1px solid rgba(109,15,26,0.10);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--bordo), var(--bordo-light));
    transition: width 0.35s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.14);
    border-color: rgba(109,15,26,0.25);
}

.why-card:hover::after {
    width: 100%;
}

.why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px auto;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(109,15,26,0.12), rgba(155,28,46,0.25));
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 34px;
    color: var(--bordo);
}

.why-card h4 {
    font-weight: 800;
    color: #1c1c1c;
    margin-bottom: 14px;
}

.why-card p {
    color: #666;
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .why-section {
        padding: 65px 0;
    }

    .why-section h2 {
        font-size: 1.8rem;
    }
}
/* =========================
   CASOS REALES
========================= */

.cases-section {
    background: #111;
    color: white;
    padding: 90px 0;
}

.cases-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 10px;
}

.cases-section h2 {
    font-weight: 800;
}

.cases-subtitle {
    color: #bbb;
    max-width: 600px;
    margin: auto;
}

.case-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: 0.3s;
    text-align: left;
}

.case-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
}

.case-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.case-card p {
    color: #ccc;
}

.case-result {
    display: block;
    margin-top: 15px;
    color: #ff4d6d;
    font-weight: 600;
}
/* =========================
   LOADER ANIMADO
========================= */

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 140px;
    opacity: 0;
    transform: scale(0.8);
    animation: logoFade 1.5s ease forwards;
}

@keyframes logoFade {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================
   LOADER PREMIUM NIVEL APPLE
========================= */

body.loading {
    overflow: hidden;
}

body.loading > *:not(#site-loader) {
    filter: blur(5px);
    opacity: 0.35;
}

#site-loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(109,15,26,0.35), transparent 35%),
        linear-gradient(135deg, #050505, #111, #050505);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#site-loader.hide-loader {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    position: relative;
    text-align: center;
    padding: 45px 55px;
    border-radius: 28px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
    overflow: hidden;
}

.loader-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.22),
        transparent
    );
    animation: loaderShine 1.8s ease-in-out infinite;
}

.loader-logo-premium {
    width: 170px;
    max-width: 70vw;
    opacity: 0;
    transform: scale(0.86);
    animation: logoPremium 1.4s ease forwards;
    filter: drop-shadow(0 0 22px rgba(255,255,255,0.16));
}

.loader-line {
    width: 0;
    height: 3px;
    margin: 28px auto 14px auto;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bordo), var(--bordo-light), #ffffff);
    animation: loaderLine 1.6s ease forwards;
}

.loader-box p {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0;
    animation: loaderText 1.4s ease forwards;
    animation-delay: 0.45s;
}

@keyframes logoPremium {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loaderLine {
    to {
        width: 170px;
    }
}

@keyframes loaderText {
    to {
        opacity: 1;
    }
}

@keyframes loaderShine {
    0% {
        left: -120%;
    }
    55% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

@media (max-width: 768px) {
    .loader-box {
        padding: 35px 32px;
        border-radius: 22px;
    }

    .loader-logo-premium {
        width: 135px;
    }

    .loader-line {
        margin-top: 22px;
    }
}
/* BOTÓN ACCESO CLIENTES PREMIUM */

.nav-ticket-pro {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    padding: 10px 18px !important;
    margin-left: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d0f1a, #a0182d);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.92rem;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 12px 30px rgba(109,15,26,0.45);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-ticket-pro::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transition: 0.7s ease;
}

.nav-ticket-pro:hover::before {
    left: 130%;
}

.nav-ticket-pro:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(109,15,26,0.65);
}

.nav-ticket-pro i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

@media (max-width: 991px) {
    .nav-ticket-pro {
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
        width: 100%;
    }
}