/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1e293b;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-login {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #2563eb;
}

/* Sección de la Historia */
.story-section {
    background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), 
                url('https://images.unsplash.com/photo-1527689368864-3a821dbccc34?auto=format&fit=crop&w=1200&q=80') no-repeat center/cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Catálogo de Productos */
.catalog {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.catalog h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
}

.grid-estuches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Fotos simuladas generadas con CSS */
.foto-estuche {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.card h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    height: 40px;
}

.precio {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #10b981;
}

/* Estilos de la Ventana Modal */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
}

.close-btn:hover {
    color: #334155;
}

.modal h2 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #1e293b;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-submit {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #059669;
}