/*
Theme Name: XpendixCash
Theme URI: https://xpendixcash.online
Author: XpendixCash Team
Author URI: https://xpendixcash.online
Description: Theme premium para la plataforma XpendixCash - Controla tus finanzas personales como un profesional. Incluye landing page, planes, blog y centro de ayuda.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gestor-gastos
Tags: finance, personal-finance, responsive, custom-menu, translation-ready
*/

/* =============================================
   CSS Variables (migrado desde globals.css shadcn/ui)
   ============================================= */
:root {
    --gg-blue-50: #eff6ff;
    --gg-blue-100: #dbeafe;
    --gg-blue-500: #3b82f6;
    --gg-blue-600: #2563eb;
    --gg-blue-700: #1d4ed8;
    --gg-purple-50: #faf5ff;
    --gg-purple-400: #c084fc;
    --gg-purple-600: #9333ea;
    --gg-purple-700: #7e22ce;
    --gg-green-500: #22c55e;
    --gg-red-500: #ef4444;
    --gg-gray-50: #f9fafb;
    --gg-gray-100: #f3f4f6;
    --gg-gray-200: #e5e7eb;
    --gg-gray-300: #d1d5db;
    --gg-gray-400: #9ca3af;
    --gg-gray-500: #6b7280;
    --gg-gray-600: #4b5563;
    --gg-gray-700: #374151;
    --gg-gray-800: #1f2937;
    --gg-gray-900: #111827;
    --gg-slate-700: #334155;
    --gg-slate-900: #0f172a;
    --gg-radius: 0.5rem;
    --gg-font: 'Inter', system-ui, -apple-system, sans-serif;
    --gg-container: 1280px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gg-font);
    font-feature-settings: "rlig" 1, "calt" 1;
    color: var(--gg-gray-900);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* =============================================
   Container
   ============================================= */
.gg-container {
    max-width: var(--gg-container);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .gg-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .gg-container { padding: 0 2rem; }
}

/* =============================================
   Buttons (migrado desde shadcn/ui Button)
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--gg-radius);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--gg-blue-600);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--gg-gray-900);
    color: #fff;
    border-color: var(--gg-gray-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background-color: var(--gg-gray-800);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-blue {
    background-color: var(--gg-blue-600);
    color: #fff;
}

.btn-blue:hover {
    background-color: var(--gg-blue-700);
}

.btn-outline {
    background-color: transparent;
    color: var(--gg-gray-900);
    border-color: var(--gg-gray-200);
}

.btn-outline:hover {
    background-color: var(--gg-gray-50);
}

.btn-secondary {
    background-color: var(--gg-gray-100);
    color: var(--gg-gray-900);
}

.btn-secondary:hover {
    background-color: var(--gg-gray-200);
}

.btn-purple {
    background-color: var(--gg-purple-600);
    color: #fff;
}

.btn-purple:hover {
    background-color: var(--gg-purple-700);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    height: 2.25rem;
}

.btn-lg {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    height: 2.75rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: #fff;
    border: 1px solid var(--gg-gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.04);
}

.card-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

.card-xl-shadow {
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

/* =============================================
   Forms
   ============================================= */
.form-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gg-gray-200);
    border-radius: var(--gg-radius);
    font-size: 0.875rem;
    background: #fff;
    color: var(--gg-gray-900);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gg-blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--gg-gray-400);
}

.form-input-dark {
    background: var(--gg-gray-800);
    border-color: var(--gg-gray-700);
    color: #fff;
}

.form-input-dark::placeholder {
    color: var(--gg-gray-400);
}

.form-input-lg {
    height: 3rem;
    font-size: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gg-gray-700);
    margin-bottom: 0.25rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--gg-red-500);
    margin-top: 0.25rem;
}

/* =============================================
   Badge
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
}

.badge-blue {
    background-color: var(--gg-blue-100);
    color: var(--gg-blue-700);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-red {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* =============================================
   Separator
   ============================================= */
.separator {
    height: 1px;
    background-color: var(--gg-gray-200);
    margin: 1rem 0;
}

/* =============================================
   Navigation (migrado desde navigation.tsx)
   ============================================= */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.site-header .gg-container {
    max-width: 80rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--gg-blue-600), var(--gg-purple-600));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gg-gray-900);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 0;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gg-gray-600);
    border-radius: var(--gg-radius);
    transition: color 0.2s, background-color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--gg-gray-900);
    background-color: var(--gg-gray-50);
}

