/*
Theme Name: Astra Gestión
Theme URI: https://www.gestionyeficiencia.com/
Description: Child of Astra for gestionyeficiencia.com. Matches the former Evolve look (dark header, Roboto, 2-column posts) without Bootstrap float sliders or mid-word title truncation.
Author: Gestión y Eficiencia
Template: astra
Version: 1.0.2
Text Domain: astra-gestion
*/

/* -------------------------------------------------------------------------
   Typography and titles — wrap at word boundaries only
   ------------------------------------------------------------------------- */

body,
button,
input,
select,
textarea {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.entry-title,
.entry-title a,
.ast-blog-single-element.ast-post-title a,
h1.entry-title,
h2.entry-title {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.site-title,
.site-title a {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  color: #456a8e;
  line-height: 1.2;
}

.site-title a:hover,
.site-title a:focus {
  color: #3a5a78;
}

.site-description {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  color: #1e73be;
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   Sticky header (Astra sticky module is Pro)
   ------------------------------------------------------------------------- */

#masthead {
  position: sticky;
  top: 0;
  z-index: 99;
}

body.admin-bar #masthead {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #masthead {
    top: 46px;
  }
}

.ast-above-header-bar,
.ast-primary-header-bar {
  border: 0;
}

.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-link {
  font-size: 14px;
}

/* -------------------------------------------------------------------------
   Two-column archive/home (Astra free grid is 3 columns / 33%)
   ------------------------------------------------------------------------- */

@media (min-width: 922px) {
  .ast-blog-layout-4-grid .ast-article-post {
    width: 50% !important;
  }
}

@media (max-width: 921px) {
  .ast-blog-layout-4-grid .ast-article-post {
    width: 100% !important;
  }
}

.ast-blog-layout-4-grid .entry-title,
.ast-blog-layout-4-grid .entry-title a {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Homepage hero — boxed banner, not full-viewport
   Original Evolve slides are 1196x450; width:100% at a wide screen
   made them ~700px tall. Cap height and match the 1200px content column.
   ------------------------------------------------------------------------- */

.gye-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: #1b242d;
}

.gye-hero__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px;
  max-height: 32vh;
}

.gye-hero__sizer {
  display: none;
}

.gye-hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gye-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: gye-hero-fade 40s infinite;
}

.gye-hero__slide:nth-child(1) {
  opacity: 1;
  animation-delay: 0s;
}

.gye-hero__slide:nth-child(2) {
  animation-delay: 8s;
}

.gye-hero__slide:nth-child(3) {
  animation-delay: 16s;
}

.gye-hero__slide:nth-child(4) {
  animation-delay: 24s;
}

.gye-hero__slide:nth-child(5) {
  animation-delay: 32s;
}

.gye-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  float: none;
}

.gye-hero__caption {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 42%;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.gye-hero__caption h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}

.gye-hero__caption p {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  line-height: 1.4;
}

.gye-hero__caption a {
  display: inline-block;
  background: #0bb697;
  color: #fff;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.9rem;
}

.gye-hero__caption a:hover,
.gye-hero__caption a:focus {
  background: #313a43;
  color: #fff;
}

@keyframes gye-hero-fade {
  0%,
  20% {
    opacity: 1;
  }
  24%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .gye-hero__viewport {
    height: 180px;
    max-height: 28vh;
  }

  .gye-hero__caption {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .gye-hero__caption h2 {
    font-size: 1.1rem;
  }

  .gye-hero__caption p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gye-hero__slide {
    animation: none;
    opacity: 0;
  }

  .gye-hero__slide:first-child {
    opacity: 1;
  }
}

/* Scroll to top: bottom-right, never centered */
#ast-scroll-top {
  right: 1.5rem;
  left: auto;
}

/* Buttons */
.ast-button,
.button,
input[type="submit"],
.wp-block-button__link {
  background-color: #0bb697;
  border-color: #0bb697;
  color: #fff;
}
