/*
Theme Name:  Astra child
Author:      Clelia Angulo
Author URL:  www.cleliaangulo.com
Description: Tema hijo para hacer personalizaciones de c贸digo
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template:    astra
*/


@import url("../astra/style.css");

:root{
  --bg:#0f1419;        /* un solo color de fondo */
  --card:#0f1620;
  --bd:#263241;
  --muted:#9fb0c3;
  --text:#e6edf5;
  --accent:#22d3ee;
}

/*
 * PARA QUITAR EL MARCO BLANCO
 */
.site .site-content #primary .ast-article-single, .ast-separate-container .site-content #secondary .widget {
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
}

/*
 * PARA LA CUADRICULA DEL POST
 */
 
 /* Autor debajo del título */
.ca-author{display:flex;align-items:center;gap:10px;margin-top:8px}
.ca-author .ca-avatar{border-radius:999px;width:28px;height:28px;display:block}
.ca-author .ca-author-link{color:var(--text);text-decoration:none;font-weight:500;font-size:14px}
.ca-author .ca-author-link:hover{text-decoration:none}


/*
 * SEARCH RESULTS
 */

/* ===== SEARCH ROW STYLE ===== */
.search-results-list {
  display: flex !important; 
  flex-direction: column !important; 
  gap: 32px;
  margin: 2rem 0;
}

.search-result-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #0f1620;  /* 👈 fondo oscuro */
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}

.search-result-row:hover {
  transform: translateY(-6px);                   /* levanta un poco */
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);       /* sombra más fuerte */
  background: #151d29;                           /* un poquito más claro */
}

.search-thumb {
  flex: 0 0 250px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.search-result-row:hover .search-thumb img {
  transform: scale(1.05);
}

.wp-block-search__label{
	display:none;
}





.search-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
  display: block;
}

.search-result-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
  line-height: 1.3;
}

.search-result-title a {
  color: #fff;
  text-decoration: none;
}

.search-result-title a:hover {
  color: var(--accent, #00bcd4);
}

.search-result-excerpt {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0 0 12px;
}

.search-readmore {
  align-self: flex-start;
  background: var(--accent, #00bcd4);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  border:1px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease;
}

.search-readmore:hover {
  background: #151d29;
  border:1px solid var(--bd);
  color: var(--accent, #00bcd4);
  
}
.ast-blog-layout-4-grid .ast-article-post {
  width: 100%;
}
.ast-separate-container .ast-blog-layout-4-grid .ast-article-post {
  padding: 17px 1em 17px;
}
.ast-blog-layout-4-grid .ast-article-post {
  margin-bottom: 0;
}

.search .ast-archive-description {
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 0px;
}
.ast-archive-description .ast-archive-title {
  font-size: 1em;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  .search-result-row {
    flex-direction: column;
  }

  .search-thumb {
    flex: unset;
    width: 100%;
    height: auto;
  }
}



/* ==== SIDEBAR ==== */

.widget-area h2,
.widget-area h3 {
  font-size: 16px !important;      /* títulos más pequeños */
  font-weight: 600 !important;
  color: var(--text) !important;
  margin: 0 0 10px !important;
}

.widget-area ul li {
  font-size: 13px !important;      /* ítems de listas más compactos */
  margin-bottom: 6px !important;
}

.widget-area ul {
    padding-left: 0rem !important;
}

.widget-area a {
  color: var(--text) !important;
  text-decoration: none !important;
}

.widget-area a:hover {
  color: var(--accent) !important;  /* hover llamativo */
}

.widget-area .search-form input[type="search"],
.widget-area input[type="search"] {
  width: 100% !important;
  background: #0d141e !important;
  color: var(--text) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}


/* ==== UL VIÑETAS EN PARRAFO ==== */

.elementor-widget-container ul {
  margin: 1.5em 0 1.5em 0em; 
}

.elementor-widget-container ul li::marker {
  color: #F2F2F2; 
}

.elementor-widget-container p , .elementor-widget-container ul li {
  margin-bottom: 0.4em;
}

/* ==== BORDE DE FOOTER ==== */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	border-style: none !important;
}



/* =====================================================
   CATEGORY PAGE STYLE Astra Child
   ===================================================== */

/* Contenedor general */
.category-results-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 2rem 0;
}

/* Cada post */
.category-result-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #0f1620;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}

.category-result-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  background: #151d29;
}

