/* ============================================
   VOCES Y LETRAS - Estilos Personalizados
   Concurso de Relatos para Mayores de 65 años
   ============================================ */

/* Colores Personalizados */
:root {
    --primary: #D4A574;
    --primary-foreground: #FFFFFF;
    --background: #FDFBF7;
    --foreground: #3E3E3E;
    --secondary: #F5F1E8;
    --secondary-foreground: #5C4033;
    --muted: #E8DFD3;
    --muted-foreground: #8B7355;
    --border: #E8DFD3;
    --card: #FFFFFF;
    --card-foreground: #3E3E3E;
}

/* Tipografía Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--foreground);
}

/* Container */
.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;
    }
}

/* Utilidades Tailwind Personalizadas */
.bg-background {
    background-color: var(--background);
}

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

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

.text-foreground {
    color: var(--foreground);
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.border-border {
    border-color: var(--border);
}

.border-primary {
    border-color: var(--primary);
}

/* Botones */
button {
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.375rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Enlaces */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C49464;
}

/* Sombras */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Bordes Redondeados */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

/* Espaciado */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

/* Grid */
.grid {
    display: grid;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .md\:py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .md\:h-\[500px\] {
        height: 400px;
    }
    
    .md\:text-5xl {
        font-size: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 1.875rem;
    }
    
    .md\:text-xl {
        font-size: 1.125rem;
    }
    
    .md\:flex {
        display: none;
    }
    
    .md\:p-12 {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .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\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    .md\:h-\[500px\] {
        height: 500px;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:p-12 {
        padding: 3rem;
    }
}

/* Altura */
.h-16 {
    height: 4rem;
}

.h-12 {
    height: 3rem;
}

.h-96 {
    height: 24rem;
}

.h-full {
    height: 100%;
}

/* Ancho */
.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-6 {
    width: 1.5rem;
}

/* Posicionamiento */
.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Visibilidad */
.hidden {
    display: none;
}

.overflow-hidden {
    overflow: hidden;
}

/* Línea de Corte */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transiciones */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Opacidad */
.opacity-90 {
    opacity: 0.9;
}

.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.bg-black\/30 {
    background-color: rgba(0, 0, 0, 0.3);
}

.hover\:bg-primary\/10:hover {
    background-color: rgba(212, 165, 116, 0.1);
}

.hover\:bg-primary\/90:hover {
    background-color: #C49464;
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Tamaños de Fuente */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Peso de Fuente */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Bordes */
.border-b {
    border-bottom: 1px solid var(--border);
}

.border-l-4 {
    border-left: 4px solid var(--border);
}

.border-2 {
    border: 2px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

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

.object-cover {
    object-fit: cover;
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Alineación de Texto */
.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

/* Inline Block */
.inline-block {
    display: inline-block;
}

/* Efectos de Hover Personalizados */
button:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Animación de Entrada Suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Mejoras de Accesibilidad */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    nav {
        display: none;
    }
}
