/* ===========================
   VARIABLES (de la web principal)
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2332;
    --gold: #c9a961;
    --light-gold: #e4d4b4;
    --white: #ffffff;
    --gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   HEADER STICKY (de la web principal)
   =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: padding 0.3s ease;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.lawyer-names {
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.4;
}

.lawyer-names p {
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ===========================
   HERO SECTION DEL BLOG
   =========================== */
.hero-small {
    margin-top: 80px;
    background: linear-gradient(135deg, #2c5f7f 0%, #1e4d6b 100%);
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-image: url('https://www.jaureguiabogados.com/img/justicia.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    filter: brightness(0) invert(1);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-gold);
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    margin-bottom: 3rem;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}
/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
}

.categorias-list {
    list-style: none;
}

.categorias-list li {
    margin-bottom: 0.8rem;
}

.categorias-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.categorias-list a:hover,
.categorias-list a.active {
    background: var(--gold);
    color: var(--white);
}

.categorias-list .count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===========================
   ARTÍCULOS LISTADO
   =========================== */
.articulos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.articulo-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articulo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.articulo-imagen img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.articulo-contenido {
    padding: 2rem;
}

.articulo-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.categoria {
    background: var(--gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.articulo-titulo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.articulo-titulo a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.articulo-titulo a:hover {
    color: var(--gold);
}

.articulo-resumen {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.leer-mas {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.leer-mas:hover {
    color: var(--navy);
    transform: translateX(5px);
}

/* ===========================
   ARTÍCULOS LISTADO
   =========================== */
.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--gold);
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.articulos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===========================
   ARTÍCULO INDIVIDUAL
   =========================== */
.articulo-single-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    margin-bottom: 3rem;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.articulo-single {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Header inline del artículo */
.articulo-header-inline {
    margin-bottom: 2rem;
}

.articulo-categoria-badge {
    margin-bottom: 1rem;
}

.articulo-categoria-badge a {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.articulo-categoria-badge a:hover {
    background: var(--navy);
}

.articulo-titulo-principal {
    font-size: 2.5rem;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.articulo-meta-inline {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-light);
    align-items: center;
}

.articulo-meta-inline .meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.articulo-meta-inline .separator {
    color: var(--text-light);
}

.articulo-meta-inline .icon {
    font-size: 1rem;
}

.articulo-divider {
    border: none;
    border-top: 3px solid var(--gold);
    margin: 2rem 0;
}

.articulo-single .articulo-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.articulo-contenido h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.articulo-contenido h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.articulo-contenido p {
    margin-bottom: 1.5rem;
}

.articulo-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.articulo-contenido ul,
.articulo-contenido ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.articulo-contenido li {
    margin-bottom: 0.8rem;
}

.articulo-contenido a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.articulo-contenido a:hover {
    color: var(--navy);
}

.articulo-contenido strong {
    color: var(--navy);
    font-weight: 600;
}

.articulo-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray);
}

.articulo-keywords {
    margin-bottom: 2rem;
}

.keyword-tag {
    display: inline-block;
    background: var(--gray);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
}

.compartir {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-compartir {
    padding: 0.6rem 1.2rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-compartir:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-compartir.facebook { background: #1877f2; }
.btn-compartir.twitter { background: #1da1f2; }
.btn-compartir.linkedin { background: #0a66c2; }
.btn-compartir.whatsapp { background: #25d366; }

/* ===========================
   SIDEBAR DEL ARTÍCULO
   =========================== */
.articulo-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.articulo-sidebar .sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.btn-volver {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: var(--gold);
}

.relacionados-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.relacionado-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray);
}

.relacionado-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.relacionado-item h4 a {
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.relacionado-item h4 a:hover {
    color: var(--gold);
}

.relacionado-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===========================
   PAGINACIÓN
   =========================== */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
}

.btn-paginacion {
    padding: 0.8rem 1.5rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-paginacion:hover {
    background: var(--navy);
}

.pagina-actual {
    color: var(--text-light);
    font-weight: 500;
}

/* ===========================
   ESTADO VACÍO
   =========================== */
.no-articulos {
    background: var(--white);
    padding: 4rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.no-articulos h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.no-articulos p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* ===========================
   FOOTER (de la web principal)
   =========================== */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-column-left {
    text-align: center;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-lawyers {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    font-style: italic;
}

.contact-info p {
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.contact-info strong {
    color: var(--gold);
    display: block;
    margin-bottom: 0.1rem;
    margin-top: 0.5rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.map-link:hover {
    background: var(--light-gold);
    color: var(--navy);
}

.open-modal-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.open-modal-btn:hover {
    background: var(--light-gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.8rem;
}

.legal-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===========================
   MODAL (de la web principal)
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--navy);
    padding: 3rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal-content h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--gold);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--light-gold);
    color: var(--navy);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
    header {
        flex-direction: column;
        padding: 1rem 3%;
        gap: 1rem;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        gap: 1.5rem;
    }

    .container,
    .articulo-single-container {
        grid-template-columns: 1fr;
        margin-top: 100px;
    }

    .sidebar,
    .articulo-sidebar {
        position: static;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .articulo-titulo-principal {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .articulo-single {
        padding: 2rem;
    }

    .articulo-titulo-principal {
        font-size: 1.6rem;
    }

    .articulo-single .articulo-contenido {
        font-size: 1rem;
    }

    .articulo-titulo {
        font-size: 1.4rem;
    }

    .articulo-meta,
    .articulo-meta-inline {
        font-size: 0.85rem;
    }

    .compartir {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-compartir {
        text-align: center;
    }
}
/* Estilos para las fotos de las abogadas en el footer */

.footer-lawyers {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lawyer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
    max-width: 150px;
}

.lawyer-photo {
    width: 120px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}

.lawyer-profile p {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Ajuste para mantener el centrado general de la columna */
.footer-column-left {
    text-align: center;
}

/* Responsive: en móviles un poco más pequeñas */
@media (max-width: 768px) {
    .lawyer-photo {
        width: 100px;
        height: 133px;
    }
    
    .footer-lawyers {
        gap: 1rem;
    }
    
    .lawyer-profile p {
        font-size: 0.8rem;
    }
}