/* Imagen */
.category-thumb {
  flex: 0 0 250px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.category-result-row:hover .category-thumb img {
  transform: scale(1.05);
}

/* Contenido */
.category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
}

.category-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
  line-height: 1.3;
}

.category-title a {
  color: #fff;
  text-decoration: none;
}

.category-title a:hover {
  color: var(--accent, #00bcd4);
}

.category-excerpt {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0 0 12px;
}

.category-readmore {
  align-self: flex-start;
  background: var(--accent, #00bcd4);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease;
}

.category-readmore:hover {
  background: #151d29;
  border: 1px solid var(--accent, #00bcd4);
  color: var(--accent, #00bcd4);
}

/* Encabezado */
.category .ast-archive-description {
  padding: 1.5em 0;
  text-align: left;
}

.category .ast-archive-title {
  font-size: 1.8em;
  color: #fff;
  font-weight: 700;
}

/* Paginación */
.category .pagination {
  text-align: center;
  margin-top: 2rem;
}

.category .pagination a,
.category .pagination span {
  background: #0f1620;
  border-radius: 6px;
  color: #ccc;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category .pagination a:hover,
.category .pagination .current {
  background: var(--accent, #00bcd4);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .category-result-row {
    flex-direction: column;
  }

  .category-thumb {
    flex: unset;
    width: 100%;
    height: 200px;
  }
}


/* =====================================================
 * ARCHIVE PAGE STYLE Astra Child
 * ===================================================== */


.archive-results-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 2rem 0;
}

.archive-result-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background: #0f1620;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}

.archive-result-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  background: #151d29;
}

/* Imagen */
.archive-thumb {
  flex: 0 0 250px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.archive-result-row:hover .archive-thumb img {
  transform: scale(1.05);
}

/* Contenido */
.archive-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
}

.archive-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
  line-height: 1.3;
}

.archive-title a {
  color: #fff;
  text-decoration: none;
}

.archive-title a:hover {
  color: var(--accent, #00bcd4);
}

.archive-excerpt {
  font-size: 0.95rem;
  color: #ccc;
  margin: 0 0 12px;
}

.archive-readmore {
  align-self: flex-start;
  background: var(--accent, #00bcd4);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease;
}

.archive-readmore:hover {
  background: #151d29;
  border: 1px solid var(--accent, #00bcd4);
  color: var(--accent, #00bcd4);
}

/* Encabezado */
.archive .ast-archive-description {
  padding: 1.5em 0;
  text-align: left;
}

.archive .ast-archive-title {
  font-size: 1.8em;
  color: #fff;
  font-weight: 700;
}

/* Paginación */
.archive .pagination {
  text-align: center;
  margin-top: 2rem;
}

.archive .pagination a,
.archive .pagination span {
  background: #0f1620;
  border-radius: 6px;
  color: #ccc;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.archive .pagination a:hover,
.archive .pagination .current {
  background: var(--accent, #00bcd4);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .archive-result-row {
    flex-direction: column;
  }

  .archive-thumb {
    flex: unset;
    width: 100%;
    height: 200px;
  }
}

/*=====================
 * FLECHITA  TOP TOP
 * ====================*/
.ast-icon.icon-arrow svg path {
  fill: #000 !important;  
}

@media (max-width: 921px) {
  .ast-builder-menu-1 .main-header-menu, .ast-builder-menu-1 .main-header-menu .sub-menu {
    background-color: #151D18;
	}
	
	/* Hover sutil con línea y fondo */
  .ast-builder-menu-1 .main-header-menu li a:hover {
    background-color: #1e2a23;
    color: #00ff91; /* verde claro o cámbialo por el de tu marca */
    border-left: 3px solid #00ff91;
    padding-left: 25px;
  }

  /* Estado activo (para página actual) */
  .ast-builder-menu-1 .main-header-menu li.current-menu-item > a {
    background-color: #1a241f;
    color: #00ff91;
    border-left: 3px solid #00ff91;
  }

  /* Suaviza el efecto al abrir submenús */
  .ast-builder-menu-1 .main-header-menu .menu-item-has-children > a::after {
    transition: transform 0.3s ease;
  }

  .ast-builder-menu-1 .main-header-menu .menu-item-has-children.ast-submenu-open > a::after {
    transform: rotate(180deg);
  }
	
/* Bordes entre los ítems (oscurecidos) */
.ast-header-break-point .main-navigation ul .menu-item .menu-link{
    border-color: #1d2722;

  }



}

