/* =========================================
   LEX OFFICE - ESTILO CORPORATIVO
   ========================================= */

:root {
    --primary: #0c2461;
    /* Azul Marino Profundo */
    --accent: #c5a059;
    /* Dorado Elegante */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 0.85rem;
}

.tb-flex {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.tb-flex i {
    color: var(--accent);
    margin-right: 5px;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 10px 20px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--primary);
    color: white !important;
}

/* --- HERO --- */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 36, 97, 0.85);
}

/* Filtro azul */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-subtitle {
    display: block;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-gold {
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-gold:hover {
    background: #b08d45;
}

.btn-outline {
    border: 2px solid var(--white);
    color: white;
    padding: 15px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- STATS --- */
.stats-bar {
    background: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-family: 'Playfair Display';
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
}

.stat-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NOSOTROS --- */
.section-about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sub-heading {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    position: relative;
    z-index: 2;
}

.img-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--accent);
    z-index: 1;
}

/* --- ÁREAS --- */
.section-areas {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.area-card:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.area-card:hover h3,
.area-card:hover p,
.area-card:hover i {
    color: var(--primary);
}

.area-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: 0.3s;
}

.area-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: 0.3s;
}

.area-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: 0.3s;
}

/* --- CONTACTO --- */
.section-contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: 'Lato';
}

.full {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background: #081945;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 30px 0;
    font-size: 0.8rem;
}

/* --- WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .tb-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

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

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
}