/* ===== PALETA PREMIUM ===== */
:root {
    --bg-main: #0B0F19;
    --bg-soft: #111827;
    --primary: #4F46E5;
    --text-main: #E5E7EB;
    --text-soft: #9CA3AF;
    --border-soft: rgba(255,255,255,0.06);
}

/* FONDO GENERAL */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

/* TITULOS */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: white;
}

/* TEXTO GENERAL */
p {
    color: var(--text-soft);
    font-size: 17px;
}

/* SECCIONES */
section {
    padding: 110px 0;
}

/* BOTONES */
.thm-btn,
.main-slider__btn a {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    border-radius: 10px;
    font-weight: 600;
    padding: 14px 28px;
    color: white !important;
    box-shadow: 0 10px 25px rgba(79,70,229,0.4);
}

/* NAVBAR */
.main-menu-two {
    background: rgba(11,15,25,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}

.main-menu__list > li > a {
    color: var(--text-soft);
    font-weight: 500;
}

.main-menu__list > li > a:hover {
    color: white;
}

/* TARJETAS */
.services-two__single,
.blog-two__single,
.team-one__single,
.portfolio-two__single {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    transition: all .3s ease;
}

.services-two__single:hover,
.blog-two__single:hover,
.team-one__single:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.15);
}

/* TAGLINE */
.section-title-two__tagline {
    color: var(--primary);
    letter-spacing: 1px;
}

/* ===== HERO CORRECTO Y ESTABLE ===== */

.main-slider {
    padding: 70px 0 40px 0;
}

/* Quitamos alturas forzadas */
.main-slider,
.main-slider .owl-stage-outer,
.main-slider .owl-stage,
.main-slider .owl-item,
.main-slider .item {
    height: auto !important;
}

/* Contenedor interno del hero */
.main-slider__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* Texto */
.main-slider__title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.main-slider__text {
    font-size: 16px;
    margin-bottom: 25px;
}

/* Imagen */
.main-slider__img-box {
    width: 100%;
}

.main-slider__img img {
    width: 100%;
    border-radius: 18px;
}

/* Evita overflow */
html, body {
    overflow-x: hidden;
}
/* ===== TEXTO JUSTIFICADO GLOBAL (SOLO CONTENIDO) ===== */

/* Párrafos principales del sitio */
.about-two__text,
.why-choose-two__text,
.process-two__text,
.blog-two__text,
.newsletter-two__text,
.cta-one__title,
.services-two__text,
.portfolio-two__text,
.team-one__sub-title {
    text-align: justify;
    text-justify: inter-word;
}

/* También aplica a párrafos dentro de columnas */
.col-xl-6 p,
.col-xl-7 p,
.col-lg-6 p,
.col-md-6 p {
    text-align: justify;
}

/* Mantiene centrados los títulos y botones */
.section-title-two__title,
.section-title__title,
.main-slider__title,
.services-two__title,
.team-one__title,
.blog-two__title,
.cta-one__title,
.newsletter-two__title {
    text-align: center;
}
.main-menu-two__top {
    background: #0f172a;
    padding: 6px 0;
    font-size: 13px; /* Letras más pequeñas */
}

.main-menu-two__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.main-menu-two__contact-list {
    display: flex;
    flex-wrap: nowrap; /* OBLIGA a una sola línea */
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap; /* Evita saltos */
}

.main-menu-two__top {
    background: #0f172a;
    font-size: 13px;
    padding: 6px 0;
}

.main-menu-two__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu-two__contact-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
}

.main-menu-two__contact-list li {
    color: #e2e8f0;
    white-space: nowrap;
}

.main-menu-two__contact-list a {
    color: #e2e8f0;
    text-decoration: none;
}

.main-menu-two__wrapper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.main-menu-two__logo img {
    display: block;
}
/* ESTADO NORMAL */
.sticky-nav {
    position: relative;
    transition: all 0.3s ease;
}

/* CUANDO HACE SCROLL */
.sticky-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 9999;
    animation: slideDown 0.35s ease forwards;
}

/* Animación suave */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Ajuste de espacio cuando se fija */
body.sticky-active {
    padding-top: 85px;
}
/* --- TOP BAR --- */
.main-menu-two__top {
    background: #0f172a;
    font-size: 12px;
    padding: 6px 0;
}

.main-menu-two__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu-two__contact-list {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu-two__contact-list li {
    color: #e2e8f0;
    white-space: nowrap;
}

/* --- MENÚ PRINCIPAL --- */
.main-menu-two__wrapper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo-fix {
    max-height: 55px;
    width: auto;
}

/* --- EVITA QUE EL HEADER SE MONTE --- */
.main-slider {
    margin-top: 40px;
}
