/*
Theme Name: 	Documento Activado v3
Description: 	Template para el proyecto Documento Activado — versión 3
Version: 		3.0
Author: 		María Fernanda Pizarro 
Author URI: 	https://www.fernandapizarro.cl/
Text Domain:    D21 Proyectos de Arte
*/


body{
	margin: 0;
	padding: 0;
	font-family: 'Source Sans Pro', sans-serif;
	background-color: #fff;
}

:root{
  --brand: #a00950;
}
p{
	font-size: 1rem;
	color: #000;
	text-align: left;
	line-height : 2rem;
}
h1{
     font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
	font-size: 1.8rem;
	color:var(--brand);
}
h2{
     font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
	font-size: 1.2rem;
	color:#a00950;
	text-transform: uppercase;
}
h3{
     font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
	font-size: 1rem;
	color:#a00950;
}
h4{
     font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
	font-size: 1rem;
	color:#a00950;
	text-transform: uppercase;
}
h5{
     font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem;
    color:#a00950;
}
a{
	color: #a00950;
	font-family:'Lato', sans-serif;
	text-decoration: none;
}
a:hover{
	color:#000;
	text-decoration: none;

}

.navbar-light .navbar-nav .nav-link{
	color: #333;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	padding: 0.5rem 1rem !important;
	position: relative;
	transition: color 0.3s ease;
}

.navbar-brand{
  padding-left: 0px;
}

nav .navbar .navbar-expand-lg .navbar-light .bg-light{
	padding-left: 0px;
}

.bg-light {
    background-color: #fff !important;
}

.menu {
	background-color: #fff;
	border-bottom: 2px solid #a00950;
	padding: 0.25rem 0;
}

.seccion1 {
	background-color: #ededed;
}

/* Hover del navbar: línea burdeo animada por debajo */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #a00950;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 80%;
  left: 10%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #a00950 !important;
}

/* Link activo */
.navbar-nav .nav-item.current-menu-item .nav-link,
.navbar-nav .nav-item.current_page_item .nav-link {
  color: #a00950 !important;
  font-weight: 700;
}

.navbar-nav .nav-item.current-menu-item .nav-link::after,
.navbar-nav .nav-item.current_page_item .nav-link::after {
  width: 80%;
  left: 10%;
}
.text{
	padding-top: 3rem;
	padding-bottom: 3rem;
}
footer{
	background-color: #a00950;
	padding-top: 3rem;
	padding-bottom: 3rem;
}
.textfooter{
	color: #ededed;
	line-height : 1.2rem;
	font-size: 0.8rem;
}

.btn-primary:hover {
    color: var(--brand) !important;
    background-color: #fff !important;
    border-color: var(--brand) !important;
}

.btn-primary {
    color: var(--brand);
    background-color: #fff !important;
    border-color: var(--brand) !important;
    border-radius: .50rem;
}

ul{
list-style:none;
font-size: 0.8rem;
margin: 0px;
padding: 10px;
text-decoration: none;
color: #5f5f5f;
}

li{
list-style:none;
text-decoration: none;
color: #5f5f5f;
}

ul li a{
text-decoration: none;
color: #5f5f5f;
}

#text{
	color:#000;
}

.fondodittborn{
	font-size: 0.9rem;
}

.inside-left-sidebar .product-categories .children {
    padding-left: 15px;
}

.inside-left-sidebar .product-categories .cat-parent > a {
    font-size: 20px;
    color: #000000;
}

div form input#s {
  width: 90%;
  border-radius: 5px;
  border: 1px solid #a00950;
  margin-top: 10px;
  padding: 10px;
  background-color: #dddddc;
  border-radius: .50rem;
}

div form button#searchsubmit {
  border: 1px solid #a00950;
  width:100%;
  padding: 10px;
  background-color: #dddddc;
  border-radius: .50rem;
}

div form input#searchsubmit {
  padding: 9px;
  background-color: #dddddc;
  border-radius: .50rem;
  border: 1px solid #a00950;
  color:#a00950;

}
.entry-category{
  text-decoration: none;
  color:#5f5f5f;
}

.border {
  border: 1px solid #000 !important;
}
#breadcrumbs{
color:#5f5f5f;
font-size: 0.8rem;
}

#breadcrumbs span span a{
color:#000;
}
#breadcrumbs span span a:hover{
color:#00749a;
}

* {box-sizing: border-box;}

.img-magnifier-container {
  position:relative;
}

.img-magnifier-glass {
  position: absolute;
  border: 2px solid #5f5f5f;
  border-radius: 50%;
  cursor: none;
  /*Set the size of the magnifier glass:*/
  width: 120px;
  height: 120px;
}

hr {
  margin: 1rem 0;
  color: inherit;
  background-color: #a00950;
  border: 0;
}

.imginicio{
	width: 500px;
	height: 300px;
}

/* Estilos de paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #a00950;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}

.pagination .current {
    background-color: #a00950;
    color: #fff;
}

.thumbnail {
  position: relative;
}

.thumbnail h3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 16px;
  text-align: center;
}

/* Ajustes para visibilidad y presentación del documento */
body.admin-bar {
  margin-top: 32px;
}

