:root {
    --primary-color: #003366; /* Azul marino serio */
    --secondary-color: #FFC107; /* Dorado para llamadas a la acción */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --gray-bg: #f9f9f9;
    --font-main: 'Roboto', sans-serif;
}

/* --- Globales --- */
* { box-sizing: border-box; }
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
}
h1, h2, h3 { margin: 0; padding-bottom: 10px; font-weight: 700; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-primary:hover { background-color: #e0a800; }
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }

/* --- Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* --- Estilos del Logo --- */
/* --- Estilos del Logo Vertical --- */
.logo-brand {
    display: flex;
    align-items: center; /* Centra verticalmente el texto respecto al icono */
    gap: 12px;           /* Espacio entre el cuadro azul y las letras */
    text-decoration: none;
}

/* 1. El cuadro azul del icono (Replicando tu imagen) */
.logo-icon-box {
    background-color: var(--primary-color); /* Azul Marino #003366 */
    color: var(--white);
    width: 65px;         /* Ancho del cuadro */
    height: 65px;        /* Alto del cuadro */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;     /* Tamaño de la balanza */
    border-radius: 4px;  /* Bordes ligeramente redondeados */
}

/* 2. Contenedor del texto vertical */
.logo-text-vertical {
    display: flex;
    flex-direction: column; /* Apila los elementos uno bajo otro */
    line-height: 1;         /* Reduce el espacio entre líneas */
    justify-content: center;
}

/* 3. Estilos para JUSTICIA y LABORAL */
.word-main {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;       /* Letra muy gruesa (Bold) */
    font-size: 1.25rem;     /* Tamaño ajustado */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;     /* Pequeño espacio entre Justicia y Laboral */
}

/* 4. Estilos para MÉXICO */
.word-sub {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;       /* Letra delgada (Light) */
    font-size: 0.85rem;     /* Más pequeña */
    color: var(--primary-color);            /* Gris oscuro */
    text-transform: uppercase;
    letter-spacing: 4px;    /* Letras separadas para elegancia */
    margin-top: 3px;        /* Separación de la palabra Laboral */
}

/* --- Ajuste Responsive para celulares --- */
@media (max-width: 768px) {
    .logo-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .word-main {
        font-size: 1rem;
    }
    .word-sub {
        font-size: 0.7rem;
    }
}
/* --- Hero --- */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.6), rgba(0, 51, 102, 0.6)), url('../img/WhatsApp\ Image\ 2026-01-11\ at\ 7.56.14\ PM.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}


.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    transition: 0.3s;
}
.service-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.service-card h3 { color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); display: inline-block; }
.service-list li { padding: 8px 0; border-bottom: 1px solid #eee; position: relative; padding-left: 20px; }
.service-list li::before { content: "•"; color: var(--secondary-color); position: absolute; left: 0; font-weight: bold; }

/* --- Por Qué Elegirnos --- */
.why-us { background-color: var(--primary-color); color: var(--white); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.feature-item { text-align: center; padding: 20px; background: rgba(255,255,255,0.1); border-radius: 8px; }

/* --- Proceso --- */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    counter-reset: step;
}
.step {
    flex: 1;
    min-width: 200px;
    background: var(--gray-bg);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    background: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    line-height: 30px;
    margin-bottom: 10px;
}

/* --- FAQ & Testimonios --- */
.faq-grid { display: grid; gap: 20px; }
.faq-item { background: var(--gray-bg); padding: 20px; border-radius: 5px; }
.faq-question { font-weight: bold; color: var(--primary-color); display: block; margin-bottom: 10px; }

.testimonial {
    background: var(--white);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    margin: 20px 0;
    font-style: italic;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* --- Footer --- */
footer { background: #222; color: #ccc; padding: 40px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col h4 { color: var(--white); margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; }

/* --- WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover { background-color: #128C7E; color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-container { flex-direction: column; height: auto; padding: 10px; }
    .nav-container .btn { margin-top: 10px; }
}

/* Contenedor del logo en el modal */
.modal-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

/* Estilos para la ventana modal */
.modal {
  display: none; /* Oculta la ventana por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  margin: auto;
  top: 10%;
  width: 80%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 150px;
}

.modal-pdf {
  width: 100%;
  height: 500px;
  border: none;
}

.modal-close {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-close:hover {
  background-color: #0056b3;
}