/**
 * Base CSS - Estilos compartidos para todas las invitaciones
 * /shared/base.css
 */

/* ========================================
   RESET BÁSICO
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   VARIABLES BASE (defaults)
   Las paletas sobreescriben estas variables
   ======================================== */
:root {
    /* Colores primarios - sobreescritos por paleta */
    --primary: #8B5CF6;
    --primary-rgb: 139, 92, 246;
    --primary-glow: rgba(var(--primary-rgb), 0.5);
    
    --secondary: #EC4899;
    --secondary-rgb: 236, 72, 153;
    
    --accent: #F59E0B;
    --accent-rgb: 245, 158, 11;
    
    /* Fondos */
    --bg-dark: #0D1B0F;
    --bg-darker: #080F09;
    --bg-light: #F5F3EE;
    --bg-card: rgba(255, 255, 255, 0.05);
    
    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dark: #1F2937;
    
    /* Bordes y separadores */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(var(--primary-rgb), 0.3);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Gradientes base */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    
    /* Tipografía */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Bordes redondeados */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   UTILIDADES COMUNES
   ======================================== */

/* Contenedor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Texto con gradiente */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efecto glow en texto */
.text-glow {
    text-shadow: 0 0 30px var(--primary-glow);
}

/* Fondo con blur */
.bg-blur {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

/* Centrado flex */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ocultar visualmente pero accesible */
.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;
}

/* ========================================
   SCROLLBAR PERSONALIZADO
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ========================================
   SELECCIÓN DE TEXTO
   ======================================== */
::selection {
    background: var(--primary);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary);
    color: var(--text-primary);
}