/* Contenedor del detalle del catálogo/documento */
.catalogo-detalle {
  background: #f8f9fa;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Encabezado de sección */
.catalogo-detalle h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Campos individuales */
.catalogo-detalle p {
  margin-bottom: 10px;
}

.catalogo-detalle strong {
  display: inline-block;
  min-width: 160px;
}


/* === Estilos personalizados para buscador y categorías === */

.search-form {
    margin-bottom: 2rem;
}

.search-form .form-control,
.search-form .form-select {
    border: 1px solid var(--brand);
    border-radius: .50rem;
    padding: 0.75rem;
    background-color: #dddddc;
    color: #a00950;
}

.search-form button {
    color: var(--brand);
    background-color: #dddddc;
    border: 1px solid var(--brand);
    border-radius: .50rem;
    padding: 0.75rem 1.5rem;
}

.search-form button:hover {
    background-color: var(--brand);
    color: #fff;
}

/* Categorías como botones en el sidebar */
.widget_categories ul {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #a00950;
    border-radius: .50rem;
    color: #a00950;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget_categories ul li {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #a00950;
    border-radius: .50rem;
    color: #a00950;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget_categories ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #a00950;
    border-radius: .50rem;
    color: #a00950;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget_categories ul li a:hover {
    background-color: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Subcategorías (jerarquía) */
.widget_categories ul .children {
    margin-left: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #a00950;
    border-radius: .50rem;
    color: #a00950;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Accesibilidad y fondo claro */
.card-body {
    background-color: #f8f9fa !important; /* Gris clarito */
    font-size: 16px; /* Tamaño mínimo accesible */
    color: #a00950; /* Contraste adecuado */
}

/* Asegurar tipografía base accesible */
body, p, li {
    font-size: 16px;
    line-height: 1.6;
}

/* Ajustes responsive adicionales */
img {
    max-width: 100%;
    height: auto;
}


/* Espaciado para títulos */
h1, h2, h3, h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Evitar pisar botones Bootstrap (solo aplica a submit que NO son .btn) */
button[type="submit"]:not(.btn),
input[type="submit"]:not(.btn),
.search-submit:not(.btn) {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: .50rem;
    padding: 0.75rem 1.5rem;
}

/* Cajas (card) con más padding */
.card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Fuente Titillium Web - cargada via wp_enqueue_style en functions.php */
body {
    font-family: 'Titillium Web', sans-serif;
}


/* Estilo limpio para buscador y select */
input[type="text"],
input[type="search"],
select {
    background-color: #ffffff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    border-radius: 0.25rem;
    font-family: 'Titillium Web', sans-serif;
}

/* Estilo para botones de categoría */
.custom-category-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 0;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #871651;
  color: #871651;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* Layout del sidebar: botones lado a lado + jerarquías */
.category-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.custom-category-btn{
  flex: 1 1 calc(50% - 10px);
}

.custom-category-btn.parent{
  flex: 1 1 100%;
  font-weight: 700;
  background-color: #871651;
  color: #fff;
  border-color: #871651;
}

.custom-category-btn.child{
  font-size: 0.95rem;
  border-style: dashed;
  opacity: .95;
}

.category-button {
    margin-right: 10px; /* separación a la derecha */
    margin-bottom: 10px; /* separación vertical opcional */
    display: inline-block;
    border: 1px solid #800040; /* color de borde */
    padding: 8px 12px;
    border-radius: 10px;
    color: #800040;
    text-decoration: none;
    font-weight: 500;
}

.custom-category-btn:hover {
  background-color: #871651;
  color: #fff;
}

/* Estilo para el párrafo principal del index */
.intro-paragraph {
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #222;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .intro-paragraph {
  text-align: left;
    font-size: 1.5rem;
  }
}

/* Estilo para descripción de categorías */
.category-description-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #222;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .category-description-text {
    font-size: 1.2rem;
  }
}

/* Unificación de botones generales del sitio */
.btn, .et_pb_button, .button {
  border: 2px solid #871651;
  color: #871651;
  background-color: transparent;
  border-radius: 10px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  font-weight: 500;
}

.btn:hover, .et_pb_button:hover, .button:hover, .custom-category-btn:hover {
  background-color: #871651;
  color: #fff;
}

/* Unificación de bordes */
* {
  border-width: 0.5px !important;
  box-sizing: border-box;
}

/* Separación sutil entre items del navbar */
.navbar-nav .nav-item:not(:last-child) {
  margin-right: 4px;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item:not(:last-child)::after {
    content: "·";
    color: #ccc;
    margin-left: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
  }
}

.card-footer {
  padding: .5rem 1rem;
  border-top: 1px solid rgba(0,0,0,.125);
  border-top-width: 1px;
}

.wp-block-button__link{
  margin: 12px 6px;
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none !important;
  border-radius: .50rem;
  border: 2px solid var(--brand) !important;
  color: var(--brand) !important;
  background-color: #fff !important;
  transition: all 0.3s ease;
}
.wp-block-button__link:hover{
  color: var(--brand) !important;
  background-color: #fff !important;
  border-color: var(--brand) !important;
  opacity: 0.9;
}

