/*
Theme Name: Tacta - Astra Child
Theme URI: https://tacta.cl
Description: Tema hijo de Astra personalizado para Tacta - Juguetes sensoriales 3D.
Author: Sebastián Villegas Cortés
Author URI: https://tacta.cl
Template: astra
Version: 1.0.3
Text Domain: tacta-child
*/

/* ==========================================================================
   Variables de Color (Disponibles globalmente en todo el sitio)
   ========================================================================== */
:root {
    --tacta-bg-cream: #FDF6E3;
    --tacta-blue: #2A4B7C;
    --tacta-pink: #D87B88;
    --tacta-orange: #E59F55;
    --tacta-green: #8FBC8F;
    --tacta-red: #CB5B52;
    --tacta-yellow-border: #E8B94B;
    --text-dark: #333333;
}

/* Ocultar el título automático de WordPress en páginas personalizadas */
.page-template-page-login .entry-header {
    display: none !important;
}

/* ==========================================================================
   Estructura General y Barra Superior
   ========================================================================== */
.tacta-home-wrapper {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #FAFAFA;
}

.top-announcement-bar {
    background-color: var(--tacta-yellow-border);
    color: var(--text-dark);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: bold;
}

/* ==========================================================================
   Cabecera Principal (Global)
   ========================================================================== */
.tacta-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
}

.header-logo img {
    max-height: 80px;
    border-radius: 40px;
    object-fit: cover;
}

.header-search {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.header-search form {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.header-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--tacta-bg-cream);
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 0.95rem;
}

.header-search button {
    background-color: var(--tacta-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.header-search button:hover {
    background-color: var(--tacta-pink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-link {
    background-color: var(--tacta-blue);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(42, 75, 124, 0.2);
}

.login-link:hover {
    background-color: var(--tacta-green);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(143, 188, 143, 0.3);
}

.cart-icon {
    display: flex;
    align-items: center;
    background-color: var(--tacta-bg-cream);
    color: var(--text-dark) !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-icon:hover {
    background-color: white;
    border-color: var(--tacta-yellow-border);
    color: var(--tacta-blue) !important;
}

.cart-count {
    background-color: var(--tacta-red);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.85rem;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(203, 91, 82, 0.4);
}

/* ==========================================================================
   Menú de Navegación (Global)
   ========================================================================== */
.tacta-main-nav {
    background: linear-gradient(90deg, var(--tacta-blue) 0%, #1e365c 100%);
    padding: 0 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 15px 0;
    width: max-content;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.tacta-main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 12px 0;
}

.tacta-main-nav li a {
    display: block;
    padding: 10px 22px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.tacta-main-nav li:nth-child(1) a:hover,
.tacta-main-nav li:nth-child(1) a.active {
    background-color: var(--tacta-pink);
}

.tacta-main-nav li:nth-child(2) a:hover {
    background-color: var(--tacta-orange);
}

.tacta-main-nav li:nth-child(3) a:hover {
    background-color: var(--tacta-green);
}

.tacta-main-nav li:nth-child(4) a:hover {
    background-color: var(--tacta-red);
}

.tacta-main-nav li:nth-child(5) a:hover {
    background-color: var(--tacta-yellow-border);
    color: #333;
}

/* ==========================================================================
   Footer Premium con Colores de Marca (Global)
   ========================================================================== */
.tacta-main-footer {
    background-color: var(--tacta-blue);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0 !important;
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 10;
}

.footer-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, var(--tacta-pink) 0%, var(--tacta-orange) 25%, var(--tacta-green) 50%, var(--tacta-red) 75%, var(--tacta-yellow-border) 100%);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1.6fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    padding: 0 25px;
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

.footer-column:first-child {
    padding-left: 0;
}

.footer-column:last-child {
    padding-right: 0;
    border-right: none;
}

.footer-logo-wrapper {
    background: transparent;
    display: block;
    padding: 0;
    margin-bottom: 25px;
}

.footer-brand .footer-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--tacta-yellow-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 250px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    border-radius: 2px;
}

.col-nav h4 {
    color: var(--tacta-pink);
}

.col-nav h4::after {
    background-color: var(--tacta-pink);
}

.col-nav a:hover {
    color: var(--tacta-pink) !important;
    transform: translateX(5px);
}

.col-support h4 {
    color: var(--tacta-green);
}

.col-support h4::after {
    background-color: var(--tacta-green);
}

.col-support a:hover {
    color: var(--tacta-green) !important;
    transform: translateX(5px);
}

.col-news h4 {
    color: var(--tacta-orange);
}

.col-news h4::after {
    background-color: var(--tacta-orange);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a,
.contact-text {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
    white-space: nowrap;
}

.footer-newsletter p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--tacta-orange);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--tacta-red);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--tacta-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsivo general del Header y Footer */
@media (max-width: 992px) {
    .tacta-main-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .header-search {
        padding: 0;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .tacta-main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0 20px;
    }

    .tacta-main-nav ul.show-menu {
        display: flex;
    }

    .tacta-main-nav li a {
        text-align: center;
        padding: 15px;
        margin-bottom: 5px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 0;
    }

    .footer-column {
        border-right: none;
        padding: 0 20px;
    }

    .footer-column:nth-child(odd) {
        border-right: 1px dashed rgba(255, 255, 255, 0.2);
    }

    .footer-links a,
    .contact-text {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-column {
        padding: 0 !important;
        border-right: none !important;
    }

    .footer-logo-wrapper {
        display: flex;
        justify-content: center;
    }

    .footer-slogan {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links h4::after,
    .footer-newsletter h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        transform: none;
    }
}