/* ==========================================================================
   Variables Globales
   ========================================================================== */
:root {
    --primary: #eab308;
    --primary-dark: #ca8a04;
    --primary-light: #fef08a;
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-main: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   Reset y Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: color var(--transition);
}

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

/* ==========================================================================
   Componentes (Botones, Tarjetas)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.card-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ==========================================================================
   Layout (Header, Main, Footer)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    color: var(--primary-dark);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid var(--primary-light);
    padding: 5rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-main);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Grid de Productos */
#productos {
    margin-top: 4rem;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: #9ca3af;
    margin-top: auto;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Media Queries (Móviles)
   ========================================================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    #productos {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}
