:root {
    --bg-main: #ffffff;
    --bg-soft: #f4f7f6;
    --primary: #0d1b2a; /* Azul Medianoche (Casi Negro, muy elegante) */
    --accent: #e0e1dd;  /* Gris platino para detalles */
    --dark: #1b263b;    /* Tono intermedio para textos */
    --border: #e1e8ed;
    --gold: #b8860b;    /* Dorado para acentos de redes sociales */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--dark); 
    background-color: var(--bg-main); 
}

/* Header con Imagen de Fondo Realizada e Impacto Consistente */
.hero {
    position: relative;
    background-image: url('justicia.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    color: white;
    
    /* ALTURA MÍNIMA PARA QUE LA IMAGEN NO SE CORTE EN NINGUNA PÁGINA */
    min-height: 550px; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
    align-items: center;     /* Centra el texto horizontalmente */
    
    padding: 60px 20px; 
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    overflow: hidden;
}

/* Capa de contraste Neutra Oscura */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Tinte negro traslúcido para resaltar la foto original */
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* Contenido del Hero con Sombras Proyectadas */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    /* Sombra fuerte para que el blanco destaque */
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8), 0px 2px 4px rgba(0,0,0,0.5);
}

.logo-texto { 
    font-size: 3rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    text-transform: uppercase;
}

.hero-subtitulo {
    text-transform: uppercase; 
    letter-spacing: 5px; 
    margin-top:15px; 
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.hero h1 {
    margin: 25px 0; 
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-abogado {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Navegación Minimalista Oscura */
nav { 
    background: rgba(255,255,255,0.98); 
    padding: 20px; 
    text-align: right; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--primary); 
    backdrop-filter: blur(10px);
}
nav a { 
    text-decoration: none; 
    color: var(--primary); 
    margin-left: 30px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    transition: 0.3s;
}
nav a:hover { color: #666; }

/* Contenedores */
main { padding: 80px 20px; max-width: 1100px; margin: auto; }
.section-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 50px; color: var(--primary); text-align: center; }

.grid-areas { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}
.card-area { 
    background: var(--bg-soft); 
    padding: 45px; 
    border-radius: 15px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    text-align: center;
}
.card-area:hover { 
    background: white;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: translateY(-12px);
    border-color: var(--primary);
}
.card-area i { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; }
.card-area h3 { margin-bottom: 15px; font-weight: 800; color: var(--primary); }

.btn-whatsapp { 
    background: var(--primary); 
    color: white; 
    padding: 20px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(13, 27, 42, 0.2);
}
.btn-whatsapp:hover { background: #25D366; transform: scale(1.05); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3); }

/* Noticias y Enlaces */
.info-extra { background: var(--bg-soft); padding: 90px 20px; border-top: 1px solid var(--border); }
.info-extra-container { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.noticias-chile h4 { color: var(--primary); text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 35px; border-left: 4px solid var(--primary); padding-left: 15px; }

.noticia-card { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border); transition: 0.3s; }
.noticia-card:hover { border-color: var(--primary); transform: translateX(5px); }
.noticia-tag { font-size: 0.7rem; background: var(--primary); color: white; padding: 4px 10px; border-radius: 5px; font-weight: 700; }

.enlaces-afiliados h4 { color: var(--primary); text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 35px; }
.enlace-item a { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--primary); padding: 15px; background: white; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; transition: 0.3s; font-weight: 700; }
.enlace-item a:hover { background: var(--primary); color: white; }

/* --- SECCIÓN DE REDES SOCIALES EN FOOTER --- */
footer { background: #000; color: #fff; padding: 80px 20px; text-align: center; }

.social-icons {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--gold);
    opacity: 1;
    transform: translateY(-5px);
}
/* ------------------------------------------- */

@media (max-width: 850px) {
    .info-extra-container { grid-template-columns: 1fr; }
    .hero { min-height: 450px; padding: 80px 20px; }
    .hero h1 { font-size: 2.5rem; }
    nav { text-align: center; }
    nav a { margin: 0 10px; font-size: 0.7rem; }
    .social-icons { gap: 20px; }
    .social-icons a { font-size: 1.5rem; }
}