/*
Theme Name: Global Jiu Jitsu
Theme URI: https://globaljiujitsu.cl
Author: Global Jiu Jitsu
Author URI: https://globaljiujitsu.cl
Description: Academia de Brazilian Jiu Jitsu en Santiago, Chile. Clases de BJJ, defensa personal y artes marciales para todos los niveles. Instructores certificados y horarios flexibles.
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: global-jiujitsu
Tags: elementor, custom-widgets, jiu-jitsu, sports, martial-arts, bjj
*/

/* ==========================================================================
   Font Imports - Brandbook Typography
   Logotipo: Obsidian
   Primaria: Neue Plak Extended Black (fallback: Oswald Black)
   Secundaria: Neue Plak Light (fallback: Inter Light)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */

:root {
    --brand-red: #D85656;
    --brand-black: #000000;
    --brand-white: #FFFFFF;
    --brand-gray: #F5F5F5;
    
    /* Tipografía del Brandbook */
    --font-logo: 'Oswald', sans-serif; /* Fallback para Obsidian */
    --font-primary: 'Oswald', sans-serif; /* Fallback para Neue Plak Extended Black */
    --font-secondary: 'Inter', sans-serif; /* Fallback para Neue Plak Light */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--brand-white);
    color: var(--brand-black);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

::selection {
    background-color: var(--brand-red);
    color: var(--brand-white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.font-display {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.font-sans {
    font-family: var(--font-sans);
}

.font-primary {
    font-family: var(--font-primary);
    font-weight: 700;
}

.font-secondary {
    font-family: var(--font-secondary);
    font-weight: 300;
}

.font-logo {
    font-family: var(--font-logo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-red-highlight {
    color: var(--brand-red);
}

/* Tag diagonal style */
.tag-diagonal {
    transform: skewX(-12deg);
    display: inline-block;
}

.tag-diagonal-content {
    transform: skewX(12deg);
    display: inline-block;
}

.bg-red-highlight {
    background-color: var(--brand-red);
}

.bg-brand-gray {
    background-color: var(--brand-gray);
}

/* ==========================================================================
   Glass Effect
   ========================================================================== */

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Diagonal Button Style
   ========================================================================== */

.btn-diagonal {
    transform: skewX(-15deg);
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-diagonal-content {
    transform: skewX(15deg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-diagonal:hover {
    transform: skewX(-15deg) translateY(-2px);
}

.btn-diagonal:active {
    transform: skewX(-15deg) translateY(0);
}

/* ==========================================================================
   Diagonal Tags
   ========================================================================== */

.tag-diagonal {
    transform: skewX(-10deg);
    border-radius: 1px;
    display: inline-block;
}

.tag-diagonal-content {
    transform: skewX(10deg);
    display: inline-block;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

.espacio-blanco {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }
.gap-24 { gap: 6rem; }

/* ==========================================================================
   Flexbox & Grid
   ========================================================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
   Text Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ==========================================================================
   Colors
   ========================================================================== */

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }

.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-transparent { background: transparent; }

/* ==========================================================================
   Borders & Radius
   ========================================================================== */

.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-slate-50 { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }

/* ==========================================================================
   Shadows
   ========================================================================== */

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* ==========================================================================
   Transitions
   ========================================================================== */

.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

/* ==========================================================================
   Position & Size
   ========================================================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ==========================================================================
   Object Fit
   ========================================================================== */

.object-cover { object-fit: cover; }
.grayscale { filter: grayscale(100%); }
.grayscale-0 { filter: grayscale(0); }

/* ==========================================================================
   Aspect Ratio
   ========================================================================== */

.aspect-4-5 {
    aspect-ratio: 4 / 5;
}

/* ==========================================================================
   Focus States
   ========================================================================== */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-red);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--brand-red);
}

.focus\:ring-red-highlight:focus {
    box-shadow: 0 0 0 2px var(--brand-red);
}

/* ==========================================================================
   Hover States
   ========================================================================== */

.hover\:text-red-highlight:hover {
    color: var(--brand-red);
}

.hover\:bg-brand-gray:hover {
    background-color: var(--brand-gray);
}

.group:hover .group-hover\:text-red-highlight {
    color: var(--brand-red);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:grayscale-0 {
    filter: grayscale(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:text-9xl { font-size: 8rem; line-height: 1; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:w-1\/2 { width: 50%; }
    .md\:inline { display: inline; }
    .md\:opacity-100 { opacity: 1; }
    .hidden { display: none; }
    .md\:flex.hidden { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

.wp-block-post-content {
    max-width: none;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px;
}

/* Hide admin bar styling for fixed header */
body.admin-bar .global-header,
body.admin-bar [class*="gjj-header-"] {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .global-header,
    body.admin-bar [class*="gjj-header-"] {
        top: 46px;
    }
}

/* ==========================================================================
   Additional Utilities
   ========================================================================== */

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-80 { width: 20rem; }
.h-0\.5 { height: 0.125rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-96 { height: 24rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-12 { padding: 3rem; }
.pt-12 { padding-top: 3rem; }
.mt-4 { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.top-6 { top: 1.5rem; }
.top-20 { top: 5rem; }
.top-full { top: 100%; }
.left-6 { left: 1.5rem; }
.bottom-5 { bottom: 1.25rem; }
.bottom-10 { bottom: 2.5rem; }
.-bottom-5 { bottom: -1.25rem; }
.-right-5 { right: -1.25rem; }
.z-0 { z-index: 0; }
.z-40 { z-index: 40; }
.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-60 { opacity: 0.6; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }
.cursor-pointer { cursor: pointer; }
.appearance-none { appearance: none; }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }
.border-red-highlight { border-color: var(--brand-red); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-black\/30 { color: rgba(0, 0, 0, 0.3); }
.bg-black\/10 { background-color: rgba(0, 0, 0, 0.1); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }
.shadow-red-500\/20 { box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.2); }

/* Vertical text */
.vertical-text {
    writing-mode: vertical-rl;
}

/* Table styles */
table { border-collapse: collapse; }
th, td { text-align: left; }

/* Group hover utility for rounded corners */
.group:hover .group-hover\:rounded-\[1rem\] {
    border-radius: 1rem;
}

/* Rounded corners */
.rounded-\[3rem\] { border-radius: 3rem; }
.rounded-\[1rem\] { border-radius: 1rem; }
