/*
 Theme Name:   Kadence Child AVST
 Theme URI:    https://avstweb.org
 Description:  Tema hijo de Kadence para AVST
 Author:       AVST
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child
*/

/* ── Paleta de colores AVST ── */
:root {
  --avst-green:   #3a7d4f;
  --avst-green2:  #2d6140;
  --avst-orange:  #e8845a;
  --avst-blue:    #5ab4c8;
  --avst-sand:    #f7f0e6;
  --avst-dark:    #1a1a1a;
  --avst-gray:    #f4f4f4;
}

/* ── Links y color primario ── */
a { color: var(--avst-green); }
a:hover { color: var(--avst-green2); }

/* ── Botones ── */
.wp-block-button__link,
.kb-button {
  background-color: var(--avst-green) !important;
  border-color: var(--avst-green) !important;
  color: #fff !important;
  border-radius: 6px !important;
}
.wp-block-button__link:hover,
.kb-button:hover {
  background-color: var(--avst-green2) !important;
  border-color: var(--avst-green2) !important;
}

/* ── Header ── */
.site-header,
.kadence-sticky-header {
  border-bottom: 3px solid var(--avst-orange);
}

/* ── Hero imagen ── */
.avst-hero-image {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  line-height: 0;
}
.avst-hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Hero texto (debajo de la imagen) ── */
.avst-hero {
  background: linear-gradient(135deg, var(--avst-green) 0%, var(--avst-green2) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.avst-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.avst-hero p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 24px;
  opacity: 0.92;
}
.avst-hero .hero-btn {
  display: inline-block;
  background: var(--avst-orange);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.avst-hero .hero-btn:hover {
  background: #d4724a;
  color: #fff;
}

/* ── Móvil: ocultar título del sitio, solo logo ── */
@media (max-width: 768px) {
  .site-branding .site-title,
  .site-branding .site-description,
  header .kadence-site-title,
  .header-site-title {
    display: none !important;
  }
  .avst-hero-image img {
    height: 220px;
  }
}

/* ── Sección de info (cards) ── */
.avst-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.avst-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid var(--avst-green);
  text-align: center;
}
.avst-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.avst-card h3 {
  font-size: 1.1rem;
  color: var(--avst-green);
  margin-bottom: 10px;
}
.avst-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ── Info de contacto en inicio ── */
.avst-contact-bar {
  background: var(--avst-sand);
  padding: 36px 20px;
  text-align: center;
  border-top: 2px solid var(--avst-orange);
}
.avst-contact-bar p {
  margin: 6px 0;
  font-size: 1rem;
  color: var(--avst-dark);
}
.avst-contact-bar strong {
  color: var(--avst-green);
}

/* ── Acordeón DIAN ── */
.avst-steps {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.avst-step {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.avst-step summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.avst-step summary::-webkit-details-marker { display: none; }
.avst-step summary::marker { display: none; }

.avst-step summary:hover {
  background: #f4faf6;
}

.avst-step[open] summary {
  background: var(--avst-green);
  color: #fff;
}
.avst-step[open] summary .avst-step-num {
  background: #fff;
  color: var(--avst-green);
}
.avst-step[open] summary .avst-step-title {
  color: #fff;
}

.avst-step-num {
  background: var(--avst-green);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.avst-step-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--avst-dark);
  flex: 1;
}

.avst-step-arrow {
  font-size: 0.85rem;
  color: #999;
  transition: transform 0.2s;
}
.avst-step[open] .avst-step-arrow {
  transform: rotate(180deg);
  color: #fff;
}

.avst-step-body {
  padding: 20px 24px 20px 76px;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.avst-step-num {
  background: var(--avst-green);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.avst-step-content h3 {
  color: var(--avst-green);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.avst-step-content p,
.avst-step-content ul {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}
.avst-step-content ul {
  padding-left: 18px;
}
.avst-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.avst-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--avst-orange);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}
.avst-download-btn:hover {
  background: #d4724a;
  color: #fff !important;
}
.avst-download-btn.pendiente {
  background: #aaa;
  cursor: default;
  pointer-events: none;
}
.avst-step-status {
  display: inline-block;
  background: #e8f5ee;
  color: var(--avst-green);
  border: 1px solid var(--avst-green);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0;
}

/* ── Sección misión/visión ── */
.avst-mv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
.avst-mv-box {
  background: var(--avst-sand);
  border-radius: 10px;
  padding: 30px 26px;
  border-left: 5px solid var(--avst-green);
}
.avst-mv-box h2 {
  color: var(--avst-green);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.avst-mv-box p {
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}

/* ── Objetivos ── */
.avst-objectives {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.avst-objectives ul {
  list-style: none;
  padding: 0;
}
.avst-objectives ul li {
  padding: 12px 16px 12px 48px;
  position: relative;
  border-bottom: 1px solid #eee;
  color: #444;
  font-size: 0.97rem;
  line-height: 1.6;
}
.avst-objectives ul li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--avst-green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Formulario de contacto ── */
.avst-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  margin-bottom: 4px;
  transition: border-color 0.2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--avst-green);
  outline: none;
}
.wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}
.wpcf7-form .wpcf7-submit {
  background: var(--avst-green);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: auto !important;
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--avst-green2);
}

/* ── Footer ── */
.site-footer {
  background: var(--avst-dark);
  color: #ccc;
}
.site-footer a {
  color: var(--avst-orange);
}

/* ── Títulos de página ocultos ── */
.wp-block-post-title,
.entry-title,
h1.page-title,
.kadence-breadcrumbs + h1,
.entry-header .page-title {
  display: none;
}
.entry-header {
  padding: 0 !important;
  margin: 0 !important;
}
.entry-hero.page-hero-section .entry-header {
  min-height: 40px !important;
}

/* ── Separador de sección ── */
.avst-section-title {
  text-align: center;
  color: var(--avst-green);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0 8px;
  position: relative;
}
.avst-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--avst-orange);
  margin: 10px auto 0;
  border-radius: 2px;
}