.nav-links a.active {
    color: var(--gg-blue-600);
    font-weight: 600;
}

.nav-links .nav-home {
    color: var(--gg-gray-900);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

/* Mobile menu toggle */
.nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--gg-radius);
    background: var(--gg-gray-50);
    color: var(--gg-gray-400);
    border: none;
}

@media (min-width: 768px) {
    .nav-mobile-toggle { display: none; }
}

.nav-mobile-toggle:hover {
    background: var(--gg-gray-100);
    color: var(--gg-gray-500);
}

.nav-mobile-menu {
    display: none;
    padding: 0.5rem;
    border-top: 1px solid var(--gg-gray-200);
    background: #fff;
}

.nav-mobile-menu.is-open {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile-menu { display: none !important; }
}

.nav-mobile-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--gg-radius);
    color: var(--gg-gray-600);
}

.nav-mobile-menu a:hover {
    color: var(--gg-blue-600);
}

.nav-mobile-actions {
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--gg-gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =============================================
   Hero Section (migrado desde page.tsx)
   ============================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gg-blue-50), #fff, var(--gg-purple-50));
    padding: 5rem 0 5rem;
}

@media (min-width: 1024px) {
    .hero { padding: 8rem 0 8rem; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--gg-gray-200) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--gg-blue-100);
    color: var(--gg-blue-700);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gg-slate-900);
    line-height: 1.1;
}

@media (min-width: 640px) {
    .hero h1 { font-size: 4.25rem; }
}

.hero h1 span {
    color: var(--gg-blue-600);
    white-space: nowrap;
    position: relative;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--gg-slate-700);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    color: var(--gg-gray-500);
    gap: 0.5rem;
}

.hero-trust-item svg {
    color: var(--gg-green-500);
    width: 1.25rem;
    height: 1.25rem;
}

/* =============================================
   Features Section
   ============================================= */
.features {
    padding: 6rem 0;
    background: #fff;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gg-blue-600);
    letter-spacing: 0.05em;
    text-align: center;
}

.section-title {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gg-gray-900);
    text-align: center;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .section-title { font-size: 2.25rem; }
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--gg-gray-500);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.features-grid {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    padding-top: 1.5rem;
}

.feature-card-inner {
    background: var(--gg-gray-50);
    border: 1px solid var(--gg-gray-100);
    border-radius: 0.75rem;
    padding: 0 1.5rem 2rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--gg-blue-100);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--gg-blue-500);
    color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: -1.5rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gg-gray-900);
    letter-spacing: -0.01em;
}

.feature-card p {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--gg-gray-500);
    line-height: 1.625;
}

/* =============================================
   Social Proof Section
   ============================================= */
.social-proof {
    background: var(--gg-blue-50);
    padding: 3rem 0 4rem;
}

@media (min-width: 1024px) {
    .social-proof { padding: 4rem 0; }
}

.social-proof-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .social-proof-inner { grid-template-columns: 1fr 1fr; }
}

.social-proof h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gg-gray-900);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .social-proof h2 { font-size: 2.25rem; }
}

.social-proof-text {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    color: var(--gg-gray-500);
    max-width: 48rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.stat-card {
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    transition: background-color 0.2s;
}

.stat-card:hover {
    background: var(--gg-blue-50);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gg-blue-600);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gg-gray-500);
    margin-top: 0.25rem;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--gg-blue-600), #4f46e5);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

@media (min-width: 640px) {
    .cta-section { padding: 5rem 0; }
}

.cta-content {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 640px) {
    .cta-content h2 { font-size: 2.25rem; }
}

.cta-content p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: rgb(191, 219, 254);
    line-height: 1.5;
}

.cta-content .btn {
    margin-top: 2rem;
}

.btn-white {
    background: var(--gg-gray-100);
    color: var(--gg-gray-900);
}

.btn-white:hover {
    background: #fff;
}

/* =============================================
   Footer (migrado desde footer.tsx)
   ============================================= */
.site-footer {
    background: var(--gg-gray-900);
    color: var(--gg-gray-300);
}

.footer-newsletter {
    border-bottom: 1px solid var(--gg-gray-800);
    padding: 3rem 0;
    text-align: center;
}

