/*
 Theme Name:   Astra Child San Blas
 Template:     astra
 Version:      1.0.0
 Description:  Dark theme para Cerrajeros San Blas
 Author:       Fran
 Text Domain:  astra-child-sanblas
*/

/* === RESET GLOBAL === */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }

/* === DARK THEME COMPLETO === */
body,
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-comment-list li,
.ast-plain-container {
  background-color: #0d0d10;
  color: #e8e8ee;
}

.site-header-primary-section-left,
.ast-primary-header-bar,
#masthead,
.main-header-bar,
.site-header,
.ast-header-break-point .main-header-bar {
  background-color: #16161c !important;
  border-bottom: 1px solid #2a2a34;
}

.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.ast-small-footer {
  background-color: #16161c !important;
  color: #a9a9b6;
  border-top: 1px solid #2a2a34;
}

/* Tipografia */
body { font-family: "Manrope", sans-serif; font-weight: 400; line-height: 1.7; }
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: #e8e8ee;
}

/* Enlaces */
a { color: #e23b32; transition: color .2s; }
a:hover { color: #b8261f; }
.entry-content a { color: #e23b32; }
.entry-content a:hover { color: #b8261f; }

/* Botones */
.ast-button, .button, button,
input[type=submit],
.wp-block-button__link {
  background-color: #e23b32 !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
}
.ast-button:hover, .button:hover, button:hover,
input[type=submit]:hover,
.wp-block-button__link:hover {
  background-color: #b8261f !important;
}

/* Secciones alternas */
.ast-separate-container .ast-article-single { background: #16161c; border: 1px solid #2a2a34; }

/* Cards / tarjetas */
.ast-separate-container .ast-article-post { background: #1a1a22; border: 1px solid #2a2a34; }

/* Texto secundario */
.entry-meta, .entry-meta a, .ast-comment-meta, .nav-links a { color: #a9a9b6; }

/* Sidebar / widgets */
.sidebar-main, .widget, .widget-title { background: transparent; color: #e8e8ee; }
.widget-title { border-bottom: 1px solid #2a2a34; }

/* CTA sticky movil */
.cta-sticky-wp {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; z-index: 9999;
}
.cta-sticky-wp a {
  flex: 1; padding: .9rem; text-align: center;
  font-weight: 700; font-size: .95rem;
  color: #fff !important; text-decoration: none;
}
.cta-sticky-wp .cta-phone { background: #e23b32; }
.cta-sticky-wp .cta-wa { background: #25d366; }

@media (min-width: 768px) { .cta-sticky-wp { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: 4.5rem; } }
