/*
Theme Name: Astra Child - Fumigación SD
Template: astra
Description: Child theme for fumigacionsantodomingo.com
Version: 1.1
*/

/* ========= VARIABLES ========= */
:root {
  --verde: #1a7a2e;
  --verde-oscuro: #145c22;
  --verde-claro: #e8f5ec;
  --amarillo: #f5a623;
  --texto: #1a1a1a;
  --gris: #6b7280;
  --gris-claro: #f8f9fa;
  --blanco: #ffffff;
  --sombra: 0 4px 24px rgba(0,0,0,0.10);
  --radio: 10px;
}

/* ========= HEADER BACKGROUND — forzar verde en todos los builders ========= */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-above-header-bar,
#masthead .ast-below-header-bar,
#ast-desktop-header .ast-primary-header-bar,
#ast-mobile-header .ast-primary-header-bar,
.site-header,
.ast-primary-header-bar {
  background-color: #1a7a2e !important;
  background: #1a7a2e !important;
}

/* ========= SITE TITLE / LOGO — blanco ========= */
.ast-site-identity .site-title a,
.site-title a,
#masthead .site-title a,
.ast-builder-layout-element[data-section="title_tagline"] .site-title a {
  color: #ffffff !important;
}

.site-description,
#masthead .site-description {
  color: rgba(255,255,255,0.75) !important;
}

/* ========= MENÚ DESKTOP — links blancos ========= */
#masthead .ast-builder-menu-1 .menu-item > .menu-link,
#masthead .ast-builder-menu-1 .menu-link,
#primary-site-navigation-desktop .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link {
  color: #ffffff !important;
}

/* hover links menú — amarillo */
#masthead .ast-builder-menu-1 .menu-item:hover > .menu-link,
#masthead .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
  color: #f5a623 !important;
}

/* ========= MENÚ MOBILE toggle — icono blanco ========= */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
#ast-mobile-header .ast-mobile-menu-trigger-minimal {
  color: #ffffff !important;
  fill: #ffffff !important;
  background: transparent !important;
  border: none !important;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  fill: #ffffff !important;
}

/* ========= MOBILE POPUP MENU ========= */
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner,
.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-desktop-header-content {
  background-color: #145c22 !important;
}

.ast-mobile-header-content .menu-link,
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link,
#ast-hf-mobile-menu .menu-link,
#ast-mobile-site-navigation .menu-link {
  color: #ffffff !important;
}

.ast-mobile-header-content .menu-item:hover > .menu-link,
#ast-hf-mobile-menu .menu-item:hover > .menu-link {
  color: #f5a623 !important;
  background: rgba(255,255,255,0.08) !important;
}

/* ========= GENERAL ========= */
body { font-family: 'Inter', system-ui, sans-serif; color: #1a1a1a; line-height: 1.7; }
a { color: #1a7a2e; text-decoration: none; }
a:hover { color: #145c22; text-decoration: underline; }

/* ========= HEADINGS ========= */
.entry-content h1 { color: #145c22; font-size: 2rem; line-height: 1.25; }
.entry-content h2 {
  color: #1a7a2e;
  font-size: 1.4rem;
  margin-top: 2rem;
  border-left: 4px solid #f5a623;
  padding-left: 12px;
}
.entry-content h3 { color: #145c22; font-size: 1.15rem; }

/* ========= BUTTONS ========= */
.wp-block-button__link,
.wp-element-button {
  background: #1a7a2e !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.1s;
}
.wp-block-button__link:hover {
  background: #145c22 !important;
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
}

/* ========= LIST ITEMS ========= */
.entry-content ul { list-style: none; padding: 0; }
.entry-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid #eee;
}
.entry-content ul li:last-child { border-bottom: none; }
.entry-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a7a2e;
  font-weight: 700;
}

/* ========= FAQ ========= */
.entry-content h2 + p {
  background: #f8f9fa;
  border-left: 4px solid #1a7a2e;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}

/* ========= TABLE ========= */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.wp-block-table thead { background: #1a7a2e; color: #fff; }
.wp-block-table th { padding: 14px 18px; text-align: left; font-weight: 600; }
.wp-block-table td { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; }
.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:nth-child(even) td { background: #e8f5ec; }

/* ========= BLOG CARDS ========= */
.ast-article-inner, .type-post {
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e5e7eb;
}
.ast-article-inner:hover, .type-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

/* ========= CONTACT FORM ========= */
.wpcf7 input[type=text],
.wpcf7 input[type=tel],
.wpcf7 input[type=email],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
  margin-top: 6px;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: #1a7a2e;
  outline: none;
}
.wpcf7 label { font-weight: 600; display: block; margin-bottom: 12px; }
.wpcf7 input[type=submit] {
  background: #1a7a2e;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  margin-top: 8px;
}
.wpcf7 input[type=submit]:hover { background: #145c22; }

/* ========= FOOTER ========= */
.site-footer,
#colophon,
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  background-color: #145c22 !important;
  background: #145c22 !important;
  color: rgba(255,255,255,0.85) !important;
}
.site-footer a,
#colophon a,
.ast-footer-copyright a {
  color: #f5a623 !important;
}
.ast-footer-copyright,
.ast-footer-copyright p,
.site-footer-focus-item {
  color: rgba(255,255,255,0.85) !important;
}

/* ========= HERO IMAGE — limitar altura ========= */
.ast-single-post-featured-section img,
.post-thumb img {
  max-height: 420px !important;
  object-fit: cover;
  width: 100%;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .entry-content h1 { font-size: 1.5rem; }
  .entry-content h2 { font-size: 1.2rem; }
}

/* ========= LOGO SIZE & TITLE VISIBILITY ========= */
/* Logo más grande */
.ast-logo-svg,
.custom-logo,
.site-logo-img img,
.ast-site-identity img,
#masthead .custom-logo,
.ast-header-logo img {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .custom-logo,
  .site-logo-img img,
  .ast-site-identity img {
    width: 130px !important;
    max-width: 130px !important;
  }
}

/* Ocultar título de texto del sitio */
.site-title,
.ast-site-identity .site-title,
#masthead .site-title,
.ast-builder-layout-element[data-section="title_tagline"] .site-title {
  display: none !important;
}

/* Ocultar tagline */
.site-description,
.ast-site-identity .site-description,
#masthead .site-description {
  display: none !important;
}
