@font-face {
font-family: Poppins;
src: url(poppins-regular.ttf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    font-family: 'Poppins', 'Ubuntu', sans-serif;
    background-color: #eee;
    color: #334455;
    overflow-x: hidden;
}

.cabeza {
    background-color: #ffffff;
    height: 148px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cabeza img {
    height: 100px;
    width: auto;
}

.navbar-fixed {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.navbar-item {
    flex: 1;
    text-align: center;
}

.navbar-item a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #002672;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-item a:hover, .navbar-item a.active {
    background-color: #002672;
    color: #ffffff;
}

.seccion-cabecera {
    width: 100%;
    background-color: #2087dd;
    margin-bottom: 0px;
}

.seccion-cabecera h1 {
    padding: 30px;
    text-align: center;
    font-size: 24pt;
    color: #fff;
    font-family: 'Century Gothic', sans-serif;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 100px auto;
    padding: 20px 20px;

}

.snombre {
    background: #d8d8d8;
    padding: 25px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85px;
}

.snombre:hover { background: #122a7a; color: white; transform: translateY(-3px); }

.sdescripcion-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 10, 40, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.hoja-blanca {
    background: white;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    padding: 60px 40px 40px 40px;
    border-radius: 15px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: zoomEntrada 0.3s ease;
}

@keyframes zoomEntrada { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.cerrar-modal {
    position: sticky;
    top: -40px;
    float: right;
    margin-right: -20px;
    margin-top: -40px;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 0 10px 0 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    z-index: 10001;  
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.cerrar-modal:hover { background: #c0392b; transform: scale(1.05); }

.hoja-blanca h2 { color: #122a7a; text-align: center; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.texto-documento { line-height: 1.8; color: #333; font-size: 14px; }

/* --- 5. PIE Y MÓVIL --- */
.pie { width: 100%; background-color: white; padding: 30px 0; border-top: 1px solid #ddd; margin-top: 50px; }
.pie a{
text-decoration:none;
font-size: 9pt;
font-family: sans-serif, verdana, arial;
border-top: 0px solid  #000000;
border-left: 0px solid #000000;
border-bottom: 0px solid  #000000;
border-right: 0px solid  #000000;
padding-left: 3px;
padding-right: 3px;
padding-top: 3px;
padding-bottom: 3px;
color:#2087dd;
transition: 0.4s ease-in-out;
}

.pie a:hover{
color: #ffffff;
background-color:#002672;
border-top: 0px solid  #000000;
border-left: 0px solid #000000;
border-bottom: 0px solid  #000000;
border-right: 0px solid  #000000;
}

.pie2 { max-width: 1000px; margin: auto; text-align: center; font-size: 9pt; }
.slides {
 display: grid;
 grid-template-areas: "stack";
 width: 100%; height: 450px; 
}
.slide { grid-area: stack; 
 width: 100%; height: 100%;  object-fit: cover;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.notaria-container { font-family: sans-serif; max-width: 900px; margin: 20px auto; color: #333; }
.equipo-section { background: #fff; border: 1px solid #e1e8ed; border-radius: 12px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.depto-titulo { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; margin-bottom: 20px; text-transform: uppercase; }
.jefe-card { background: #f8faff; border-left: 5px solid #2c3e50; padding: 15px 20px; margin-bottom: 20px; border-radius: 0 8px 8px 0; }
.jefe-nombre { font-size: 1.2rem; font-weight: bold; margin: 0; }
.jefe-cargo { color: #d35400; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; margin: 5px 0; }
.lista-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; list-style: none; padding: 0; }
.persona-item { padding: 12px; border: 1px solid #eee; border-radius: 8px; }
.persona-nombre { font-weight: 600; display: block; }
.persona-cargo { font-size: 0.85rem; color: #7f8c8d; display: block; }
.email-link { font-size: 0.8rem; color: #3498db; text-decoration: none; }

.reveal {
 transition: all 0.4s ease-out;
}

.oculto-arriba {
 opacity: 0;
 transform: translateY(-40px);
}

.oculto-abajo {
 opacity: 0;
 transform: translateY(40px);
}

.reveal.active {
 opacity: 1;
 transform: translateY(0);
}


@media screen and (max-width: 768px) {
.servicios-grid { grid-template-columns: 1fr; }
.hoja-blanca { padding: 50px 20px 20px 20px; width: 95%; }
.cerrar-modal { top: -35px; right: -10px; }
}