.footer-newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-newsletter > p {
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    margin: 0 auto;
    gap: 1rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--gg-gray-400);
    margin-top: 1rem;
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
    color: var(--gg-gray-400);
    margin-bottom: 1.5rem;
    max-width: 20rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gg-purple-400);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gg-gray-800);
    border-radius: 0.5rem;
    color: var(--gg-gray-300);
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--gg-purple-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.footer-social a svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-column h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column ul a {
    color: var(--gg-gray-300);
    transition: color 0.2s;
    font-size: 0.875rem;
}

.footer-column ul a:hover {
    color: var(--gg-purple-400);
}

.footer-bottom {
    border-top: 1px solid var(--gg-gray-800);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gg-gray-400);
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-made-with svg {
    width: 1rem;
    height: 1rem;
    color: var(--gg-red-500);
}

/* =============================================
   Blog Archive (migrado desde blog/page.tsx)
   ============================================= */
.blog-header {
    background: linear-gradient(135deg, var(--gg-blue-50), var(--gg-purple-50));
    padding: 3rem 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gg-gray-900);
}

.blog-header p {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: var(--gg-gray-600);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .blog-layout { grid-template-columns: 2fr 1fr; }
}

.blog-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-filter-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gg-gray-200);
    background: #fff;
    color: var(--gg-gray-600);
    transition: all 0.2s;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--gg-blue-600);
    color: #fff;
    border-color: var(--gg-blue-600);
}

.blog-card {
    border: 1px solid var(--gg-gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--gg-gray-300);
}

.blog-card-image {
    height: 12rem;
    background: linear-gradient(135deg, var(--gg-blue-500), var(--gg-purple-600));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--gg-gray-500);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gg-gray-900);
    margin-bottom: 0.5rem;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--gg-gray-600);
    line-height: 1.625;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--gg-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gg-gray-600);
}

/* Sidebar */
.blog-sidebar .card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.blog-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gg-gray-900);
    margin-bottom: 1rem;
}

.blog-sidebar .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-sidebar .tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--gg-gray-100);
    color: var(--gg-gray-600);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.blog-sidebar .tag:hover {
    background: var(--gg-blue-600);
    color: #fff;
}

/* =============================================
   Help Center (migrado desde help/page.tsx)
   ============================================= */
.help-header {
    background: linear-gradient(135deg, var(--gg-blue-600), var(--gg-purple-600));
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

.help-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.help-search {
    max-width: 36rem;
    margin: 0 auto;
    position: relative;
}

.help-search input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem 0 3rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gg-gray-900);
}

.help-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gg-gray-400);
    width: 1.25rem;
    height: 1.25rem;
}

.help-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .help-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .help-categories { grid-template-columns: repeat(3, 1fr); }
}

.help-category-card {
    padding: 1.5rem;
    border: 1px solid var(--gg-gray-200);
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
}

.help-category-card:hover {
    border-color: var(--gg-blue-200);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.help-category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.help-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gg-gray-900);
    margin-bottom: 0.5rem;
}

.help-category-card p {
    font-size: 0.875rem;
    color: var(--gg-gray-500);
}

.help-contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .help-contact-options { grid-template-columns: repeat(3, 1fr); }
}

.help-contact-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--gg-gray-200);
    border-radius: var(--gg-radius);
}

.help-contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.help-contact-card p {
    font-size: 0.875rem;
    color: var(--gg-gray-500);
    margin-bottom: 1rem;
}

/* =============================================
   Plans Page (migrado desde plans/page.tsx)
   ============================================= */
.plans-header {
    background: linear-gradient(135deg, var(--gg-blue-50), var(--gg-purple-50));
    padding: 4rem 0 2rem;
    text-align: center;
}

.plans-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gg-gray-900);
}

.plans-header p {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--gg-gray-600);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.plans-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.plans-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gg-gray-200);
    background: #fff;
    color: var(--gg-gray-600);
    transition: all 0.2s;
}

.plans-toggle-btn.active {
    background: var(--gg-blue-600);
    color: #fff;
    border-color: var(--gg-blue-600);
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 4rem;
}

