/*
Theme Name: Astra Child
Template: astra
Version: 2.0.2
Author: La Salud Que Quieres
Description: Tema hijo de Astra — Sistema de diseño Premium Wellness v2 (idéntico al estilo de las landings). Protegido contra actualizaciones del tema padre.
Text Domain: astra-child
*/

/* ============================================
   SISTEMA DE DISEÑO — PREMIUM WELLNESS v2 (WP)
   Mismo lenguaje visual que las landings /retos/
   ============================================ */

:root {
    /* Mapeo de la paleta de Astra al sistema Premium Wellness */
    --ast-global-color-0: #14695A;   /* verde bosque (primario) */
    --ast-global-color-1: #0E4A3F;   /* verde profundo */
    --ast-global-color-2: #1C2421;   /* carbón (titulares) */
    --ast-global-color-3: #4A554F;   /* texto */
    --ast-global-color-4: #FFFFFF;   /* blanco */
    --ast-global-color-5: #F2EFE7;   /* crema oscuro (secciones alternas) */
    --ast-global-color-6: #1C2421;
    --ast-global-color-7: #E8E4DC;   /* piedra (bordes) */
    --ast-global-color-8: #0E2B24;   /* verde-negro (footer oscuro) */

    /* Tipografía */
    --ast-heading-font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ast-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Formas */
    --pw-radius: 18px;
    --pw-radius-sm: 10px;
    --pw-shadow: 0 6px 24px rgba(20, 45, 38, 0.08);
    --pw-shadow-lg: 0 16px 40px rgba(20, 45, 38, 0.14);
}

/* --- Fondo y base --- */
body,
.ast-container,
.ast-separate-container {
    background-color: #FAF9F6 !important;
    font-family: var(--ast-body-font-family);
    color: var(--ast-global-color-3);
    -webkit-font-smoothing: antialiased;
}

/* --- Tipografía --- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title,
.page-title,
.ast-site-title,
.ast-archive-title,
.elementor-heading-title {
    font-family: var(--ast-heading-font-family) !important;
    color: var(--ast-global-color-2) !important;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* --- Enlaces --- */
a {
    color: var(--ast-global-color-0);
    text-decoration: none;
}
a:hover {
    color: var(--ast-global-color-1);
}

/* ============================================
   BOTONES — píldora con gradiente (estilo landing)
   ============================================ */
.ast-button,
button,
input[type="submit"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.elementor-button {
    border-radius: 999px !important;
    font-family: var(--ast-body-font-family) !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    transition: all 0.25s ease !important;
    box-shadow: 0 6px 18px rgba(20, 105, 90, 0.22);
}
.elementor-button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: linear-gradient(135deg, #14695A 0%, #0E4A3F 100%) !important;
    border: none !important;
}
.elementor-button:hover,
.woocommerce a.button.alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(20, 105, 90, 0.34);
}

/* ============================================
   HEADER — blanco con blur (estilo landing)
   ============================================ */
.site-header,
.ast-primary-header-bar,
.ast-header-break-point .site-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E8E4DC !important;
}
.main-header-menu .menu-link,
.ast-header-custom-item a {
    color: var(--ast-global-color-2) !important;
    font-weight: 500;
    font-size: 0.95rem;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--ast-global-color-0) !important;
}
.main-header-menu .sub-menu {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 14px;
    box-shadow: var(--pw-shadow-lg);
    padding: 8px;
}
.main-header-menu .sub-menu .menu-link {
    border-radius: 8px;
}
.main-header-menu .sub-menu .menu-link:hover {
    background: #F2EFE7;
}
.site-title a, .site-title {
    font-family: var(--ast-heading-font-family) !important;
    color: var(--ast-global-color-0) !important;
    font-weight: 700;
}
/* Acento dorado en la última palabra del logo (igual que la landing) */
.site-title a .logo-accent,
.ast-footer-site-title .logo-accent,
.site-branding .site-title .logo-accent {
    color: #A9862F !important;
}
.site-description {
    color: var(--ast-global-color-7);
}

/* ============================================
   CARDS / BLOG / WIDGETS — tarjetas blancas
   ============================================ */
.ast-article-post,
.ast-article-single,
.ast-separate-container .ast-article-single,
.ast-separate-container .comment-respond,
.widget,
.ast-related-post-wrap .ast-related-post,
.ast-pagination .page-numbers {
    background: #FFFFFF;
    border: 1px solid #E8E4DC;
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
}
.ast-article-post {
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ast-article-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--pw-shadow-lg);
}
.widget {
    padding: 24px;
}
.widget-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

/* --- Entradas del blog --- */
.ast-article-post .entry-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.ast-article-post .entry-title a {
    color: var(--ast-global-color-2);
}
.ast-article-post .entry-title a:hover {
    color: var(--ast-global-color-0);
}
.ast-article-post .entry-meta,
.ast-article-post .posted-on,
.ast-article-post .comments-link,
.ast-article-post .ast-article-category {
    color: var(--ast-global-color-7);
    font-size: 0.82rem;
}
.ast-article-post .entry-content p {
    color: var(--ast-global-color-3);
    line-height: 1.7;
}
.ast-article-post .read-more a {
    font-weight: 600;
    color: var(--ast-global-color-0);
}

/* --- Imágenes de entrada --- */
.ast-article-post .post-thumb img,
.ast-featured-post .post-thumb img,
.wp-block-image img {
    border-radius: var(--pw-radius-sm);
}

/* ============================================
   PAGINACIÓN / BREADCRUMBS
   ============================================ */
.ast-pagination .page-numbers {
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--ast-global-color-2);
}
.ast-pagination .page-numbers.current {
    background: var(--ast-global-color-0);
    color: #FFFFFF;
    border-color: var(--ast-global-color-0);
}

/* ============================================
   BLOQUES DE GUTENBERG
   ============================================ */
.wp-block-quote,
blockquote {
    border-left: 4px solid var(--ast-global-color-0) !important;
    background: #E3EFEA;
    border-radius: 0 var(--pw-radius-sm) var(--pw-radius-sm) 0;
    padding: 16px 20px;
    color: var(--ast-global-color-2);
}
.wp-block-pullquote {
    border-top: 3px solid #C9A24B;
    border-bottom: 3px solid #C9A24B;
    color: var(--ast-global-color-2);
}
.wp-block-table {
    border-radius: var(--pw-radius-sm);
    overflow: hidden;
}
.wp-block-table td, .wp-block-table th {
    border-color: #E8E4DC;
}
.wp-block-separator {
    color: #E8E4DC;
}

/* ============================================
   FORMULARIOS (Fluent Forms, comentarios, WC)
   ============================================ */
.fluentform .ff-el-input--label label,
.comment-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ast-global-color-2);
}
.fluentform input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.fluentform select,
.fluentform textarea,
.comment-form input,
.comment-form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: var(--pw-radius-sm) !important;
    border: 1px solid #E8E4DC !important;
    background: #FAF9F6 !important;
    color: var(--ast-global-color-2) !important;
    padding: 13px 16px !important;
    font-family: var(--ast-body-font-family) !important;
}
.fluentform input:focus,
.fluentform textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--ast-global-color-0) !important;
    box-shadow: 0 0 0 3px rgba(20, 105, 90, 0.15) !important;
    outline: none;
}
.fluentform .ff-btn {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #D9B45F 0%, #C9A24B 45%, #A9862F 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(201, 162, 75, 0.4) !important;
}

/* ============================================
   ELEMENTOR — componentes alineados con la landing
   ============================================ */
.elementor-widget-image img {
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
}
.elementor-icon-box-title,
.elementor-counter-title {
    font-family: var(--ast-heading-font-family) !important;
}
.elementor-widget-divider .elementor-divider-separator {
    border-color: #E8E4DC !important;
}
.elementor-widget-icon-box .elementor-icon {
    color: var(--ast-global-color-0) !important;
}

/* ============================================
   WOOCOMMERCE — ligero (aunque no sea prioritario)
   ============================================ */
.woocommerce ul.products li.product {
    background: #FFFFFF;
    border: 1px solid #E8E4DC;
    border-radius: var(--pw-radius);
    padding: 18px;
    box-shadow: var(--pw-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--pw-shadow-lg);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ast-heading-font-family);
    color: var(--ast-global-color-2);
}
.woocommerce .price {
    color: var(--ast-global-color-0) !important;
    font-weight: 700;
}

/* ============================================
   FOOTER — verde-negro (estilo landing)
   ============================================ */
.site-footer,
.ast-footer-overlay,
.ast-small-footer {
    background: var(--ast-global-color-8) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    border-top: none !important;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.ast-footer-overlay h1, .ast-footer-overlay h2, .ast-footer-overlay h3, .ast-footer-overlay h4,
.ast-small-footer .ast-footer-site-title {
    color: #FFFFFF !important;
}
.site-footer a,
.ast-footer-overlay a,
.ast-small-footer a {
    color: rgba(255, 255, 255, 0.65) !important;
}
.site-footer a:hover,
.ast-footer-overlay a:hover,
.ast-small-footer a:hover {
    color: #C9A24B !important;
}
.ast-footer-widget-area .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ============================================
   hCaptcha — el widget "Soy humano" no desborda
   ============================================ */
.h-captcha,
.fluentform .h-captcha,
.wpcf7-form .h-captcha,
.gform_wrapper .h-captcha,
.elementor-widget-form .h-captcha {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}
.h-captcha iframe {
    max-width: 100% !important;
    display: block !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ast-article-post {
        padding: 20px;
    }
    .main-header-menu .sub-menu {
        border-radius: 10px;
    }
}


/* Ocultar el footer builder viejo de Astra (solo tenía copyright) */
#colophon {
    display: none !important;
}


/* El ast-container de Astra trae fondo blanco: transparente dentro del footer */
.pw-footer .ast-container {
    background: transparent !important;
    max-width: 1100px;
}

/* ============================================
   FOOTER 3 COLUMNAS — estilo landing /retos/fatiga/
   ============================================ */
.pw-footer {
    background: var(--ast-global-color-8) !important; /* #0E2B24 verde-negro */
    color: rgba(255, 255, 255, 0.65);
    padding: 56px 0 0;
}
.pw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.pw-footer-col h4 {
    color: #FFFFFF !important;
    font-family: var(--ast-heading-font-family) !important;
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.pw-footer-col p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}
.pw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pw-footer-col ul li {
    margin-bottom: 10px;
}
.pw-footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.pw-footer-col ul li a:hover {
    color: #C9A24B !important;
}
.pw-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}
.pw-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    margin: 0;
}
@media (max-width: 768px) {
    .pw-footer { padding: 40px 0 0; }
    .pw-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