/* Autor (single-recursos) */
.author-card{
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 4px;
}
.author-avatar{
  max-width: 120px;
  height: auto;
}
.author-name{
  font-weight: 700;
}
.author-website{
  display: inline-block;
  font-style: italic;
  color: #6c757d;
  margin-bottom: 6px;
}
.author-bio{
  color: #212529;
}

/* ===============================
   BOTONES GUTENBERG – D21 BURDEO
   =============================== */
.wp-block-button__link,
.wp-block-button .wp-block-button__link.wp-element-button {
    background-color: #6b1d3a !important;
    color: #ffffff !important;
    border: 1px solid #6b1d3a !important;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.wp-element-button:hover {
    background-color: #53162c !important;
    border-color: #53162c !important;
    color: #ffffff !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: #6b1d3a !important;
    color: #ffffff !important;
    border: 1px solid #6b1d3a !important;
}

/* ===============================
   AUTHOR BOX – SINGLE RECURSOS
   =============================== */
.author-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    background-color: #ffffff;
}

.author-box img {
    border-radius: 50%;
}

.author-box h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.author-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}


/* Historia del documento (respeta saltos de línea y párrafos) */
.document-history p { margin: 0 0 10px; }
.document-history p:last-child { margin-bottom: 0; }


/* ===============================
   AUTHOR CARD – asegurar borde visible
   =============================== */
.author-card,
.author-box {
    border: 1px solid #6b1d3a;
    padding: 20px;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    background-color: #ffffff;
}

.author-card img,
.author-box img {
    border-radius: 50%;
}

.author-card h4,
.author-box h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.author-card p,
.author-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}


/* ===============================
   BOTONES GUTENBERG – COLOR SITIO (burdeo #a00950)
   =============================== */
.wp-block-button__link.wp-element-button,
.wp-block-button__link.wp-element-button.customize-unpreviewable,
.wp-block-button .wp-block-button__link.wp-element-button {
    background-color: #a00950 !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    padding: 10px 22px !important;
    border: 1px solid #a00950 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.25s ease;
}

.wp-block-button__link.wp-element-button:hover,
.wp-block-button__link.wp-element-button.customize-unpreviewable:hover,
.wp-block-button .wp-block-button__link.wp-element-button:hover {
    background-color: #53162c !important;
    border-color: #53162c !important;
    color: #ffffff !important;
}

.wp-block-button__link.wp-element-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(160, 9, 80, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: #a00950 !important;
    color: #ffffff !important;
    border: 1px solid #a00950 !important;
}

/* ===============================
   AUTHOR CARD – borde burdeo + separación
   =============================== */
.author-card,
.author-box {
    border: 1px solid #a00950 !important; /* burdeo sitio */
    padding: 20px !important;
    margin-top: 40px;
    background-color: #ffffff !important;
    border-radius: 6px;
}

/* Si el layout interno usa flex, mantenerlo */
.author-card,
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-card img,
.author-box img {
    border-radius: 4px; /* en tu captura no es circular */
    max-width: 140px;
    height: auto;
}

.author-card h4,
.author-box h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #a00950;
}

.author-card a,
.author-box a {
    color: #a00950;
    text-decoration: none;
}

.author-card a:hover,
.author-box a:hover {
    text-decoration: underline;
}

/* Separador alternativo si quisieras un HR burdeo */
.hr-burdeo,
.author-hr {
    border: 0;
    border-top: 1px solid #a00950;
    margin: 30px 0;
}

/* ===============================
   HERO BANNER – overlay sobre imagen
   =============================== */
.hero-overlay {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(80, 5, 40, 0.85) 0%,
        rgba(80, 5, 40, 0.6) 50%,
        rgba(80, 5, 40, 0.3) 100%
    );
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hero-overlay-content h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-overlay-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-btn {
    background-color: transparent;
    color: #fff !important;
    border-color: #fff !important;
}

.hero-btn:hover {
    background-color: #fff !important;
    color: #a00950 !important;
}

@media (min-width: 768px) {
    .hero-overlay {
        min-height: 480px;
    }
    .hero-overlay-content h1 {
        font-size: 3rem;
    }
    .hero-overlay-content p {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .hero-overlay-bg::after {
        background: rgba(80, 5, 40, 0.75);
    }
    .hero-overlay-content {
        text-align: center;
    }
    .hero-overlay-content p {
        max-width: 100%;
    }
}

/* ===============================
   AUTOR EN TARJETAS (category-recursos)
   =============================== */
.card-author {
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.card-author img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.card-author small {
    font-size: 0.85rem;
}

/* ===============================
   TARJETAS – botones siempre al fondo
   =============================== */
.card .card-body {
    display: flex;
    flex-direction: column;
}

.card .card-body .mt-auto {
    margin-top: auto;
}

/* ===============================
   TARJETAS DE SECCIONES – INDEX
   =============================== */
.categorias-home h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-seccion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-seccion:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card-seccion .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-seccion .card-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* ===============================
   SECCIONES INDEX – fondos alternados
   =============================== */
.section-alt {
    background-color: #f5f0f2;
}

.categorias-home {
    border-bottom: 3px solid #a00950;
}