/**
 * PODOVIBE - Custom Styles
 * Mobile-first, responsive design
 * Color palette: Emerald & Slate
 */

/* ==========================================
   CSS VARIABLES & THEME
   ========================================== */
:root {
    /* Emerald Colors */
    --emerald-50: #F0FDFA;
    --emerald-100: #CCFBF1;
    --emerald-200: #99F6E4;
    --emerald-300: #5EEAD4;
    --emerald-400: #2DD4BF;
    --emerald-500: #14B8A6;
    --emerald-600: #0D9488;
    --emerald-700: #0F766E;
    --emerald-800: #115E59;
    --emerald-900: #064E3B;

    /* Slate Colors */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-800);
    background-color: var(--slate-50);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 64px;
    /* Espacio para el header fixed (h-16 = 64px) */
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

h1 {
    font-size: 2rem;
}

/* 32px */
h2 {
    font-size: 1.75rem;
}

/* 28px */
h3 {
    font-size: 1.5rem;
}

/* 24px */
h4 {
    font-size: 1.25rem;
}

/* 20px */

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    /* 48px */
    h2 {
        font-size: 2.5rem;
    }

    /* 40px */
    h3 {
        font-size: 2rem;
    }

    /* 32px */
    h4 {
        font-size: 1.5rem;
    }

    /* 24px */
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ==========================================
   VIDEO SLIDER (HERO)
   ========================================== */
.video-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-slider video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
        padding: 1.5rem;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--emerald-500);
    color: white;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    border-color: var(--emerald-500);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--emerald-500);
    color: white;
}

.btn-primary:hover {
    background-color: var(--emerald-600);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: white;
    color: var(--emerald-500);
    border: 2px solid var(--emerald-500);
}

.btn-secondary:hover {
    background-color: var(--emerald-50);
}

/* ==========================================
   TABS
   ========================================== */
.tab-button {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
}

.tab-button:hover {
    background-color: var(--emerald-100);
}

.tab-active {
    background-color: var(--emerald-500) !important;
    color: white;
}

/* Mobile tabs */
@media (max-width: 768px) {
    .tabs-mobile-select {
        width: 100%;
        padding: 0.75rem;
        border-radius: var(--radius-lg);
        border: 2px solid var(--slate-200);
        background-color: white;
        font-size: 1rem;
        cursor: pointer;
    }
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply scroll animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================
   LAZY LOADING
   ========================================== */
/* Lazy loading nativo del navegador - no necesita CSS adicional */
img {
    transition: opacity 0.3s ease-in-out;
}

/* ==========================================
   RESPONSIVE HELPERS
   ========================================== */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .show-mobile {
        display: none !important;
    }
}

/* ==========================================
   SMOOTH SCROLL
   ========================================== */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .no-print {
        display: none !important;
    }
}