@media (min-width: 768px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-card {
    border: 1px solid var(--gg-gray-200);
    border-radius: 0.875rem;
    padding: 2rem;
    background: #fff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
    border-color: var(--gg-blue-200);
}

.plan-card.featured {
    border-color: var(--gg-blue-600);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.plan-card.featured::before {
    content: 'Más popular';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gg-blue-600);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-gray-900);
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 0.875rem;
    color: var(--gg-gray-500);
    margin-bottom: 1.5rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gg-gray-900);
}

.plan-price-period {
    font-size: 0.875rem;
    color: var(--gg-gray-500);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gg-gray-700);
}

.plan-features li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gg-green-500);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.plan-faq {
    padding: 4rem 0;
    max-width: 48rem;
    margin: 0 auto;
}

.plan-faq h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--gg-gray-200);
    padding: 1.25rem 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gg-gray-900);
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gg-gray-400);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.is-open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gg-gray-600);
    line-height: 1.625;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* =============================================
   Single Post
   ============================================= */
.single-post-header {
    background: linear-gradient(135deg, var(--gg-blue-50), var(--gg-purple-50));
    padding: 3rem 0;
}

.single-post-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.single-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--gg-gray-700);
}

.single-post-content img {
    border-radius: var(--gg-radius);
    margin: 1.5rem 0;
}

/* =============================================
   404 Page
   ============================================= */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.page-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--gg-blue-600);
}

.page-404 h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
}

.page-404 p {
    color: var(--gg-gray-500);
    margin-bottom: 2rem;
}

/* =============================================
   Utilities
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Focus ring globally */
:focus-visible {
    outline: 2px solid var(--gg-blue-500);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--gg-blue-100);
    color: var(--gg-blue-900, #1e3a8a);
}

/* =============================================
   Responsive - Mejoras táctiles (migrado)
   ============================================= */
@media (hover: none) and (pointer: coarse) {
    button, a, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    button:active, a:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Additional responsive fixes */
@media (max-width: 640px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 1rem; }
    .plans-header h1 { font-size: 1.875rem; }
    .help-header h1 { font-size: 1.875rem; }
    .plan-card { padding: 1.5rem; }
    .footer-newsletter h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .nav-inner { height: 3.5rem; }
    .nav-logo-text { font-size: 1rem; }
    .hero { padding: 3rem 0; }
    .features { padding: 3rem 0; }
    .cta-section { padding: 3rem 0; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }
}

@supports (padding: max(0px)) {
    .safe-top { padding-top: max(1rem, env(safe-area-inset-top)); }
    .safe-bottom { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}

/* =============================================
   WordPress Overrides
   ============================================= */
.wp-block-image img { border-radius: var(--gg-radius); }
.entry-content a { color: var(--gg-blue-600); text-decoration: underline; }
.entry-content a:hover { color: var(--gg-blue-700); }

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =============================================
   User Dropdown
   ============================================= */
.nav-user-dropdown {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--gg-gray-200);
    background: var(--gg-gray-50);
    cursor: pointer;
    transition: all 0.15s;
}

.nav-user-btn:hover {
    background: var(--gg-gray-100);
    border-color: var(--gg-gray-300);
}

.nav-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
}

.nav-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gg-gray-700);
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 12rem;
    background: #fff;
    border: 1px solid var(--gg-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -5px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 0.5rem;
    animation: fadeIn 0.12s ease;
}

.nav-user-menu.is-open {
    display: block;
}

.nav-user-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--gg-gray-700);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.1s;
}

.nav-user-menu a:hover {
    background: var(--gg-gray-100);
}

.nav-logout-link {
    color: #ef4444 !important;
}

.nav-logout-link:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

.nav-user-sep {
    height: 1px;
    background: var(--gg-gray-200);
    margin: 0.375rem 0;
}

/* Dark mode overrides for dashboard pages */
body.page-template-dashboard-app .nav-user-btn {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

body.page-template-dashboard-app .nav-user-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

body.page-template-dashboard-app .nav-user-name {
    color: #e2e8f0;
}

body.page-template-dashboard-app .nav-user-menu {
    background: #1e293b;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px -5px rgba(0,0,0,0.5);
}

body.page-template-dashboard-app .nav-user-menu a {
    color: #cbd5e1;
}

body.page-template-dashboard-app .nav-user-menu a:hover {
    background: rgba(255,255,255,0.06);
}

body.page-template-dashboard-app .nav-user-sep {
    background: rgba(255,255,255,0.06);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}
