html {
    background: #182231 !important;
}

body {
    background: #eee9df !important;
}

#tramites-escrituras {
    background: #eee9df !important;
    background-color: #eee9df !important;
}

#tramites-escrituras .container,
#tramites-escrituras .row,
#tramites-escrituras .col-md-12,
#tramites-escrituras .col-lg-10 {
    background: transparent !important;
}

/* =========================================================
   CONTENIDO · INSTRUMENTOS PÚBLICOS
   Patrón visual coordinado con Instrumentos Privados
========================================================= */

.te-wrap {
    padding-top: 0 !important;
    padding-bottom: 5.2rem !important;
}

.te-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0;
    background: transparent !important;
}

/* Información general: bloque editorial, sin caja ni acento lateral */

.te-info-block {
    width: 100%;
    margin: 0 0 1.8rem;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.te-info-title {
    margin: 0 0 .5rem !important;
    padding: 0 !important;
    color: #313833 !important;
    line-height: 1.22;
    text-align: left;
}

.te-info-text {
    margin: 0 !important;
    padding: 0 !important;
    color: #565f58;
    font-size: 1.04rem;
    line-height: 1.7;
    text-align: left;
}

.te-info-text strong {
    color: #313833;
    font-weight: 700;
}

/* Listado referencial */

.te-list {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

.te-list-label {
    margin: 0 0 .72rem !important;
    padding: 0 !important;
    color: #a8752e !important;
    font-family: "EB Garamond", serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.te-list-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

/* Equivalente visual al accordion-button cerrado de Instrumentos Privados.
   Se usa un color sólido equivalente al rgba sobre el fondo marfil para
   evitar que reglas heredadas alteren el tono real de las filas. */

#tramites-escrituras .te-list-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 1rem 1.25rem 1rem 2.15rem;
    overflow: hidden;
    background: #f2eee6 !important;
    background-color: #f2eee6 !important;
    color: #313833 !important;
    border: 1px solid rgba(143, 123, 82, .16) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: "EB Garamond", serif;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.25;
    transition: background-color .2s ease, border-color .2s ease;
}

#tramites-escrituras .te-list-item > span {
    display: block;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

#tramites-escrituras .te-list-item::before {
    content: "";
    position: absolute;
    left: .95rem;
    top: 50%;
    width: 4px;
    height: 1.2em;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #c78c31;
    box-shadow: 0 0 0 1px rgba(182, 160, 113, .08);
}

#tramites-escrituras .te-list-item:hover {
    background: #f4f0ea !important;
    background-color: #f4f0ea !important;
    border-color: rgba(143, 123, 82, .16) !important;
}

/* Nota y acción: mismos parámetros de Instrumentos Privados */

.te-contact-note {
    margin-top: 1.3rem;
}

.te-contact-note-inner {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.te-contact-note-text {
    margin: 0;
    color: #565f58;
    font-size: 1.04rem;
    line-height: 1.7;
    text-align: left !important;
}

.te-contact-note-text a {
    color: #7a5a34 !important;
    font-weight: 800;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

.te-contact-note-text a:hover,
.te-contact-note-text a:focus {
    color: #5f4324 !important;
    border-bottom-color: rgba(122, 90, 52, .72);
    opacity: .96;
}

.te-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .95rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1680px;
    margin: 1.8rem auto 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    --footer-dark: #182231;
}

.te-actions .btn,
.te-actions a.btn {
    margin: 0 !important;
    min-height: 46px;
    padding: .82rem 1.35rem !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    letter-spacing: .01em;
    line-height: 1.2;
    background: #e8ebe5 !important;
    color: #4e5750 !important;
    border: 1px solid rgba(110, 88, 60, .26) !important;
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.te-actions .btn:hover,
.te-actions .btn:focus,
.te-actions a.btn:hover,
.te-actions a.btn:focus {
    background: var(--footer-dark) !important;
    color: #ffffff !important;
    border-color: var(--footer-dark) !important;
    box-shadow: 0 10px 20px rgba(31, 40, 35, .22) !important;
    text-decoration: none !important;
}

/* Páginas internas: contenido visible sin animaciones de entrada */

.te-info-block,
.te-info-title,
.te-info-text,
.te-list,
.te-list-item,
.te-contact-note,
.te-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .te-wrap {
        padding-top: 0 !important;
        padding-bottom: 4.4rem !important;
    }

    .te-actions .btn,
    .te-actions a.btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .te-info-block {
        margin-bottom: 1.55rem;
    }

    .te-info-text,
    .te-contact-note-text {
        font-size: .98rem;
        line-height: 1.62;
    }
}

@media (max-width: 575px) {
    .te-wrap {
        padding-top: 0 !important;
        padding-bottom: 4rem !important;
    }

    #tramites-escrituras .te-list-item {
        min-height: 50px;
        padding-right: 1rem;
    }

    .te-actions {
        max-width: 100%;
        gap: .75rem;
    }
}
