/*
Theme Name: TechCommerce ES
Theme URI: https://techcommerce.com.br
Author: TechCommerce
Author URI: https://techcommerce.com.br
Description: Tema institucional premium para TechCommerce — desarrollo de e-commerce y mantenimiento de sitios web profesionales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://techcommerce.com.br
Text Domain: techcommerce
Tags: custom-logo, full-width-template, custom-menu, responsive-layout
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --color-primary:       #0ABFBC;
    --color-primary-dark:  #0891B2;
    --color-secondary:     #1E3A5F;
    --color-accent:        #06D6A0;
    --color-dark:          #0A0F1E;
    --color-dark-2:        #111827;
    --color-dark-3:        #1F2937;
    --color-surface:       #161D2E;
    --color-surface-2:     #1E2940;
    --color-border:        rgba(255,255,255,0.08);
    --color-text:          #F1F5F9;
    --color-text-muted:    #94A3B8;
    --color-text-subtle:   #64748B;
    --color-white:         #FFFFFF;

    /* Gradients */
    --gradient-brand:      linear-gradient(135deg, #0ABFBC 0%, #1E3A5F 100%);
    --gradient-hero:       linear-gradient(135deg, #0A0F1E 0%, #0d1b35 50%, #0A1628 100%);
    --gradient-glow:       radial-gradient(ellipse at center, rgba(10,191,188,0.15) 0%, transparent 70%);
    --gradient-card:       linear-gradient(145deg, #1E2940 0%, #161D2E 100%);
    --gradient-cta:        linear-gradient(135deg, #0ABFBC 0%, #0891B2 50%, #1E3A5F 100%);

    /* Typography */
    --font-display:        'Syne', 'Space Grotesk', sans-serif;
    --font-body:           'DM Sans', 'Helvetica Neue', sans-serif;
    --font-mono:           'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs:   0.5rem;
    --space-sm:   1rem;
    --space-md:   1.5rem;
    --space-lg:   2rem;
    --space-xl:   3rem;
    --space-2xl:  5rem;
    --space-3xl:  8rem;

    /* Sizing */
    --container:  1280px;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(10,191,188,0.2);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 65ch;
}

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

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

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

ul { list-style: none; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* =============================================
   SECTION LABELS & HEADINGS
   ============================================= */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(10,191,188,0.08);
    border: 1px solid rgba(10,191,188,0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    display: block;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 56ch;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-cta);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(10,191,188,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10,191,188,0.4);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.6rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(10,191,188,0.25);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(10,191,188,0.1);
    border: 1px solid rgba(10,191,188,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    transition: all var(--transition);
}

.card:hover .card-icon {
    background: rgba(10,191,188,0.2);
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
    height: 1px;
    background: var(--color-border);
    margin: 0;
}

/* =============================================
   BADGE
   ============================================= */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: rgba(10,191,188,0.12);
    border: 1px solid rgba(10,191,188,0.3);
    color: var(--color-primary);
}

/* =============================================
   GRID UTILITIES
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* =============================================
   UTILITIES
   ============================================= */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* =============================================
   NOISE OVERLAY (Texture)
   ============================================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }
