/*
Theme Name: GalaxiaSync
Theme URI: https://galaxiasync.com
Author: Builder IA
Author URI: https://galaxiasync.com
Description: Theme profesional para sitios web generados con Builder IA. Totalmente personalizable via WordPress Customizer. Compatible con FooGallery, Strong Testimonials, Contact Form 7 y WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galaxiasync
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready

GalaxiaSync WordPress Theme, Copyright 2024 Builder IA
GalaxiaSync is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   CSS Variables (Customizer-controlled)
   ========================================================================== */
:root {
    /* Colors - These are overridden by Customizer */
    --gs-primary: #3b82f6;
    --gs-secondary: #1e40af;
    --gs-accent: #f59e0b;
    --gs-background: #0f172a;
    --gs-surface: #1e293b;
    --gs-text: #f8fafc;
    --gs-text-muted: #94a3b8;
    --gs-border: #334155;
    
    /* Typography */
    --gs-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gs-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --gs-section-padding: 80px;
    --gs-container-width: 1280px;
    
    /* Transitions */
    --gs-transition: 0.3s ease;
    
    /* Border Radius */
    --gs-radius-sm: 4px;
    --gs-radius-md: 8px;
    --gs-radius-lg: 16px;
    --gs-radius-xl: 24px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--gs-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gs-text);
    background-color: var(--gs-background);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gs-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
    color: var(--gs-text-muted);
}

a {
    color: var(--gs-primary);
    text-decoration: none;
    transition: color var(--gs-transition);
}

a:hover {
    color: var(--gs-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.gs-container {
    width: 100%;
    max-width: var(--gs-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gs-section {
    padding: var(--gs-section-padding) 0;
}

.gs-section--dark {
    background-color: var(--gs-surface);
}

.gs-section--primary {
    background-color: var(--gs-primary);
}

.gs-grid {
    display: grid;
    gap: 30px;
}

.gs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gs-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .gs-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .gs-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gs-grid--4,
    .gs-grid--3,
    .gs-grid--2 { grid-template-columns: 1fr; }
    
    :root {
        --gs-section-padding: 60px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--gs-font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--gs-radius-md);
    cursor: pointer;
    transition: all var(--gs-transition);
}

.gs-btn--primary {
    background-color: var(--gs-primary);
    color: #fff;
}

.gs-btn--primary:hover {
    background-color: var(--gs-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.gs-btn--secondary {
    background-color: transparent;
    color: var(--gs-text);
    border: 2px solid var(--gs-border);
}

.gs-btn--secondary:hover {
    border-color: var(--gs-primary);
    color: var(--gs-primary);
}

.gs-btn--accent {
    background-color: var(--gs-accent);
    color: #000;
}

.gs-btn--accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.gs-card {
    background-color: var(--gs-surface);
    border-radius: var(--gs-radius-lg);
    padding: 30px;
    border: 1px solid var(--gs-border);
    transition: all var(--gs-transition);
}

.gs-card:hover {
    border-color: var(--gs-primary);
    transform: translateY(-5px);
}

.gs-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gs-primary), var(--gs-secondary));
    border-radius: var(--gs-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}

.gs-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gs-text);
}

.gs-card__text {
    color: var(--gs-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.gs-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.gs-section-header__subtitle {
    color: var(--gs-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.gs-section-header__title {
    color: var(--gs-text);
    margin-bottom: 20px;
}

.gs-section-header__text {
    color: var(--gs-text-muted);
    font-size: 1.125rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.gs-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gs-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gs-form__label {
    font-weight: 500;
    color: var(--gs-text);
}

.gs-form__input,
.gs-form__textarea,
.gs-form__select {
    padding: 14px 18px;
    font-family: var(--gs-font-primary);
    font-size: 1rem;
    color: var(--gs-text);
    background-color: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-md);
    transition: all var(--gs-transition);
}

.gs-form__input:focus,
.gs-form__textarea:focus,
.gs-form__select:focus {
    outline: none;
    border-color: var(--gs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.gs-form__textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Form 7 Integration */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--gs-font-primary);
    font-size: 1rem;
    color: var(--gs-text);
    background-color: var(--gs-surface);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-md);
    transition: all var(--gs-transition);
}

.wpcf7-form input[type="submit"] {
    background-color: var(--gs-primary);
    color: #fff;
    padding: 14px 32px;
    font-weight: 600;
    border: none;
    border-radius: var(--gs-radius-md);
    cursor: pointer;
    transition: all var(--gs-transition);
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--gs-secondary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.gs-text-center { text-align: center; }
.gs-text-left { text-align: left; }
.gs-text-right { text-align: right; }

.gs-mb-0 { margin-bottom: 0; }
.gs-mb-1 { margin-bottom: 10px; }
.gs-mb-2 { margin-bottom: 20px; }
.gs-mb-3 { margin-bottom: 30px; }
.gs-mb-4 { margin-bottom: 40px; }

.gs-hidden { display: none; }
.gs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes gs-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gs-slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gs-slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.gs-animate {
    animation: gs-fadeIn 0.6s ease forwards;
}

.gs-animate--delay-1 { animation-delay: 0.1s; }
.gs-animate--delay-2 { animation-delay: 0.2s; }
.gs-animate--delay-3 { animation-delay: 0.3s; }
.gs-animate--delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */
.woocommerce ul.products li.product {
    background-color: var(--gs-surface);
    border-radius: var(--gs-radius-lg);
    padding: 20px;
    border: 1px solid var(--gs-border);
    transition: all var(--gs-transition);
}

.woocommerce ul.products li.product:hover {
    border-color: var(--gs-primary);
    transform: translateY(-5px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--gs-text);
}

.woocommerce ul.products li.product .price {
    color: var(--gs-primary);
    font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button {
    background-color: var(--gs-primary) !important;
    color: #fff !important;
    border-radius: var(--gs-radius-md) !important;
}

/* ==========================================================================
   FooGallery Compatibility
   ========================================================================== */
.foogallery {
    margin-top: 30px;
}

.foogallery .fg-item {
    border-radius: var(--gs-radius-md);
    overflow: hidden;
}

/* ==========================================================================
   Strong Testimonials Compatibility
   ========================================================================== */
.strong-view {
    background: transparent !important;
}

.strong-view .wpmtst-testimonial {
    background-color: var(--gs-surface) !important;
    border-radius: var(--gs-radius-lg) !important;
    border: 1px solid var(--gs-border) !important;
    padding: 30px !important;
}

.strong-view .wpmtst-testimonial-content {
    color: var(--gs-text-muted) !important;
}

.strong-view .wpmtst-testimonial-name {
    color: var(--gs-text) !important;
}
