/* ===== HEADER TRULEX OSCURO ===== */

.header-trulex {
    background: #0f172a; /* azul elegante */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* NAVBAR */
.navbar {
    padding: 16px 0;
}

/* LOGO */
.logo-img {
    height: 50px;
    object-fit: contain;
}

/* LINKS */
.nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.95rem;
    margin: 0 12px;
    font-weight: 500;
    position: relative;
    transition: all .3s ease;
}

/* HOVER */
.nav-link:hover {
    color: #ffffff !important;
}

/* ACTIVO */
.nav-link.active {
    color: #ffffff !important;
}

/* Línea dorada elegante */
.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4af37;
}

/* BOTÓN */
.btn-trulex {
    background: #d4af37;
    color: #0f172a;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 4px;
    border: none;
    transition: all .3s ease;
}

.btn-trulex:hover {
    background: #c39d2e;
    color: #0f172a;
}

/* MOBILE */
.navbar-toggler {
    border: none;
}

@media (max-width: 992px) {

    .navbar-collapse {
        padding-top: 15px;
    }

    .navbar-nav {
        margin-bottom: 40px; 
    }

    .btn-trulex {
        display: inline-block;
        margin-top: 10px;
    }

}

/* ===== HERO TRULEX ===== */

.hero-trulex {
    position: relative;
    height: 90vh;
    background: url('../img/hero-legal.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

/* CONTENIDO */
.hero-content {
    position: relative;
    max-width: 650px;
    color: #fff;
    padding-top: 40px;
    animation: fadeUp 1s ease forwards;
}

/* BADGE */
.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

/* TITULO */
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* TEXTO */
.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
}

/* BOTONES */
.hero-actions {
    display: flex;
    gap: 15px;
}

/* BOTÓN PRINCIPAL */
.btn-trulex {
    background: #d4af37;
    color: #0f172a;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    transition: all .3s ease;
}

.btn-trulex:hover {
    background: #c39d2e;
    color: #0f172a;
}

/* BOTÓN SECUNDARIO */
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 22px;
    transition: all .3s ease;
}

.btn-outline-light:hover {
    background: transparent;
    border-color: #d4af37;
    color: #d4af37;
}

/* ANIMACIÓN */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT TRULEX ===== */

.about-trulex {
    background: #0f172a;
    padding: 100px 0;
    color: #fff;
}

/* BADGE */
.about-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 10px;
}

/* TITULO */
.about-trulex h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-trulex h2 span {
    color: #d4af37;
}

/* TEXTO */
.about-text {
    color: rgba(255,255,255,0.75);
    margin-bottom: 25px;
}

/* LISTA */
.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.about-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

/* BULLET DORADO */
.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
}

/* IMAGEN */
.about-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 30px;
}

/* BORDE DORADO */
.about-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid #d4af37;
    z-index: 0;
}

/* IMAGEN MÁS GRANDE */
.about-img {
    width: 100%;
    max-width: 420px; /* antes 350px */
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {

    .about-trulex {
        padding: 70px 0;
        text-align: center;
    }

    .about-trulex h2 {
        font-size: 2.2rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .about-list {
        text-align: left;
        display: inline-block;
    }

    /* IMAGEN */
    .about-image-wrapper {
        max-width: 260px;
        padding: 8px;
        margin-top: 30px;
    }

    .about-image-wrapper::before {
        border: 5px solid #d4af37;
    }

}

@media (max-width: 992px) {

    .btn-contacto {
        display: block;
        width: fit-content;
        margin: 20px auto 0 auto; /* centra y separa */
    }

}

/* ===== AREAS TRULEX ===== */

.areas-trulex {
    background: #0b1120; /* ligeramente distinto al hero */
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

/* BADGE */
.areas-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 10px;
}

/* TITULO */
.areas-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.areas-title span {
    color: #d4af37;
}

/* CARD */
.area-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 35px 25px;
    border-radius: 10px;
    transition: all .3s ease;
    height: 100%;
}

/* HOVER */
.area-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ICONO */
.area-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon i {
    color: #d4af37;
    font-size: 1.3rem;
}

/* TITULO CARD */
.area-card h5 {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #fff;
}

/* DESCRIPCIÓN */
.area-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    line-height: 1.4;
}

.area-desc {
    transition: all .3s ease;
}

/* hover */
.area-card:hover .area-desc {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {

    .areas-title {
        font-size: 2.2rem;
    }

    .area-card {
        padding: 25px 20px;
    }

}

/* ===== PORQUE TRULEX ===== */

.porque-trulex {
    background: #f8f5ef; /* beige elegante */
    padding: 100px 0;
}

/* BADGE */
.porque-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b7280;
    display: block;
    margin-bottom: 10px;
}

/* TITULO */
.porque-trulex h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 20px;
}

/* LISTA */
.porque-list {
    padding-left: 18px;
    margin-bottom: 25px;
}

.porque-list li {
    margin-bottom: 12px;
    color: #374151;
}

/* IMAGEN */
.porque-img-wrapper {
    position: relative;
    display: inline-block;
}

/* FONDO DORADO DETRÁS */
.porque-img-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: #d4af37;
    z-index: 0;
}

.porque-img {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {

    .porque-trulex {
        text-align: center;
        padding: 70px 0;
    }

    .porque-trulex h2 {
        font-size: 2rem;
    }

    .porque-img-wrapper::before {
        display: none; /* evita desmadre en móvil */
    }

}

/* ===== FOOTER TRULEX ===== */

.footer-trulex {
    background: #0f172a;
    padding: 60px 0 20px;
    color: rgba(255,255,255,0.7);
}

/* LOGO */
.footer-logo {
    height: 100px;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all .3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

/* TEXTO */
.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* LINEA INFERIOR */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.8rem;
}

.footer-mail {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all .3s ease;
}

.footer-mail:hover {
    color: #d4af37;
}

.footer-map {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-block;
    line-height: 1.6;
    transition: all .3s ease;
}

.footer-map:hover {
    color: #d4af37;
}

@media (max-width: 768px) {

    .footer-links li {
        display: block;
        margin: 5px 0;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

}

/* ===== CONTACTO TRULEX ===== */

.contacto-trulex {
    background: #0b1120;
    padding: 100px 0;
    color: #fff;
}

/* TITULOS */
.contacto-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 10px;
}

.contacto-trulex h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.contacto-trulex h2 span {
    color: #d4af37;
}

/* FORM */
.contacto-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 14px;
    border-radius: 6px;
}

.contacto-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.contacto-form .form-control:focus {
    border-color: #d4af37;
    box-shadow: none;
}

/* INFO */
.contacto-info {
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contacto-info h4 {
    margin-bottom: 15px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contacto-item i {
    color: #d4af37;
}

.contacto-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.contacto-item a:hover {
    color: #d4af37;
}

@media (max-width: 992px) {

    .contacto-trulex {
        padding: 70px 0;
    }

    .contacto-trulex h2 {
        font-size: 2rem;
    }

}