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

body {
    font-family: Arial, sans-serif;
    background-color: #102a43;
    color: #222;
    text-align: center;
}

h1 {
    background-color: #102a43;
    color: white;
    padding: 35px;
    font-size: 42px;
}

h2 {
    color: #102a43;
    margin-top: 0;
    font-size: 32px;
}

p {
    margin: 25px auto;
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
}

button {
    background-color: #b08d57;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 17px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #8c6d42;
}
.foto-abogado {
    width: 320px;
    max-width: 90%;
    border-radius: 12px;
}
.presentacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 15px auto 30px;
}

.texto {
    max-width: 500px;
    text-align: left;
}
h3 {
    color: #102a43;
    font-size: 24px;
    margin: 15px 0 5px 0;
}

.profesion {
    font-size: 19px;
    font-weight: bold;
    color: #444;
    margin-bottom: 4px;
}

.universidad {
    font-size: 17px;
    color: #777;
    font-style: italic;
}
.areas {
    padding: 30px 20px 60px;
}

.areas > h2 {
    text-align: center;
    margin-bottom: 30px;
}

.tarjetas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.tarjeta {
    background-color: white;
    width: 220px;
    min-height: 110px;
    padding: 20px;
    border-radius: 10px;
    border-top: 4px solid #b08d57;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tarjeta h3 {
    margin: 0;
    font-size: 19px;
    color: #102a43;
}
.presentacion {
    background: linear-gradient(135deg, #243746, #162634);
    max-width: none;
    margin: 0;
    padding: 55px 10%;
    color: white;
}

.presentacion h2,
.presentacion h3 {
    color: white;
}

.presentacion .profesion {
    color: #f0f0f0;
}

.presentacion .universidad {
    color: #d6d6d6;
}

.presentacion p {
    color: #eeeeee;
}

.foto-abogado {
    border: 2px solid #b08d57;
}
@media (max-width: 768px) {

    h1 {
        font-size: 30px;
        padding: 25px 10px;
    }

    .presentacion {
        flex-direction: column;
        gap: 25px;
        margin: 30px 20px;
    }

    .texto {
        text-align: center;
    }

    .foto-abogado {
        width: 280px;
    }

    .tarjetas {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta {
        width: 85%;
    }
}
 .menu {
    background-color: #102a43;
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.logo-fila {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.logo-bloque-texto {
    transform: translateY(8px);
}

.logo-balanza {
    color: #d4af7a;
    font-size: 80px;
}

.logo-linea {
    width: 2px;
    height: 80px;
    background-color: #d4af7a;
}

.logo-bloque-texto {
    display: flex;
    flex-direction: column;
}

.logo-texto {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px !important;
    font-weight: bold;
    line-height: 1.05;
    text-align: left;

}
.enlaces a {
    color: #d4af7a;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    font-family: Georgia, "Times New Roman", serif;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d4af7a
}

.enlaces a:hover,
.enlaces a:visited:hover {
    color: #102a43;
    background-color: #d4af7a;
}

.enlaces a:visited {
    color: #d4af7a;
}

.detalle-area {
    display: none;
    max-width: 850px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-top: 3px solid #d4af7a;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.detalle-area h3 {
    color: #102a43;
    margin-bottom: 12px;
}

.detalle-area p {
    line-height: 1.6;
    color: #444;
}

.tarjeta {
    cursor: pointer;
}
/* Animación de la reseña */
.detalle-area {
    animation: aparecer 0.45s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de las tarjetas */
.tarjeta {
    transition: all 0.25s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
    border-color: #d4af7a;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.tarjeta.activa {
    background-color: #d4af7a;
    border-color: #d4af7a;
    transform: translateY(-5px);
}

.tarjeta.activa h3 {
    color: #102a43;
}
/* ===== GALERÍA ===== */

.galeria {
    padding: 50px 8%;
    background-color: #f5f5f2;
    text-align: center;
}

.galeria h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 30px;
}

.galeria-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.galeria-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #d4af7a;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.galeria-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

@media (max-width: 800px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-grid img {
        height: 160px;
    }
}
/* ===== VISOR DE GALERÍA ===== */

.visor {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.90);
    align-items: center;
    justify-content: center;
}

.visor img {
    width: 80vw;
    height: 80vh;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
    border-radius: 8px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
}

.anterior,
.siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    font-size: 45px;
    padding: 15px;
    cursor: pointer;
    z-index: 1002;
}

.anterior {
    left: 20px;
}

.siguiente {
    right: 20px;
}

.anterior:hover,
.siguiente:hover,
.cerrar:hover {
    color: #d4af7a;
}
/* ===== EXPERIENCIA PROFESIONAL ===== */

.experiencia {
    padding: 55px 8%;
    background-color: #eef1f3;
    text-align: center;
}

.experiencia h2 {
    font-size: 32px;
    color: #102a43;
    margin-bottom: 30px;
}

.experiencia-contenido {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.experiencia-bloque {
    background: white;
    padding: 28px 24px;
    border-top: 4px solid #d4af7a;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.10);
}

.experiencia-bloque h3 {
    color: #102a43;
    margin-bottom: 18px;
    font-size: 20px;
}

.experiencia-bloque p {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

@media (max-width: 800px) {
    .experiencia-contenido {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACTO ===== */

.contacto {
    padding: 55px 8%;
    background-color: #102a43;
    text-align: center;
}

.contacto h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 12px;
}

.contacto-intro {
    color: #e6e6e6;
    margin-bottom: 30px;
    font-size: 16px;
}

#formulario-contacto {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 10px;
    border-top: 4px solid #d4af7a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    text-align: left;
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    color: #102a43;
    font-weight: bold;
    margin-bottom: 6px;
}

.campo input,
.campo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.campo textarea {
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: #d4af7a;
}

.boton-enviar {
    width: 100%;
    padding: 14px;
    background-color: #d4af7a;
    color: #102a43;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

.boton-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.20);
}
/* ===== FOTO + PANEL DORADO ===== */

.bloque-foto {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.bloque-foto .foto-abogado {
    width: 320px;
    max-width: 100%;
    border-radius: 12px 0 0 12px;
    object-fit: cover;
}

.panel-dorado {
    width: 300px;
    padding: 32px 24px;
    box-sizing: border-box;

  background: linear-gradient(
    135deg,
    #8f6727 0%,
    #c99b50 22%,
    #f1d28b 48%,
    #c28b3c 72%,
    #8f6727 100%
);

    color: white;
    border-radius: 0 12px 12px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.panel-titulo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: normal;
    font-style: italic;
    line-height: 1.25;
    color: #17212b;
    text-align: center;
}

.panel-linea {
    width: 65%;
    height: 1px;
    background: #9a742c;
    margin: 28px auto;
    opacity: 0.75;
}

.panel-texto {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
    font-weight: normal;
    line-height: 1.45;
    color: #17212b;
    text-align: center;
}
.panel-nombre {
    margin-top: 26px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #17212b;
    text-align: center;
    white-space: nowrap;
}
/* ===== TITULO PRINCIPAL NUEVO ===== */

.titulo-principal {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    font-weight: bold;
    color: #e7c46a;
    text-align: center;
    margin: 0 auto ;
    padding:0;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}


/* ===== VALORES: EXPERIENCIA - COMPROMISO - SOLUCIONES ===== */

.valores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding: 22px 20px;
    background: #0b2c3d;
}

.valor {
    font-size: 16px;
    gap: 4px;
    flex-direction: row;
    COLOR: #d4af7a;
}

.icono {
    font-size: 18px;
}


.icono {
    font-size: 30px;
    color: #d4af7a;
}

.separador {
    width: 1px;
    height: 45px;
    background: #d4af7a;
    opacity: 0.8;
}
/* Icono Experiencia */
.icono-experiencia {
    width: 38px;
    height: 38px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono-experiencia svg {
    width: 38px;
    height: 38px;
    display: block;
}
.balanza-titulo {
    display: block;
    font-size: 30px;
    margin-top: 8px;
    color: #d4af7a;
    text-align: center;
}
/* ===== MARCA JORGE ALVAREZ ABOGADOS ===== */

.marca-principal {
    text-align: center;
    padding: 12px 0 10px;
    color: #d4af7a;
    background-color: #102a43;
}

.balanza-marca {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    font-size: 38px;
    color: #d4af7a;
    margin-bottom: 4px;
}

.balanza-marca span {
    display: block;
    width: 250px;
    height: 2px;
    background-color: #d4af7a;
}

.marca-principal h1 {
    margin: 0;
    color: #d4af7a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: bold;
}

.abogados-marca {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    color: #d4af7a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: 8px;
    margin-top: 4px;
}

.abogados-marca span {
    display: block;
    width: 100px;
    height: 1px;
    background-color: #d4af7a;
}
@media (max-width: 768px) {
    .bloque-foto {
        width: 92%;
        max-width: 420px;
        margin: 25px auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .foto-abogado {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .panel-dorado {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
.enlaces {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 2px 18px;
}

    .hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.valores {
    font-size: 10px;
    width: 100%;
    padding: 0 3px;
    box-sizing: border-box;
    gap: 5px;
}
.valor {
    font-size: 14px;
    gap: 4px;
    flex-direction: row;
    align-items: center;
    color: #f2e4c4;
}

.valor:first-child {
    flex-direction: row;
}
.separador {
    height: 22px;
}
}
@media (max-width: 768px) {
    .logo .logo-texto {
        font-size: 15px !important;
    }
.valores {
    flex-direction: column;
    gap: 12px;
    padding: 15px 10px;
}

.separador {
    display: none;
}

.valor {
    width: 100%;
    justify-content: center;
}
@media (max-width: 768px) {
.bloque-foto {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.valores {
    margin-top: -20px;
}
.logo-lema {
    display: block;
    width: 100%;
    text-align: center;
    font-size:12px;
    letter-spacing: 2px;
    color: #f2e4c4;
    margin-top: 4px;
    white-space: nowrap;
}
.logo {
    flex-wrap: wrap;
}

}
}
@media (min-width: 769px) {
    .logo-lema {
        font-size: 10px;
        letter-spacing: 1.5px;
        white-space: nowrap;

    }
}
@media (max-width: 768px) {

    .menu {
        flex-direction: column;
        padding: 12px 10px;
        align-items: center;
    }

    .enlaces {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        justify-content: center;
    }

    .enlaces a {
        width: auto;
        text-align: center;
        box-sizing: border-box;
    }
    .marca-principal h1 {
    font-size: 38px;
    line-height: 1.05;
}
.logo-lema {
    margin-bottom: 14px;
}
}
.logo-principal {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto 20px;
}

.logo-principal img {
    width: 850px;
    max-width: 80%;
    height: auto;
    display: block;
    background-color: transparent;
}
.logo-principal {
    background: transparent !important;
}

.logo-principal img {
    background: transparent !important;
}
.firma-desarrollador {
    width: 100%;
    text-align: center;
    padding: 30px 15px;
    background-color: #102a43;
}

.firma-desarrollador img {
    width: 280px;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.valores-imagen {
    width: 100%;
    text-align: center;
    margin: 15px auto 25px;
}

.valores-imagen img {
    width: 600px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-estudio-img {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .logo-principal img,
    .valores-imagen img,
    .logo-estudio-img {
        width: auto;
        max-width: 90vw;
        height: auto;
    }
}
/* Versión 20261022-1: contraste en fondo azul y control de música. */
.areas > h2 { color: #f2e4c4; }
.presentacion .panel-titulo { color: #f8f4eb; }
.boton-musica {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border: 1px solid #d4af7a;
    border-radius: 28px;
    background: #102a43;
    color: #f2e4c4;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.boton-musica:hover { background: #243746; }
.boton-musica:focus-visible { outline: 3px solid #f2e4c4; outline-offset: 3px; }
body { padding-bottom: 76px; }
@media (max-width: 768px) {
    .boton-musica { display: inline-flex; font-size: 13px; padding: 10px 14px; }
}


/* ===== SEO 20261026-1: textos visibles y página de sumarios ===== */
.seo-intro {
    width: min(850px, 95%);
    margin: 0 auto 30px;
    text-align: center;
}
.seo-intro p {
    max-width: 830px;
    margin: 0 auto 18px;
    color: #f4e8d2;
    font-size: 17px;
    line-height: 1.65;
}
.enlace-sumarios,
.sumarios-cta {
    display: inline-block;
    padding: 13px 20px;
    border: 1px solid #d4af7a;
    background-color: #d4af7a;
    border-radius: 7px;
    color: #102a43;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.4;
}
.enlace-sumarios:hover,
.sumarios-cta:hover,
.enlace-sumarios:focus-visible,
.sumarios-cta:focus-visible {
    background-color: #f2d49a;
    color: #102a43;
}
/* La página de sumarios usa los mismos tonos azul y dorado del sitio. */
.sumarios-pagina { background-color: #eef1f3; text-align: left; }
.sumarios-pagina .menu { gap: 24px; }
.sumarios-pagina .enlaces { display: flex; flex-wrap: wrap; gap: 12px; }
.sumarios-cabecera {
    background: linear-gradient(140deg, #102a43, #183b53);
    padding: 52px 20px 48px;
    text-align: center;
    color: #fff;
}
.sumarios-cabecera h1 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background: none;
    color: #f2d49a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.2;
}
.sumarios-cabecera p {
    max-width: 780px;
    margin: 20px auto 0;
    color: #f2e4c4;
    font-size: 18px;
}
.sumarios-contenido {
    max-width: 1020px;
    padding: 45px 22px 60px;
    margin: 0 auto;
    color: #29323b;
}
.sumarios-contenido p,
.sumarios-contenido li {
    max-width: none;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 14px;
}
.sumarios-contenido h2 {
    font-size: 28px;
    margin: 32px 0 17px;
    color: #102a43;
}
.sumarios-contenido h3 {
    font-size: 20px;
    margin: 12px 0;
}
.sumarios-contenido ul { padding-left: 24px; margin-bottom: 18px; }
.sumarios-contenido li { padding-left: 4px; }
.sumarios-intro, .sumarios-tarjeta {
    background-color: white;
    padding: 24px 28px;
    border-radius: 10px;
    border-top: 4px solid #d4af7a;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.sumarios-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.sumarios-faq { margin-top: 26px; }
.sumarios-faq > div {
    background: #fff;
    padding: 18px 24px;
    border-radius: 8px;
    margin: 12px 0;
    border-left: 4px solid #d4af7a;
}
.sumarios-faq h3 { margin: 0 0 9px; }
.sumarios-contacto {
    margin-top: 42px;
    text-align: center;
    background: #102a43;
    padding: 30px 22px;
    border-radius: 10px;
    color: white;
}
.sumarios-contacto h2 { color: #f2d49a; margin: 0 0 16px; }
.sumarios-contacto p { color: #fff; }
.sumarios-miga {
    max-width: 1020px;
    margin: 0 auto 18px;
    color: #4c5761;
    font-size: 14px;
}
.sumarios-miga a { color: #102a43; }
.sumarios-pagina .firma-desarrollador { padding: 20px; }
@media (max-width: 768px) {
    .seo-intro p { font-size: 15px; }
    .enlace-sumarios { font-size: 14px; width: min(100%, 440px); }
    .sumarios-pagina .enlaces { justify-content: center; }
    .sumarios-cabecera { padding: 38px 18px; }
    .sumarios-cabecera p { font-size: 16px; }
    .sumarios-contenido { padding: 26px 15px 45px; }
    .sumarios-intro, .sumarios-tarjeta { padding: 20px 18px; }
    .sumarios-tarjetas { grid-template-columns: 1fr; }
    .sumarios-contenido h2 { font-size: 24px; }
}
